Skip to main content

IShopWeaponModelRendererMethods

Trait IShopWeaponModelRendererMethods 

Source
pub trait IShopWeaponModelRendererMethods: IShopWeaponModelRenderer {
    // Provided methods
    fn create_internal(self) { ... }
    fn destroy(self) { ... }
    fn get_render_texture(self) -> RenderTexture { ... }
    fn set_weapon(
        self,
        item_data: impl Into<ItemData>,
        delay_loading: impl Into<bool>,
    ) { ... }
    fn load_weapon_model(self, item_data: impl Into<ItemData>) { ... }
    fn on_finish_loading_weapon(self, game_object_in: impl Into<GameObject>) { ... }
    fn remove_weapon(self) { ... }
    fn remove_weapon_core(self) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn create_internal(self)

CreateInternal() overload

Source

fn destroy(self)

Destroy() overload

Source

fn get_render_texture(self) -> RenderTexture

GetRenderTexture() overload

Source

fn set_weapon( self, item_data: impl Into<ItemData>, delay_loading: impl Into<bool>, )

SetWeapon(crate::app::itemdata::ItemData, bool) overload

Source

fn load_weapon_model(self, item_data: impl Into<ItemData>)

LoadWeaponModel(crate::app::itemdata::ItemData) overload

Source

fn on_finish_loading_weapon(self, game_object_in: impl Into<GameObject>)

OnFinishLoadingWeapon(crate::unity_engine::gameobject::GameObject) overload

Source

fn remove_weapon(self)

RemoveWeapon() overload

Source

fn remove_weapon_core(self)

RemoveWeaponCore() overload

Source

fn ctor(self)

.ctor() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IShopWeaponModelRenderer> IShopWeaponModelRendererMethods for __T

Available on crate feature app-shopweaponmodelrenderer only.