Skip to main content

IGameVariableMethods

Trait IGameVariableMethods 

Source
pub trait IGameVariableMethods: IGameVariable {
Show 41 methods // Provided methods fn ctor(self, capacity: impl Into<i32>) { ... } fn get_count(self) -> i32 { ... } fn get_capacity(self) -> i32 { ... } fn can_rwind(self, key: impl Into<Il2CppString>) -> bool { ... } fn entry(self, key: impl Into<Il2CppString>, num: impl Into<i32>) -> bool { ... } fn entry_2( self, key: impl Into<Il2CppString>, str: impl Into<Il2CppString>, ) -> bool { ... } fn entry_no_rewind( self, key: impl Into<Il2CppString>, num: impl Into<i32>, ) -> bool { ... } fn entry_no_rewind_2( self, key: impl Into<Il2CppString>, str: impl Into<Il2CppString>, ) -> bool { ... } fn entry_impl( self, key: impl Into<Il2CppString>, value: impl Into<GameVariable_Value>, rewindable: impl Into<bool>, ) { ... } fn remove(self, key: impl Into<Il2CppString>) -> bool { ... } fn remove_impl(self, key: impl Into<Il2CppString>) { ... } fn get(self, key: impl Into<Il2CppString>) -> i32 { ... } fn is_string(self, key: impl Into<Il2CppString>) -> bool { ... } fn get_number(self, key: impl Into<Il2CppString>) -> i32 { ... } fn get_bool(self, key: impl Into<Il2CppString>) -> bool { ... } fn try_get_bool(self, key: impl Into<Il2CppString>) -> bool { ... } fn get_string(self, key: impl Into<Il2CppString>) -> Il2CppString { ... } fn try_get(self, key: impl Into<Il2CppString>, empty: impl Into<i32>) -> i32 { ... } fn try_get_2(self, key: impl Into<Il2CppString>) -> (bool, i32) { ... } fn set(self, key: impl Into<Il2CppString>, enable: impl Into<bool>) { ... } fn set_2(self, key: impl Into<Il2CppString>, num: impl Into<i32>) { ... } fn set_3(self, key: impl Into<Il2CppString>, str: impl Into<Il2CppString>) { ... } fn set_number(self, key: impl Into<Il2CppString>, num: impl Into<i32>) { ... } fn set_string( self, key: impl Into<Il2CppString>, str: impl Into<Il2CppString>, ) { ... } fn add( self, key: impl Into<Il2CppString>, count: impl Into<i32>, min: impl Into<i32>, max: impl Into<i32>, ) -> i32 { ... } fn clear_all(self) { ... } fn clear_local(self) { ... } fn clear_chapter(self) { ... } fn clear_hub(self) { ... } fn clear_starts_with(self, name: impl Into<Il2CppString>) { ... } fn find_starts_with( self, name: impl Into<Il2CppString>, ) -> List_1<Il2CppString> { ... } fn clear_keys(self, keys: impl Into<List_1<Il2CppString>>) { ... } fn is_exist(self, key: impl Into<Il2CppString>) -> bool { ... } fn serialize(self, stream: impl Into<Stream_2>) { ... } fn deserialize(self, stream: impl Into<Stream_2>) { ... } fn serialize_key_value( self, stream: impl Into<Stream_2>, key_value: impl Into<KeyValuePair_2<Il2CppString, GameVariable_Value>>, ) { ... } fn deserialize_key_value(self, stream: impl Into<Stream_2>) { ... } fn serialize_for_online(self, stream: impl Into<Stream_2>) { ... } fn deserialize_for_online(self, stream: impl Into<Stream_2>) { ... } fn find_keys(self, header: impl Into<Il2CppString>) -> List_1<Il2CppString> { ... } fn get_name(self, key: impl Into<Il2CppString>) -> Il2CppString { ... }
}

Provided Methods§

Source

fn ctor(self, capacity: impl Into<i32>)

.ctor(i32) overload

Source

fn get_count(self) -> i32

get_Count() overload

Source

fn get_capacity(self) -> i32

get_Capacity() overload

Source

fn can_rwind(self, key: impl Into<Il2CppString>) -> bool

CanRwind(::unity::Il2CppString) overload

Source

fn entry(self, key: impl Into<Il2CppString>, num: impl Into<i32>) -> bool

Entry(::unity::Il2CppString, i32) overload

Source

fn entry_2( self, key: impl Into<Il2CppString>, str: impl Into<Il2CppString>, ) -> bool

Entry(::unity::Il2CppString, ::unity::Il2CppString) overload

Source

fn entry_no_rewind( self, key: impl Into<Il2CppString>, num: impl Into<i32>, ) -> bool

EntryNoRewind(::unity::Il2CppString, i32) overload

Source

fn entry_no_rewind_2( self, key: impl Into<Il2CppString>, str: impl Into<Il2CppString>, ) -> bool

EntryNoRewind(::unity::Il2CppString, ::unity::Il2CppString) overload

