component

package
v1.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2022 License: CC0-1.0, MIT Imports: 2 Imported by: 0

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

Id returns the component type id.

func (*ComponentType) New

func (c *ComponentType) New() unsafe.Pointer

type ComponentTypeId

type ComponentTypeId int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL