pub struct TypedDatabase<'db> {
Show 46 fields pub activities: ActivitiesTable<'db>, pub activity_text: ActivityTextTable<'db>, pub activity_rewards: Option<ActivityRewardsTable<'db>>, pub behavior_parameters: BehaviorParameterTable<'db>, pub behavior_templates: BehaviorTemplateTable<'db>, pub collectible_component: CollectibleComponentTable<'db>, pub comp_reg: ComponentsRegistryTable<'db>, pub currency_denominations: CurrencyDenominationsTable<'db>, pub deletion_restrictions: DeletionRestrictionsTable<'db>, pub destructible_component: DestructibleComponentTable<'db>, pub emotes: EmotesTable<'db>, pub icons: IconsTable<'db>, pub inventory_component: InventoryComponentTable<'db>, pub item_component: ItemComponentTable<'db>, pub item_sets: ItemSetsTable<'db>, pub item_set_skills: ItemSetSkillsTable<'db>, pub jet_pack_pad_component: Option<JetPackPadComponentTable<'db>>, pub loot_table: LootTableTable<'db>, pub loot_matrix: LootMatrixTable<'db>, pub mission_email: Option<MissionEmailTable<'db>>, pub mission_npc_component: Option<MissionNpcComponentTable<'db>>, pub mission_tasks: MissionTasksTable<'db>, pub mission_text: MissionTextTable<'db>, pub missions: MissionsTable<'db>, pub npc_icons: NpcIconsTable<'db>, pub objects: ObjectsTable<'db>, pub object_skills: ObjectSkillsTable<'db>, pub package_component: Option<PackageComponentTable<'db>>, pub player_statistics: Option<PlayerStatisticsTable<'db>>, pub preconditions: PreconditionsTable<'db>, pub property_template: PropertyTemplateTable<'db>, pub rebuild_component: RebuildComponentTable<'db>, pub rebuild_sections: Option<RebuildSectionsTable<'db>>, pub rewards: Option<RewardsTable<'db>>, pub reward_codes: Option<RewardCodesTable<'db>>, pub render_comp: RenderComponentTable<'db>, pub skills: SkillBehaviorTable<'db>, pub smashable_component: Option<SmashableComponentTable<'db>>, pub speedchat_menu: SpeedchatMenuTable<'db>, pub taming_build_puzzles: TamingBuildPuzzlesTable<'db>, pub ug_behavior_sounds: Option<UgBehaviorSoundsTable<'db>>, pub vendor_component: Option<VendorComponentTable<'db>>, pub whats_cool_item_spotlight: Option<WhatsCoolItemSpotlightTable<'db>>, pub whats_cool_news_and_tips: Option<WhatsCoolNewsAndTipsTable<'db>>, pub zone_loading_tips: Option<ZoneLoadingTipsTable<'db>>, pub zone_table: ZoneTableTable<'db>,
}
Expand description

A selection of relevant database tables

Fields§

§activities: ActivitiesTable<'db>

Activities

§activity_text: ActivityTextTable<'db>

ActivityText

§activity_rewards: Option<ActivityRewardsTable<'db>>

ActivityRewards

§behavior_parameters: BehaviorParameterTable<'db>

BehaviorParameter

§behavior_templates: BehaviorTemplateTable<'db>

BehaviorTemplate

§collectible_component: CollectibleComponentTable<'db>

CollectibleComponent

§comp_reg: ComponentsRegistryTable<'db>

ComponentRegistry

§currency_denominations: CurrencyDenominationsTable<'db>

CurrencyDenominations

§deletion_restrictions: DeletionRestrictionsTable<'db>

DeletionRestrictions

§destructible_component: DestructibleComponentTable<'db>

DestructibleComponent

§emotes: EmotesTable<'db>

Emotes

§icons: IconsTable<'db>

Icons

§inventory_component: InventoryComponentTable<'db>

InventoryComponent

§item_component: ItemComponentTable<'db>

