pub struct World {
Show 19 fields pub random: ChaCha20Rng, pub data: Box<dyn Cave>, pub definitions_in_source: HashMap<String, Vec<(String, ComponentType)>>, pub component_names: Vec<String>, pub component_types: HashMap<String, ComponentType>, pub registered_states: HashMap<String, ComponentSignature>, pub registered_events: HashMap<String, ComponentSignature>, pub registered_tags: HashSet<String>, pub storage_pointers: HashMap<String, BinaryComponent>, pub entity_bitmap: Bitmap<MAX_ENTRIES_PER_STORAGE>, pub event_queues: HashMap<String, VecDeque<BinaryComponent>>, pub next_event_queues: HashMap<String, VecDeque<BinaryComponent>>, pub storage_bitmaps: HashMap<String, Bitmap<MAX_ENTRIES_PER_STORAGE>>, pub system_priorities: HashMap<SystemPriority, u16>, pub unique_storage: HashMap<u32, RascalValue>, pub field_storage: HashMap<FieldId, Field>, pub set_storage: HashMap<SetId, HashSet<(i32, i32)>>, pub set_cache: HashMap<Geom, HashSet<(i32, i32)>>, pub size: (u32, u32),
}

Fields

random: ChaCha20Rngdata: Box<dyn Cave>definitions_in_source: HashMap<String, Vec<(String, ComponentType)>>component_names: Vec<String>component_types: HashMap<String, ComponentType>registered_states: HashMap<String, ComponentSignature>registered_events: HashMap<String, ComponentSignature>registered_tags: HashSet<String>storage_pointers: HashMap<String, BinaryComponent>entity_bitmap: Bitmap<MAX_ENTRIES_PER_STORAGE>event_queues: HashMap<String, VecDeque<BinaryComponent>>next_event_queues: HashMap<String, VecDeque<BinaryComponent>>storage_bitmaps: HashMap<String, Bitmap<MAX_ENTRIES_PER_STORAGE>>system_priorities: HashMap<SystemPriority, u16>unique_storage: HashMap<u32, RascalValue>field_storage: HashMap<FieldId, Field>set_storage: HashMap<SetId, HashSet<(i32, i32)>>set_cache: HashMap<Geom, HashSet<(i32, i32)>>size: (u32, u32)

Implementations

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.