pub struct NameDatabase {
pub transitions: Vec<NameTransition>,
pub starting_transitions: Vec<u16>,
pub string_pool: Vec<u8>,
pub name_offsets: Vec<u32>,
pub names: Vec<String>,
}Expand description
A name database (Game/Names/*): the records from which citizen and town names are made.
Fields§
§transitions: Vec<NameTransition>The transition records.
starting_transitions: Vec<u16>Indices into transitions, sampled by the game’s generator.
string_pool: Vec<u8>NUL-terminated packed ASCII strings from the resource.
name_offsets: Vec<u32>Byte offsets into string_pool, sorted by name in the shipped resources.
names: Vec<String>Decoded names in the resource’s order.
Implementations§
Trait Implementations§
Source§impl Clone for NameDatabase
impl Clone for NameDatabase
Source§fn clone(&self) -> NameDatabase
fn clone(&self) -> NameDatabase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NameDatabase
impl RefUnwindSafe for NameDatabase
impl Send for NameDatabase
impl Sync for NameDatabase
impl Unpin for NameDatabase
impl UnsafeUnpin for NameDatabase
impl UnwindSafe for NameDatabase
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more