Documentation ¶
Index ¶
- type Buffer
- type BufferTypeIndex
- type Command
- type CommandReference
- type CommandReferenceIndex
- type CommandTypeIndex
- type ComponentDataType
- type EntityArchetype
- func (c *EntityArchetype) HighestLevelOfDetail() *EntityArchetypeLOD
- func (c *EntityArchetype) ID() EntityArchetypeID
- func (c *EntityArchetype) Index() EntityIndex
- func (c *EntityArchetype) Lod(lodLevel int) *EntityArchetypeLOD
- func (c *EntityArchetype) Lods() []*EntityArchetypeLOD
- func (c *EntityArchetype) Meta() MetaData
- func (c *EntityArchetype) Name() string
- func (c *EntityArchetype) NewLod(lodLevel int, items []*EntityArchetypeItem) (*EntityArchetypeLOD, error)
- func (c *EntityArchetype) String() string
- type EntityArchetypeID
- type EntityArchetypeItem
- func (c *EntityArchetypeItem) ComponentDataType() *ComponentDataType
- func (c *EntityArchetypeItem) FieldReference() string
- func (c *EntityArchetypeItem) HasComponentReference() bool
- func (c *EntityArchetypeItem) HasFieldReference() bool
- func (c *EntityArchetypeItem) Index() int
- func (c *EntityArchetypeItem) Meta() MetaData
- func (c *EntityArchetypeItem) Name() string
- func (c *EntityArchetypeItem) String() string
- type EntityArchetypeItemVariant
- type EntityArchetypeLOD
- type EntityIndex
- type Enum
- type EnumConstant
- type Event
- type EventReference
- type EventReferenceIndex
- type EventTypeIndex
- type Field
- type Hash
- type MetaData
- type Root
- func (r *Root) AddArchetype(c *EntityArchetype)
- func (r *Root) AddBuffer(c *Buffer)
- func (r *Root) AddComponentDataType(c *ComponentDataType)
- func (r *Root) AddEnum(c *Enum)
- func (r *Root) AddEvent(c *Event)
- func (r *Root) AddMethod(c *Command)
- func (r *Root) AddUserType(c *UserType)
- func (r *Root) Archetypes() []*EntityArchetype
- func (r *Root) Buffers() []*Buffer
- func (r *Root) Commands() []*Command
- func (r *Root) ComponentDataTypes() []*ComponentDataType
- func (r *Root) Enums() []*Enum
- func (r *Root) Events() []*Event
- func (r *Root) FindComponentDataType(name string) *ComponentDataType
- func (r *Root) FindEntity(name string) *EntityArchetype
- func (r *Root) FindUserType(name string) *UserType
- func (r *Root) Hash() Hash
- func (r *Root) Name() string
- func (r *Root) Namespace() string
- func (r *Root) SetHash(hash Hash)
- func (r *Root) SetName(name string)
- func (r *Root) SetNamespace(namespace string)
- func (r *Root) String() string
- func (r *Root) UserTypes() []*UserType
- type UserType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func NewBuffer ¶
func NewBuffer(id BufferTypeIndex, name string, meta MetaData, fields []*Field) *Buffer
func (*Buffer) TypeIndex ¶
func (e *Buffer) TypeIndex() BufferTypeIndex
type BufferTypeIndex ¶
type BufferTypeIndex uint8
BufferTypeIndex :
func NewBufferIndex ¶
func NewBufferIndex(index int) BufferTypeIndex
func (BufferTypeIndex) String ¶
func (e BufferTypeIndex) String() string
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand(id CommandTypeIndex, name string, meta MetaData, fields []*Field) *Command
func (*Command) TypeIndex ¶
func (e *Command) TypeIndex() CommandTypeIndex
type CommandReference ¶
type CommandReference struct {
// contains filtered or unexported fields
}
func NewCommandReference ¶
func NewCommandReference(index CommandReferenceIndex, CommandType string) *CommandReference
func (*CommandReference) ID ¶
func (c *CommandReference) ID() EntityArchetypeID
func (*CommandReference) ReferenceIndex ¶
func (c *CommandReference) ReferenceIndex() CommandReferenceIndex
func (*CommandReference) ReferencedType ¶
func (e *CommandReference) ReferencedType() string
func (*CommandReference) String ¶
func (e *CommandReference) String() string
type CommandReferenceIndex ¶
type CommandReferenceIndex uint8
type CommandTypeIndex ¶
type CommandTypeIndex uint8
CommandTypeIndex :
func NewCommandTypeIndex ¶
func NewCommandTypeIndex(index int) CommandTypeIndex
func (CommandTypeIndex) String ¶
func (e CommandTypeIndex) String() string
type ComponentDataType ¶
type ComponentDataType struct {
// contains filtered or unexported fields
}
func NewComponentDataType ¶
func NewComponentDataType(name string, index uint8, fields []*Field, meta MetaData) *ComponentDataType
func (*ComponentDataType) Fields ¶
func (c *ComponentDataType) Fields() []*Field
func (*ComponentDataType) Index ¶
func (c *ComponentDataType) Index() uint8
func (*ComponentDataType) Meta ¶
func (c *ComponentDataType) Meta() MetaData
func (*ComponentDataType) Name ¶
func (c *ComponentDataType) Name() string
func (*ComponentDataType) String ¶
func (c *ComponentDataType) String() string
type EntityArchetype ¶
type EntityArchetype struct {
// contains filtered or unexported fields
}
func NewEntityArchetype ¶
func NewEntityArchetype(name string, index EntityIndex, lods []*EntityArchetypeLOD, meta MetaData) *EntityArchetype
func (*EntityArchetype) HighestLevelOfDetail ¶
func (c *EntityArchetype) HighestLevelOfDetail() *EntityArchetypeLOD
func (*EntityArchetype) ID ¶
func (c *EntityArchetype) ID() EntityArchetypeID
func (*EntityArchetype) Index ¶
func (c *EntityArchetype) Index() EntityIndex
func (*EntityArchetype) Lod ¶
func (c *EntityArchetype) Lod(lodLevel int) *EntityArchetypeLOD
func (*EntityArchetype) Lods ¶
func (c *EntityArchetype) Lods() []*EntityArchetypeLOD
func (*EntityArchetype) Meta ¶
func (c *EntityArchetype) Meta() MetaData
func (*EntityArchetype) Name ¶
func (c *EntityArchetype) Name() string
func (*EntityArchetype) NewLod ¶
func (c *EntityArchetype) NewLod(lodLevel int, items []*EntityArchetypeItem) (*EntityArchetypeLOD, error)
func (*EntityArchetype) String ¶
func (c *EntityArchetype) String() string
type EntityArchetypeID ¶
type EntityArchetypeID struct {
// contains filtered or unexported fields
}
EntityArchetypeID :
func NewEntityArchetypeIDFromString ¶
func NewEntityArchetypeIDFromString(name string) EntityArchetypeID
func (EntityArchetypeID) String ¶
func (e EntityArchetypeID) String() string
func (EntityArchetypeID) Value ¶
func (e EntityArchetypeID) Value() uint16
type EntityArchetypeItem ¶
type EntityArchetypeItem struct {
// contains filtered or unexported fields
}
func NewEntityArchetypeItemUsingComponentDataTypeReference ¶
func NewEntityArchetypeItemUsingComponentDataTypeReference(componentDataType *ComponentDataType, meta MetaData) *EntityArchetypeItem
func NewEntityArchetypeItemUsingFieldType ¶
func NewEntityArchetypeItemUsingFieldType(index int, fieldType string, meta MetaData) *EntityArchetypeItem
func (*EntityArchetypeItem) ComponentDataType ¶
func (c *EntityArchetypeItem) ComponentDataType() *ComponentDataType
func (*EntityArchetypeItem) FieldReference ¶
func (c *EntityArchetypeItem) FieldReference() string
func (*EntityArchetypeItem) HasComponentReference ¶
func (c *EntityArchetypeItem) HasComponentReference() bool
func (*EntityArchetypeItem) HasFieldReference ¶
func (c *EntityArchetypeItem) HasFieldReference() bool
func (*EntityArchetypeItem) Index ¶
func (c *EntityArchetypeItem) Index() int
func (*EntityArchetypeItem) Meta ¶
func (c *EntityArchetypeItem) Meta() MetaData
func (*EntityArchetypeItem) Name ¶
func (c *EntityArchetypeItem) Name() string
func (*EntityArchetypeItem) String ¶
func (c *EntityArchetypeItem) String() string
type EntityArchetypeItemVariant ¶
type EntityArchetypeItemVariant uint8
const ( ComponentTypeComponentReference EntityArchetypeItemVariant = iota ComponentTypeField )
type EntityArchetypeLOD ¶
type EntityArchetypeLOD struct {
// contains filtered or unexported fields
}
func NewEntityArchetypeLOD ¶
func NewEntityArchetypeLOD(lodLevel int, items []*EntityArchetypeItem) *EntityArchetypeLOD
func (*EntityArchetypeLOD) EntityArchetypeItem ¶
func (c *EntityArchetypeLOD) EntityArchetypeItem(index int) *EntityArchetypeItem
func (*EntityArchetypeLOD) Items ¶
func (c *EntityArchetypeLOD) Items() []*EntityArchetypeItem
func (*EntityArchetypeLOD) Level ¶
func (c *EntityArchetypeLOD) Level() int
func (*EntityArchetypeLOD) String ¶
func (c *EntityArchetypeLOD) String() string
type EntityIndex ¶
type EntityIndex struct {
// contains filtered or unexported fields
}
EntityIndex :
func NewEntityIndex ¶
func NewEntityIndex(id uint8) EntityIndex
func (EntityIndex) String ¶
func (e EntityIndex) String() string
func (EntityIndex) Value ¶
func (e EntityIndex) Value() uint8
type Enum ¶
type Enum struct {
// contains filtered or unexported fields
}
func NewEnum ¶
func NewEnum(name string, constants []*EnumConstant) *Enum
func (*Enum) Constants ¶
func (c *Enum) Constants() []*EnumConstant
type EnumConstant ¶
type EnumConstant struct {
// contains filtered or unexported fields
}
func NewEnumConstant ¶
func NewEnumConstant(index int, name string, value int, enumParent *Enum) *EnumConstant
func (*EnumConstant) Enum ¶
func (c *EnumConstant) Enum() *Enum
func (*EnumConstant) Index ¶
func (c *EnumConstant) Index() int
func (*EnumConstant) Name ¶
func (c *EnumConstant) Name() string
func (*EnumConstant) String ¶
func (c *EnumConstant) String() string
func (*EnumConstant) Value ¶
func (c *EnumConstant) Value() int
type Event ¶
type Event struct {
// contains filtered or unexported fields
}
func NewEvent ¶
func NewEvent(id EventTypeIndex, name string, meta MetaData, fields []*Field) *Event
func (*Event) TypeIndex ¶
func (e *Event) TypeIndex() EventTypeIndex
type EventReference ¶
type EventReference struct {
// contains filtered or unexported fields
}
func NewEventReference ¶
func NewEventReference(index EventReferenceIndex, eventType string) *EventReference
func (*EventReference) ID ¶
func (c *EventReference) ID() EntityArchetypeID
func (*EventReference) ReferenceIndex ¶
func (c *EventReference) ReferenceIndex() EventReferenceIndex
func (*EventReference) ReferencedType ¶
func (e *EventReference) ReferencedType() string
func (*EventReference) String ¶
func (e *EventReference) String() string
type EventReferenceIndex ¶
type EventReferenceIndex uint8
type EventTypeIndex ¶
type EventTypeIndex uint8
EventTypeIndex :
func NewEventTypeIndex ¶
func NewEventTypeIndex(index int) EventTypeIndex
func (EventTypeIndex) String ¶
func (e EventTypeIndex) String() string
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func (*Field) ForceNewIndex ¶
type MetaData ¶
func (*MetaData) IntWithDefault ¶
type Root ¶
type Root struct {
// contains filtered or unexported fields
}
func (*Root) AddArchetype ¶
func (r *Root) AddArchetype(c *EntityArchetype)
func (*Root) AddComponentDataType ¶
func (r *Root) AddComponentDataType(c *ComponentDataType)
func (*Root) AddUserType ¶
func (*Root) Archetypes ¶
func (r *Root) Archetypes() []*EntityArchetype
func (*Root) ComponentDataTypes ¶
func (r *Root) ComponentDataTypes() []*ComponentDataType
func (*Root) FindComponentDataType ¶
func (r *Root) FindComponentDataType(name string) *ComponentDataType
func (*Root) FindEntity ¶
func (r *Root) FindEntity(name string) *EntityArchetype
func (*Root) FindUserType ¶
func (*Root) SetNamespace ¶
type UserType ¶
type UserType struct {
// contains filtered or unexported fields
}
func NewUserType ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.