MCPcopy Create free account
hub / github.com/EngoEngine/ecs / NewBasic

Function NewBasic

entity.go:34–36  ·  view source on GitHub ↗

NewBasic creates a new Entity with a new unique identifier. It is safe for concurrent use.

()

Source from the content-addressed store, hash-verified

32// NewBasic creates a new Entity with a new unique identifier. It is safe for
33// concurrent use.
34func NewBasic() BasicEntity {
35 return BasicEntity{id: atomic.AddUint64(&idInc, 1)}
36}
37
38// NewBasics creates an amount of new entities with a new unique identifiers. It
39// is safe for concurrent use, and performs better than NewBasic for large

Callers 15

TestWorld_AddEntityFunction · 0.85
TestSystemPriorityFunction · 0.85
TestAddRemoveFunction · 0.85
TestCreateEntityFunction · 0.85
TestChangeableComponentsFunction · 0.85
TestDeleteFunction · 0.85
TestIdentifierInterfaceFunction · 0.85
TestParentChildFunction · 0.85
TestRemoveChildFunction · 0.85
TestDescendentsFunction · 0.85

Calls

no outgoing calls

Tested by 15

TestWorld_AddEntityFunction · 0.68
TestSystemPriorityFunction · 0.68
TestAddRemoveFunction · 0.68
TestCreateEntityFunction · 0.68
TestChangeableComponentsFunction · 0.68
TestDeleteFunction · 0.68
TestIdentifierInterfaceFunction · 0.68
TestParentChildFunction · 0.68
TestRemoveChildFunction · 0.68
TestDescendentsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…