//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace G { using CodeStage.AntiCheat.ObscuredTypes; /// /// Generated from: kungfu.xlsx /// public partial class ItemBook { ObscuredInt _obStatus; /// /// /// public int status { get { return _obStatus; } set { _obStatus = value; } } /// /// /// public bool isUnlock { get { return _obStatus > 0; } set { if (_obStatus <= 0) _obStatus = 1; } } /// /// /// public bool isActive { get { return _obStatus > 1; } set { if (_obStatus <= 1) _obStatus = 2; } } /// /// /// public bool canActive { get { return _obStatus == 1; } } /// /// /// public ItemBookGroup bookGroup { get; set; } /// /// /// /// public bool Unlock() { if (_obStatus <= 0) { _obStatus = 1; return true; } return false; } public bool Active() { if (_obStatus == 1) { _obStatus = 2; return true; } return false; } /// /// /// /// public int CalcCombatValue() { return isActive ? combatValue : 0; } public override void Reset() { _obStatus = 0; } } }