Documentation
¶
Index ¶
- Constants
- Variables
- func IsRelativeLayout(p string) bool
- func WriteCharacterToJSON(c *Character, path string) error
- type Attribute
- type Character
- func (c *Character) GetAbility(t *Trait) *Trait
- func (c *Character) GetAttribute(a *Attribute) *Attribute
- func (c *Character) GetField(f *Field) *Field
- func (c *Character) GetItem(i *Item) *Item
- func (c *Character) GetSkill(s *Skill) *Skill
- func (c *Character) GetTrait(t *Trait) *Trait
- func (c *Character) GetVehicle(i *Item) *Item
- func (c *Character) HasAbility(t *Trait) bool
- func (c *Character) HasAttribute(a *Attribute) bool
- func (c *Character) HasField(f *Field) bool
- func (c *Character) HasItem(i *Item) bool
- func (c *Character) HasSkill(s *Skill) bool
- func (c *Character) HasTrait(t *Trait) bool
- func (c *Character) HasVehicle(i *Item) bool
- func (c *Character) Name() string
- type Field
- type Implementation
- type Item
- type SimpleEquipment
- type SimpleImplementation
- type SimpleSkill
- type SimpleTrait
- type Skill
- type Trait
Constants ¶
View Source
const (
FormatHtml = "html"
)
View Source
const (
ImplementationSimple = "simple"
)
View Source
const (
LayoutsDir = "layouts"
)
Variables ¶
View Source
var (
AvailableFormats = []string{FormatHtml}
)
Functions ¶
func IsRelativeLayout ¶
func WriteCharacterToJSON ¶
Types ¶
type Character ¶
type Character struct {
// contains filtered or unexported fields
}
func ImportCharacterFromJSON ¶
func ImportLayout ¶
func ImportRelativeLayout ¶
func NewEmptyCharacter ¶
func (*Character) GetAbility ¶
func (*Character) GetAttribute ¶
func (*Character) GetVehicle ¶
func (*Character) HasAbility ¶
func (*Character) HasAttribute ¶
func (*Character) HasVehicle ¶
type Implementation ¶
type Implementation interface {
Convert() *Character
}
type SimpleEquipment ¶
type SimpleImplementation ¶
type SimpleImplementation struct {
Fields []*Field
Attributes []*Attribute
Skills []*SimpleSkill
Abilities []*SimpleTrait
Traits []*SimpleTrait
Equipment []*SimpleEquipment
Vehicles []*SimpleEquipment
// contains filtered or unexported fields
}
func (*SimpleImplementation) Convert ¶
func (i *SimpleImplementation) Convert() *Character
type SimpleSkill ¶
type SimpleTrait ¶
Click to show internal directories.
Click to hide internal directories.