-
-
Notifications
You must be signed in to change notification settings - Fork 11
EntityIdentifier
ctreffs edited this page Oct 7, 2020
·
5 revisions
EntityIdentifier
public struct EntityIdentifier
An entity identifier represents the unique identity of an entity.
ExpressibleByIntegerLiteral
, RawRepresentable
Entity identifier type.
public typealias Identifier = UInt32
Provides 4294967295 unique identifiers.
@inlinable public init(_ id: Identifier)
@inlinable public init(rawValue: Identifier)
public init(integerLiteral value: Identifier)
The entity identifier.
let id: Identifier
The entity identifier represented as a raw value.
var rawValue: Identifier
Invalid entity identifier
let invalid
Used to represent an invalid entity identifier.
Provides the entity identifier as an index
var index: Int
This is a convenience property for collection indexing and does not represent the raw identifier.
Use id
or rawValue
instead.
Generated at 2020-11-25T10:28:11+0000 using swift-doc 1.0.0-beta.5.
Types
- ComponentAdded
- ComponentIdentifier
- ComponentInstanceProvider
- ComponentRemoved
- ComponentSingletonProvider
- ComponentTypeProvider
- ComponentsBuilder.Context
- ComponentsBuilderPreview
- DefaultCodingStrategy
- DynamicCodingKey
- DynamicComponentProvider
- DynamicComponentProvider.Closure
- Entity
- Entity.ComponentsIterator
- EntityCreated
- EntityDestroyed
- EntityIdentifier
- EntityState
- EntityStateMachine
- Family
- Family.ComponentsIterator
- Family.EntityComponentIterator
- Family.EntityIterator
- FamilyMemberAdded
- FamilyMemberBuilderPreview
- FamilyMemberRemoved
- FamilyTraitSet
- LinearIncrementingEntityIdGenerator
- ManagedContiguousArray
- Nexus
- Nexus.EntitiesIterator
- Requires1
- Requires2
- Requires3
- Requires4
- Requires5
- Requires6
- Requires7
- Requires8
- Single
- StateComponentMapping
- StringHashing
- UnorderedSparseSet
- UnorderedSparseSet.ElementIterator
Protocols
- CodingStrategy
- Component
- ComponentProvider
- DefaultInitializable
- EntityIdentifierGenerator
- FamilyDecoding
- FamilyEncoding
- FamilyRequirementsManaging
- NexusEvent
- NexusEventDelegate
- RequiringComponents1
- RequiringComponents2
- RequiringComponents3
- RequiringComponents4
- RequiringComponents5
- RequiringComponents6
- RequiringComponents7
- RequiringComponents8
- SingleComponent
- TopLevelDecoder
- TopLevelEncoder