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); }
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); }
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); }