pub trait IUnitRelianceDataMethods: IUnitRelianceData {
Show 19 methods
// Provided methods
fn ctor(self, reliance_exp: impl Into<RelianceExpData>) { ... }
fn reset(self) { ... }
fn reset_map_begin(self) { ... }
fn add_exp(self, value: impl Into<i32>) { ... }
fn add_score(self, value: impl Into<i32>) { ... }
fn can_level_up(self) -> bool { ... }
fn level_up(self) { ... }
fn set_level_a_plus(self) { ... }
fn serialize(self, stream: impl Into<Stream_2>) { ... }
fn deserialize(self, stream: impl Into<Stream_2>) { ... }
fn get_level(self) -> RelianceData_Level { ... }
fn get_exp(self) -> i32 { ... }
fn set_exp(self, value: impl Into<i32>) { ... }
fn get_score(self) -> i32 { ... }
fn set_score(self, value: impl Into<i32>) { ... }
fn get_next_level_exp(
self,
current_level: impl Into<RelianceData_Level>,
) -> i32 { ... }
fn get_clamp_exp(self) -> i32 { ... }
fn clamp_exp(self, new_exp: impl Into<i32>) -> i8 { ... }
fn clamp_score(self, new_score: impl Into<i32>) -> i8 { ... }
}Provided Methods§
Sourcefn ctor(self, reliance_exp: impl Into<RelianceExpData>)
fn ctor(self, reliance_exp: impl Into<RelianceExpData>)
.ctor(crate::app::relianceexpdata::RelianceExpData) overload
Sourcefn reset_map_begin(self)
fn reset_map_begin(self)
ResetMapBegin() overload
Sourcefn can_level_up(self) -> bool
fn can_level_up(self) -> bool
CanLevelUp() overload
Sourcefn set_level_a_plus(self)
fn set_level_a_plus(self)
SetLevelAPlus() overload
Sourcefn serialize(self, stream: impl Into<Stream_2>)
fn serialize(self, stream: impl Into<Stream_2>)
Serialize(crate::app::stream_2::Stream_2) overload
Sourcefn deserialize(self, stream: impl Into<Stream_2>)
fn deserialize(self, stream: impl Into<Stream_2>)
Deserialize(crate::app::stream_2::Stream_2) overload
Sourcefn get_level(self) -> RelianceData_Level
fn get_level(self) -> RelianceData_Level
get_Level() overload
Sourcefn get_next_level_exp(self, current_level: impl Into<RelianceData_Level>) -> i32
fn get_next_level_exp(self, current_level: impl Into<RelianceData_Level>) -> i32
GetNextLevelExp(crate::app::reliancedata::RelianceData_Level) overload
Sourcefn get_clamp_exp(self) -> i32
fn get_clamp_exp(self) -> i32
GetClampExp() overload
Sourcefn clamp_score(self, new_score: impl Into<i32>) -> i8
fn clamp_score(self, new_score: impl Into<i32>) -> i8
ClampScore(i32) 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§
impl<__T: IUnitRelianceData> IUnitRelianceDataMethods for __T
Available on crate feature
app-unitreliancedata only.