Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseObject ¶
type BaseObject struct {
// contains filtered or unexported fields
}
BaseObject defines the root game object.
func (*BaseObject) AddComponents ¶
func (o *BaseObject) AddComponents(components ...Component)
AddComponents adds components to the entity.
func (*BaseObject) GetComponent ¶
func (o *BaseObject) GetComponent(name string) Component
func (*BaseObject) HasComponent ¶
func (o *BaseObject) HasComponent(name string) bool
HasComponent returns whether the current object has the specified component.
func (*BaseObject) RemoveComponent ¶
func (o *BaseObject) RemoveComponent(name string)
Click to show internal directories.
Click to hide internal directories.