Skip to main content

UtilitySounds

Struct UtilitySounds 

Source
pub struct UtilitySounds {
Show 40 fields pub name: &'static str, pub achievement_unlocked: LuaAny, pub adjust_blueprint_snapping: LuaAny, pub alert_destroyed: LuaAny, pub armor_insert: LuaAny, pub armor_remove: LuaAny, pub axe_fighting: LuaAny, pub axe_mining_ore: LuaAny, pub axe_mining_stone: LuaAny, pub blueprint_preview_build: LuaAny, pub blueprint_preview_mine: LuaAny, pub build_animated_huge: LuaAny, pub build_animated_large: LuaAny, pub build_animated_medium: LuaAny, pub build_animated_small: LuaAny, pub build_behemoth: LuaAny, pub build_blueprint_huge: LuaAny, pub build_blueprint_large: LuaAny, pub build_blueprint_medium: LuaAny, pub build_blueprint_small: LuaAny, pub build_ghost_upgrade: LuaAny, pub build_ghost_upgrade_cancel: LuaAny, pub build_huge: LuaAny, pub build_large: LuaAny, pub build_medium: LuaAny, pub build_small: LuaAny, pub cannot_build: LuaAny, pub change_quality: LuaAny, pub clear_cursor: LuaAny, pub confirm: LuaAny, pub console_message: LuaAny, pub console_platform_created: LuaAny, pub console_platform_destroyed: LuaAny, pub console_player_changed_logistic_group: LuaAny, pub console_player_died: LuaAny, pub console_player_joined: LuaAny, pub console_player_left: LuaAny, pub console_player_paused_game: LuaAny, pub console_player_research: LuaAny, pub console_player_respawned: LuaAny,
}
Expand description

Minimal UtilitySounds for data.extend.

Sounds used by the game that are not specific to certain prototypes.

type = "utility-sounds" is injected by the Lua generator.

Fields§

§name: &'static str

Unique textual identification of the prototype. May only contain alphanumeric characters, dashes and underscores. May not exceed a length of 200 characters.

For a list of all names used in vanilla, see data.raw.

§achievement_unlocked: LuaAny

Sound category "gui-effect".

§adjust_blueprint_snapping: LuaAny

Sound category "gui-effect".

§alert_destroyed: LuaAny

Sound category "alert".

§armor_insert: LuaAny

Sound category "gui-effect".

§armor_remove: LuaAny

Sound category "gui-effect".

§axe_fighting: LuaAny

Sound category "game-effect".

§axe_mining_ore: LuaAny

Sound category "game-effect".

§axe_mining_stone: LuaAny

Sound category "game-effect".

§blueprint_preview_build: LuaAny

Sound category "gui-effect".

§blueprint_preview_mine: LuaAny

Sound category "gui-effect".

§build_animated_huge: LuaAny

Sound category "game-effect".

§build_animated_large: LuaAny

Sound category "game-effect".

§build_animated_medium: LuaAny

Sound category "game-effect".

§build_animated_small: LuaAny

Sound category "game-effect".

§build_behemoth: LuaAny

Sound category "game-effect".

§build_blueprint_huge: LuaAny

Sound category "game-effect".

§build_blueprint_large: LuaAny

Sound category "game-effect".

§build_blueprint_medium: LuaAny

Sound category "game-effect".

§build_blueprint_small: LuaAny

Sound category "game-effect".

§build_ghost_upgrade: LuaAny

Sound category "game-effect".

§build_ghost_upgrade_cancel: LuaAny

Sound category "game-effect".

§build_huge: LuaAny

Sound category "game-effect".

§build_large: LuaAny

Sound category "game-effect".

§build_medium: LuaAny

Sound category "game-effect".

§build_small: LuaAny

Sound category "game-effect".

§cannot_build: LuaAny

Sound category "gui-effect".

§change_quality: LuaAny

Sound category "gui-effect".

§clear_cursor: LuaAny

Sound category "gui-effect".

§confirm: LuaAny

Sound category "gui-effect".

§console_message: LuaAny

Sound category "gui-effect".

§console_platform_created: LuaAny

Sound category "gui-effect".

§console_platform_destroyed: LuaAny

Sound category "gui-effect".

§console_player_changed_logistic_group: LuaAny

Sound category "gui-effect".

§console_player_died: LuaAny

Sound category "gui-effect".

§console_player_joined: LuaAny

Sound category "gui-effect".

§console_player_left: LuaAny

Sound category "gui-effect".

§console_player_paused_game: LuaAny

Sound category "gui-effect".

§console_player_research: LuaAny

Sound category "gui-effect".

§console_player_respawned: LuaAny

Sound category "gui-effect".

Trait Implementations§

Source§

impl Clone for UtilitySounds

Source§

fn clone(&self) -> UtilitySounds

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for UtilitySounds

Source§

impl Debug for UtilitySounds

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for UtilitySounds

Source§

fn default() -> UtilitySounds

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

impl Eq for UtilitySounds

Source§

impl PartialEq for UtilitySounds

Source§

fn eq(&self, other: &UtilitySounds) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for UtilitySounds

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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 T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.