Beispiel #1
0
 public override bool SetComponentData(UrbComponentData Data)
 {
     FoodSubstances = UrbEncoder.GetEnumArray <UrbSubstanceTag>("FoodSubstances", Data);
     FoodScents     = UrbEncoder.GetEnumArray <UrbScentTag>("FoodScents", Data);
     Stomach        = new UrbComposition(UrbEncoder.GetSubstancesFromArray("StomachContents", Data));
     return(true);
 }
Beispiel #2
0
 public override bool SetComponentData(UrbComponentData Data)
 {
     Height                  = UrbEncoder.GetField("Height", Data);
     BodyRecipe              = UrbEncoder.GetSubstancesFromArray("BodyRecipe", Data);
     SkinRecipe              = UrbEncoder.GetEnumArray <UrbSubstanceTag>("SkinRecipe", Data);
     BodyComposition         = new UrbComposition(UrbEncoder.GetSubstancesFromArray("BodyContents", Data));
     CriticalBodyPartAmounts = UrbEncoder.GetSubstancesFromArray("CriticalBodyPartAmounts", Data);
     return(true);
 }
Beispiel #3
0
 public override bool SetComponentData(UrbComponentData Data)
 {
     EnergyDebt = UrbEncoder.GetField("EnergyDebt", Data);
     BodyEnergyReserveStorage = UrbEncoder.GetEnum <UrbSubstanceTag>("BodyEnergyReserveStorage", Data);
     BodyGrowthRecipe         = UrbEncoder.GetSubstancesFromArray("BodyGrowthRecipe", Data);
     InitializeGrowthRecipes();
     if (IsEater)
     {
         InitializeReserveRecipes();
     }
     return(true);
 }
Beispiel #4
0
    public override bool SetComponentData(UrbComponentData Data)
    {
        MateRequirement        = (int)UrbEncoder.GetField("MateRequirement", Data);
        MateCrowding           = (int)UrbEncoder.GetField("MateCrowding", Data);
        OffspringCount         = (int)UrbEncoder.GetField("OffspringCount", Data);
        OffspringRequiredSpace = UrbEncoder.GetField("OffspringRequiredSpace", Data);

        DispersalDistance = (int)UrbEncoder.GetField("DispersalDistance", Data);
        Gestation         = UrbEncoder.GetField("Gestation", Data);
        Gestating         = (UrbEncoder.GetField("Gestating", Data) > 0.0f);

        BreedType = UrbEncoder.GetEnum <UrbBreedTag>("BreedType", Data);
        RequiredOffspringTerrain = UrbEncoder.GetEnum <UrbPathTerrain>("RequiredOffspringTerrain", Data);
        OffspringData            = UrbEncoder.GetObjectDataArray("OffspringData", Data);

        MateScents  = UrbEncoder.GetEnumArray <UrbScentTag>("MateScents", Data);
        RivalScents = UrbEncoder.GetEnumArray <UrbScentTag>("RivalScents", Data);

        GestationRecipe = UrbEncoder.GetSubstancesFromArray("GestationRecipe", Data);

        return(true);
    }