/// <summary> /// Spawns the fishing pier. /// </summary> public override void SpawnSetup() { base.SpawnSetup(); this.Destroy(); Building_FishingPier fishingPier = ThingMaker.MakeThing(Util_FishIndustry.FishingPierDef) as Building_FishingPier; IntVec3 fishingPierPosition = this.Position + new IntVec3(0, 0, -1).RotatedBy(this.Rotation); GenSpawn.Spawn(fishingPier, fishingPierPosition, this.Rotation); fishingPier.SetFactionDirect(Faction.OfColony); }
/// <summary> /// Spawns the fishing pier. /// </summary> public override void SpawnSetup(Map map, bool respawningAfterLoad) { base.SpawnSetup(map, respawningAfterLoad); this.Destroy(); Building_FishingPier fishingPier = ThingMaker.MakeThing(Util_FishIndustry.FishingPierDef) as Building_FishingPier; IntVec3 fishingPierPosition = this.Position + new IntVec3(0, 0, 1).RotatedBy(this.Rotation); GenSpawn.Spawn(fishingPier, fishingPierPosition, map, this.Rotation); fishingPier.SetFactionDirect(this.Faction); }