Пример #1
0
 public override bool SetComponentData(UrbComponentData Data)
 {
     BirthTime       = UrbEncoder.GetField("BirthTime", Data);
     gameObject.name = UrbEncoder.GetString("Name", Data);
     TileprintString = UrbEncoder.GetString("TileprintString", Data);
     return(true);
 }
Пример #2
0
 public override bool SetComponentData(UrbComponentData Data)
 {
     GoalTag         = UrbEncoder.GetEnum <UrbScentTag>("GoalTag", Data);
     PassableTerrain = UrbEncoder.GetEnum <UrbPathTerrain>("PassableTerrain", Data);
     Size            = (int)UrbEncoder.GetField("Size", Data);
     return(true);
 }
Пример #3
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);
 }
Пример #4
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);
 }
Пример #5
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);
    }