Source

fn entry_impl( self, key: impl Into<Il2CppString>, value: impl Into<GameVariable_Value>, rewindable: impl Into<bool>, )

EntryImpl(::unity::Il2CppString, crate::app::gamevariable::GameVariable_Value, bool) overload

Source

fn remove(self, key: impl Into<Il2CppString>) -> bool

Remove(::unity::Il2CppString) overload

Source

fn remove_impl(self, key: impl Into<Il2CppString>)

RemoveImpl(::unity::Il2CppString) overload

Source

fn get(self, key: impl Into<Il2CppString>) -> i32

Get(::unity::Il2CppString) overload

Source

fn is_string(self, key: impl Into<Il2CppString>) -> bool

IsString(::unity::Il2CppString) overload

Source

fn get_number(self, key: impl Into<Il2CppString>) -> i32

GetNumber(::unity::Il2CppString) overload

Source

fn get_bool(self, key: impl Into<Il2CppString>) -> bool

GetBool(::unity::Il2CppString) overload

Source

fn try_get_bool(self, key: impl Into<Il2CppString>) -> bool

TryGetBool(::unity::Il2CppString) overload

Source

fn get_string(self, key: impl Into<Il2CppString>) -> Il2CppString

GetString(::unity::Il2CppString) overload

Source

fn try_get(self, key: impl Into<Il2CppString>, empty: impl Into<i32>) -> i32

TryGet(::unity::Il2CppString, i32) overload

Source

fn try_get_2(self, key: impl Into<Il2CppString>) -> (bool, i32)

TryGet(::unity::Il2CppString, *muti32) overload

Source

fn set(self, key: impl Into<Il2CppString>, enable: impl Into<bool>)

Set(::unity::Il2CppString, bool) overload

Source

fn set_2(self, key: impl Into<Il2CppString>, num: impl Into<i32>)

Set(::unity::Il2CppString, i32) overload

Source

fn set_3(self, key: impl Into<Il2CppString>, str: impl Into<Il2CppString>)

Set(::unity::Il2CppString, ::unity::Il2CppString) overload

Source

fn set_number(self, key: impl Into<Il2CppString>, num: impl Into<i32>)

SetNumber(::unity::Il2CppString, i32) overload

Source

fn set_string(self, key: impl Into<Il2CppString>, str: impl Into<Il2CppString>)

SetString(::unity::Il2CppString, ::unity::Il2CppString) overload

Source

fn add( self, key: impl Into<Il2CppString>, count: impl Into<i32>, min: impl Into<i32>, max: impl Into<i32>, ) -> i32

Add(::unity::Il2CppString, i32, i32, i32) overload

Source

fn clear_all(self)

ClearAll() overload

Source

fn clear_local(self)

ClearLocal() overload

Source

fn clear_chapter(self)

ClearChapter() overload

Source

fn clear_hub(self)

ClearHub() overload

Source

fn clear_starts_with(self, name: impl Into<Il2CppString>)

ClearStartsWith(::unity::Il2CppString) overload

Source

fn find_starts_with(self, name: impl Into<Il2CppString>) -> List_1<Il2CppString>

FindStartsWith(::unity::Il2CppString) overload

Source

fn clear_keys(self, keys: impl Into<List_1<Il2CppString>>)

ClearKeys(crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>) overload

Source

fn is_exist(self, key: impl Into<Il2CppString>) -> bool

IsExist(::unity::Il2CppString) overload

Source

fn serialize(self, stream: impl Into<Stream_2>)

Serialize(crate::app::stream_2::Stream_2) overload

Source

fn deserialize(self, stream: impl Into<Stream_2>)

Deserialize(crate::app::stream_2::Stream_2) overload

Source

fn serialize_key_value( self, stream: impl Into<Stream_2>, key_value: impl Into<KeyValuePair_2<Il2CppString, GameVariable_Value>>, )

SerializeKeyValue(crate::app::stream_2::Stream_2, crate::system::collections::generic::keyvaluepair_2::KeyValuePair_2<::unity::Il2CppString,crate::app::gamevariable::GameVariable_Value>) overload

Source

fn deserialize_key_value(self, stream: impl Into<Stream_2>)

DeserializeKeyValue(crate::app::stream_2::Stream_2) overload

Source

fn serialize_for_online(self, stream: impl Into<Stream_2>)

SerializeForOnline(crate::app::stream_2::Stream_2) overload

Source

fn deserialize_for_online(self, stream: impl Into<Stream_2>)

DeserializeForOnline(crate::app::stream_2::Stream_2) overload

Source

fn find_keys(self, header: impl Into<Il2CppString>) -> List_1<Il2CppString>

FindKeys(::unity::Il2CppString) overload

Source

fn get_name(self, key: impl Into<Il2CppString>) -> Il2CppString

GetName(::unity::Il2CppString) 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: IGameVariable> IGameVariableMethods for __T

Available on crate feature app-gamevariable only.