Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentType ¶
type ComponentType struct {
// contains filtered or unexported fields
}
CompnentType represents a type of component. It is used to identify a component when getting or setting components of an entity.
func NewComponentType ¶
func NewComponentType(s interface{}) *ComponentType
NewComponentType creates a new component type. The argument is a struct that represents a data of the component.
func (*ComponentType) Id ¶
func (c *ComponentType) Id() ComponentTypeId
Id returns the component type id.
func (*ComponentType) Name ¶ added in v1.2.9
func (c *ComponentType) Name() string
Name returns the component type name.
func (*ComponentType) New ¶
func (c *ComponentType) New() unsafe.Pointer
func (*ComponentType) SetName ¶ added in v1.2.9
func (c *ComponentType) SetName(name string) *ComponentType
SetName sets the component type name.
func (*ComponentType) String ¶ added in v1.2.9
func (c *ComponentType) String() string
String returns the component type name.
type ComponentTypeId ¶
type ComponentTypeId int
Click to show internal directories.
Click to hide internal directories.