Documentation ¶
Overview ¶
Package stats provides the structs returned by ecs.World.Stats().
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchetypeStats ¶
type ArchetypeStats struct { // Number of entities in the archetype Size int // Capacity of the archetype Capacity int // Number of components Components int // Component IDs ComponentIDs []uint8 // Component types for ComponentIDs ComponentTypes []reflect.Type // Total reserved memory for entities and components, in bytes Memory int }
ArchetypeStats provide statistics for an archetype.
func (*ArchetypeStats) String ¶
func (s *ArchetypeStats) String() string
type EntityStats ¶
type EntityStats struct { // Currently used/alive entities Used int // Current capacity of the entity pool Total int // Recycled/available entities Recycled int // Current capacity of the entities list Capacity int }
EntityStats provide statistics about [World] entities.
func (*EntityStats) String ¶
func (s *EntityStats) String() string
type WorldStats ¶
type WorldStats struct { // Entity statistics Entities EntityStats // Total number of components ComponentCount int // Component types, indexed by component ID ComponentTypes []reflect.Type // Locked state of the world Locked bool // Archetype statistics Archetypes []ArchetypeStats // Memory used by entities and components Memory int }
WorldStats provide statistics for a [World].
func (*WorldStats) String ¶
func (s *WorldStats) String() string
Click to show internal directories.
Click to hide internal directories.