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) New ¶
func (c *ComponentType) New() unsafe.Pointer
type ComponentTypeId ¶
type ComponentTypeId int
Click to show internal directories.
Click to hide internal directories.