ItemComponent

§item_sets: ItemSetsTable<'db>

ItemSets

§item_set_skills: ItemSetSkillsTable<'db>

ItemSetSkills

§jet_pack_pad_component: Option<JetPackPadComponentTable<'db>>

JetPackPadComponent

§loot_table: LootTableTable<'db>

LootTable

§loot_matrix: LootMatrixTable<'db>

LootMatrix

§mission_email: Option<MissionEmailTable<'db>>

MissionEmail

§mission_npc_component: Option<MissionNpcComponentTable<'db>>

MissionNPCComponent

§mission_tasks: MissionTasksTable<'db>

MissionTasks

§mission_text: MissionTextTable<'db>

MissionText

§missions: MissionsTable<'db>

Missions

§npc_icons: NpcIconsTable<'db>

NpcIcons

§objects: ObjectsTable<'db>

Objects

§object_skills: ObjectSkillsTable<'db>

Objects

§package_component: Option<PackageComponentTable<'db>>

PackageComponent

§player_statistics: Option<PlayerStatisticsTable<'db>>

PlayerStatistics

§preconditions: PreconditionsTable<'db>

Preconditions

§property_template: PropertyTemplateTable<'db>

PropertyTemplate

§rebuild_component: RebuildComponentTable<'db>

RebuildComponent

§rebuild_sections: Option<RebuildSectionsTable<'db>>

RebuildSections

§rewards: Option<RewardsTable<'db>>

Rewards

§reward_codes: Option<RewardCodesTable<'db>>

RewardCodes

§render_comp: RenderComponentTable<'db>

RenderComponent

§skills: SkillBehaviorTable<'db>

SkillBehavior

§smashable_component: Option<SmashableComponentTable<'db>>

SmashableComponent

§speedchat_menu: SpeedchatMenuTable<'db>

SpeedchatMenu

§taming_build_puzzles: TamingBuildPuzzlesTable<'db>

TamingBuildPuzzles

§ug_behavior_sounds: Option<UgBehaviorSoundsTable<'db>>

UGBehaviorSounds

§vendor_component: Option<VendorComponentTable<'db>>

VendorComponent

§whats_cool_item_spotlight: Option<WhatsCoolItemSpotlightTable<'db>>

WhatsCoolItemSpotlight

§whats_cool_news_and_tips: Option<WhatsCoolNewsAndTipsTable<'db>>

WhatsCoolNewsAndTips

§zone_loading_tips: Option<ZoneLoadingTipsTable<'db>>

ZoneLoadingTips

§zone_table: ZoneTableTable<'db>

ZoneTable

Implementations§

source§

impl<'a> TypedDatabase<'a>

source

pub fn new(tables: Tables<'a>) -> Result<Self, CastError>

Construct a new typed database

source

pub fn get_icon_path(&self, id: i32) -> Option<&Latin1Str>

Get the path of an icon ID

source

pub fn get_mission_data(&self, id: i32) -> Option<Mission>

Get data for the specified mission ID

source

pub fn get_mission_tasks(&self, id: i32) -> Vec<MissionTask>

Get a list of mission tasks for the specified mission ID

source

pub fn get_object_name_desc(&self, id: i32) -> Option<(String, String)>

Get the name and description for the specified LOT

source

pub fn get_render_image(&self, id: i32) -> Option<&Latin1Str>

Get the path of the icon asset of the specified render component

source

pub fn get_components(&self, id: i32) -> Components

Get all components for the specified LOT

Trait Implementations§

source§

impl<'db> Clone for TypedDatabase<'db>

source§

fn clone(&self) -> TypedDatabase<'db>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<'db> RefUnwindSafe for TypedDatabase<'db>

§

impl<'db> Send for TypedDatabase<'db>

§

impl<'db> Sync for TypedDatabase<'db>

§

impl<'db> Unpin for TypedDatabase<'db>

§

impl<'db> UnwindSafe for TypedDatabase<'db>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.