Update health object to have a list of bodyparts

This commit is contained in:
Chomp 2021-12-20 10:47:18 +00:00
parent 8ccacce4b3
commit be995f1613

View File

@ -3,8 +3,8 @@ using System.Collections.Generic;
namespace Common.Models.Output
{
public class Bot
{
public class Bot
{
public Bot(BotType botType)
{
this.botType = botType;
@ -21,7 +21,7 @@ namespace Common.Models.Output
}
[JsonIgnore]
public BotType botType { get;set;}
public BotType botType { get; set; }
public Appearance appearance { get; set; }
public Experience experience { get; set; }
public Health health { get; set; }
@ -29,12 +29,12 @@ namespace Common.Models.Output
public Inventory inventory { get; set; }
public List<string> firstName { get; set; }
public List<string> lastName { get; set; }
public Difficulty.Difficulty difficulty { get; set;}
public Difficulty.Difficulty difficulty { get; set; }
public Chances chances { get; set; }
public GenerationChances generation { get; set; }
}
public class Appearance
{
}
public class Appearance
{
public Appearance()
{
body = new List<string>();
@ -49,10 +49,10 @@ namespace Common.Models.Output
public List<string> hands { get; set; }
public List<string> head { get; set; }
public List<string> voice { get; set; }
}
}
public class Experience
{
public class Experience
{
public Experience()
{
level = new MinMax(0, 1);
@ -65,10 +65,10 @@ namespace Common.Models.Output
public MinMax reward { get; set; }
public double standingForKill { get; set; }
public double aggressorBonus { get; set; }
}
}
public class BodyParts
{
public class BodyParts
{
public BodyParts()
{
Head = new MinMax(35, 35);
@ -87,37 +87,36 @@ namespace Common.Models.Output
public MinMax RightArm { get; set; }
public MinMax LeftLeg { get; set; }
public MinMax RightLeg { get; set; }
}
}
public class Health
{
public class Health
{
public Health()
{
Hydration = new MinMax(100, 100);
Energy = new MinMax(100, 100);
Temperature = new MinMax(36, 40);
BodyParts = new BodyParts();
BodyParts = new List<BodyParts>();
}
public MinMax Hydration { get; set; }
public MinMax Energy { get; set; }
public MinMax Temperature { get; set; }
public BodyParts BodyParts { get; set; }
}
public List<BodyParts> BodyParts { get; set; }
}
public class Skills
{
public class Skills
{
public Skills()
{
Common = new Dictionary<string, MinMax>();
}
public Dictionary<string, MinMax> Common { get; set; }
}
}
public class Chances
{
public class Chances
{
public Chances()
{
equipment = new EquipmentChances();
@ -125,10 +124,10 @@ namespace Common.Models.Output
public EquipmentChances equipment { get; set; }
public Dictionary<string, int> mods { get; set; }
}
}
public class EquipmentChances
{
public class EquipmentChances
{
public EquipmentChances()
{
}
@ -168,10 +167,10 @@ namespace Common.Models.Output
public int Scabbard { get; set; }
public int Pockets { get; set; }
public int SecuredContainer { get; set; }
}
}
public class GenerationChances
{
public class GenerationChances
{
public GenerationChances(int specialMin, int SpecialMax,
int healingMin, int healingMax,
int looseLootMin, int looseLootMax,
@ -194,10 +193,10 @@ namespace Common.Models.Output
}
public ItemChances items { get; set; }
}
}
public class ItemChances
{
public class ItemChances
{
public ItemChances()
{
specialItems = new MinMax(0, 1);
@ -212,10 +211,10 @@ namespace Common.Models.Output
public MinMax looseLoot { get; set; }
public MinMax magazines { get; set; }
public MinMax grenades { get; set; }
}
}
public class MinMax
{
public class MinMax
{
public MinMax(int min, int max)
{
this.min = min;
@ -224,5 +223,5 @@ namespace Common.Models.Output
public int min { get; set; }
public int max { get; set; }
}
}
}