GitHub

entity_address

API reference for entity_address.

EntityAddress: an entity's type, id and shard (Effect's EntityAddress).

Classes

Functions

make

make(*, shard_id, entity_type, entity_id) -> EntityAddress
ParameterTypeDescription
shard_idShardId
entity_typeEntityType
entity_idEntityId

Returns EntityAddress

def make(*, shard_id: ShardId, entity_type: EntityType, entity_id: EntityId) -> EntityAddress:
    return S.new(EntityAddress, disable_checks=True)(
        shard_id=shard_id, entity_type=entity_type, entity_id=entity_id
    )