Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWorldState ¶
func NewWorldState() *worldState
Types ¶
type ObjectCache ¶
type ObjectCache map[ObjectKey]*gogl.Object
func (ObjectCache) GetOrCreate ¶
func (c ObjectCache) GetOrCreate(key ObjectKey) (*gogl.Object, error)
func (ObjectCache) String ¶
func (c ObjectCache) String() string
type ObjectInstance ¶
func (ObjectInstance) String ¶
func (o ObjectInstance) String() string
type ObjectKey ¶
type ObjectKey struct { ObjectType string Params ObjectParameters }
type ObjectParameters ¶
type ObjectParameters struct { // All parameters that any object uses will be in here. // Only set the ones relevant to the object being used. Size1 float32 Size3 mgl32.Vec3 }
func (ObjectParameters) String ¶
func (o ObjectParameters) String() string
Click to show internal directories.
Click to hide internal directories.