Index
Modules:
naecs
,
naecs/world
.
API symbols
addComponent:
world: proc addComponent[T](world: var World; entity: uint64; component: T): ptr T
world: proc addComponent[T](world: var World; entity: uint64; componentType: typedesc[T]): ptr T
addEntity:
world: proc addEntity(world: var World): uint64
addTag:
world: proc addTag(world: var World; entity: uint64; tagType: typedesc)
dispatchEventQueue:
world: proc dispatchEventQueue(world: var World)
Entity:
world: object Entity
freeEntity:
world: proc freeEntity(world: var World; entity: uint64)
getComponent:
world: proc getComponent[T](world: var World; entity: uint64; componentType: typedesc[T]): ptr T
getComponentID:
world: proc getComponentID(world: var World; componentType: typedesc): uint32
getEntityId:
world: proc getEntityId(entity: uint64): uint32
getEntityVersion:
world: proc getEntityVersion(entity: uint64): uint32
getTagID:
world: proc getTagID(world: var World; tagType: typedesc): uint32
hasComponent:
world: proc hasComponent(world: var World; entity: uint64; componentType: typedesc): bool
hasTag:
world: proc hasTag(world: var World; entity: uint64; tagType: typedesc): bool
initWorld:
world: proc initWorld(initAlloc: uint32 = 1000; allocSize: uint32 = 1000): World
prefab:
world: macro prefab(name: string; body: untyped): untyped
registerListener:
world: proc registerListener[T](world: var World; listener: proc (w: var World; e: ptr T) {.closure.})
removeComponent:
world: proc removeComponent(world: var World; entity: uint64; componentType: typedesc)
removeTag:
world: proc removeTag(world: var World; entity: uint64; tagType: typedesc)
sendEvent:
world: proc sendEvent[T](world: var World; event: T)
spawn:
world: macro spawn(world: untyped; name: string; overrides: varargs[untyped]): untyped
system:
world: macro system(world: untyped; name: untyped; args: varargs[untyped]): untyped
withComponent:
world: iterator withComponent(world: var World; componentType: typedesc): uint64
withComponents:
world: iterator withComponents(world: var World; T1: typedesc; T2: typedesc): uint64
withComponents3:
world: iterator withComponents3(world: var World; T1: typedesc; T2: typedesc; T3: typedesc): uint64
withComponents4:
world: iterator withComponents4(world: var World; T1: typedesc; T2: typedesc; T3: typedesc; T4: typedesc): uint64
withComponentSeq:
world: proc withComponentSeq(entities: seq[uint64]; world: var World; componentType: typedesc): seq[uint64]
world: proc withComponentSeq(world: var World; componentType: typedesc): seq[uint64]
withComponentTag:
world: iterator withComponentTag(world: var World; Comp: typedesc; Tag: typedesc): uint64
withTag:
world: iterator withTag(world: var World; tagType: typedesc): uint64
withTagSeq:
world: proc withTagSeq(entities: seq[uint64]; world: var World; tagType: typedesc): seq[ uint64]
world: proc withTagSeq(world: var World; tagType: typedesc): seq[uint64]
World:
world: object World