public SoulLevelDetail(uint playerId)
 {
     this.playerId   = playerId;
     this.changeTime = new uint[ValueProperty.GetMaxSoulLvl()];
 }
 public uint GetPlayerLevelChangedTime(uint playerId, uint soulLevel)
 {
     for (int i = 0; i < this.playerSoulLevelDetail.get_Count(); i++)
     {
         if (this.playerSoulLevelDetail.get_Item(i).playerId == playerId && (ulong)soulLevel <= (ulong)((long)ValueProperty.GetMaxSoulLvl()) && soulLevel > 0u)
         {
             return(this.playerSoulLevelDetail.get_Item(i).changeTime[(int)((uint)((UIntPtr)(soulLevel - 1u)))]);
         }
     }
     return(0u);
 }
Пример #3
0
 public void UninitActor()
 {
     if (this.HurtControl != null)
     {
         this.HurtControl.Uninit();
     }
     if (this.MovementComponent != null)
     {
         this.MovementComponent.Uninit();
     }
     if (this.SkillControl != null)
     {
         this.SkillControl.Uninit();
     }
     if (this.HudControl != null)
     {
         this.HudControl.Uninit();
     }
     if (this.AnimControl != null)
     {
         this.AnimControl.Uninit();
     }
     if (this.BuffHolderComp != null)
     {
         this.BuffHolderComp.Uninit();
     }
     if (this.EffectControl != null)
     {
         this.EffectControl.Uninit();
     }
     if (this.ActorControl != null)
     {
         this.ActorControl.Uninit();
     }
     if (this.HorizonMarker != null)
     {
         this.HorizonMarker.Uninit();
     }
     if (this.ValueComponent != null)
     {
         this.ValueComponent.Uninit();
     }
     if (this.EquipComponent != null)
     {
         this.EquipComponent.Uninit();
     }
     if (this.HurtControl != null)
     {
         this.HurtControl.Release();
         this.HurtControl = null;
     }
     if (this.MovementComponent != null)
     {
         this.MovementComponent.Release();
         this.MovementComponent = null;
     }
     if (this.SkillControl != null)
     {
         this.SkillControl.Release();
         this.SkillControl = null;
     }
     if (this.HudControl != null)
     {
         this.HudControl.Release();
         this.HudControl = null;
     }
     if (this.AnimControl != null)
     {
         this.AnimControl.Release();
         this.AnimControl = null;
     }
     if (this.BuffHolderComp != null)
     {
         this.BuffHolderComp.Release();
         this.BuffHolderComp = null;
     }
     if (this.EffectControl != null)
     {
         this.EffectControl.Release();
         this.EffectControl = null;
     }
     if (this.HorizonMarker != null)
     {
         this.HorizonMarker.Release();
         this.HorizonMarker = null;
     }
     if (this.ActorControl != null)
     {
         this.ActorControl.Release();
         this.ActorControl = null;
     }
     if (this.ValueComponent != null)
     {
         this.ValueComponent.Release();
         this.ValueComponent = null;
     }
     if (this.EquipComponent != null)
     {
         this.EquipComponent.Release();
         this.EquipComponent = null;
     }
     if (this.DefaultAttackModeControl != null)
     {
         this.DefaultAttackModeControl.Release();
         this.DefaultAttackModeControl = null;
     }
     if (this.LockTargetAttackModeControl != null)
     {
         this.LockTargetAttackModeControl.Release();
         this.LockTargetAttackModeControl = null;
     }
 }