public override void equip(PlayerController target)
 {
     PreviousSpeed = target.Parameter.CurrentHungerSpeed;
     target.Parameter.CurrentHungerSpeed = HungerSpeed;
 }
 protected override void initFromSaveData(EquipmentAbilityData savedata)
 {
     base.initFromSaveData(savedata);
     HungerSpeed = (PlayerParameter.HungerSpeedType)Enum.Parse(typeof(PlayerParameter.HungerSpeedType),savedata.AbilityParameter[0]);
     PreviousSpeed = (PlayerParameter.HungerSpeedType)Enum.Parse(typeof(PlayerParameter.HungerSpeedType), savedata.AbilityParameter[1]);
 }
 public PlayerData(PlayerController player)
 {
     Position = player.CurrentPosition;
     PlayerName = player.Parameter.Name;
     PlayerParameter param = player.Parameter;
     MaxHunger = param.MaxHunger;
     CurrentHunger = param.CurrentHunger;
     CurrentHungerSpeed = param.CurrentHungerSpeed;
     NextHungerCount = param.NextHungerCount;
     NextAutoHealCount = param.NextAutoHealCount;
     AutoHealSpeed = param.AutoHealSpeed;
     ParameterData = new CharacterParameterData(param);
     EntityData = new CharacterEntityData(player);
     Pocket = param.Pocket;
     WareHouseInventory = ItemData.convert(param.WareHouseInventory);
     WareHouseLevel = param.WareHouseLevel;
     Deposit = param.Deposit;
     ObjectCrairvoyant = param.ObjectClairvoyant;
     InvalidateCursing = param.InvalidateCursing;
 }