public static void HQSetup() { HQ hq = new HQ { Position = Map.MapCentre(), Texture = Textures.HqTexture, ID = Guid.NewGuid().ToString(), CurrentHealth = 200, MaxHealth = 200, Name = "Headquarters" }; hq.BRec.X = (int)hq.Position.X; hq.BRec.Y = (int)hq.Position.Y; hq.BRec.Width = hq.Texture.Width; hq.BRec.Height = hq.Texture.Height; hq.Description = "Operations Base"; EntityLists.BuildingList.Add(hq); PruneFoliage.CheckBushBuildingIntersection(hq); }
public static void CreateSmallTent(Vector2 position, Rectangle bRec) { Tent smallTent = new Tent { Texture = Textures.SmallTentTexture, ID = Guid.NewGuid().ToString(), Position = new Vector2(position.X, position.Y), BRec = bRec, Name = "Small Tent", Description = "A flimsy 2-person tent", MaxHealth = 80, CurrentHealth = 80 }; smallTent.BRec.X = (int)smallTent.Position.X; smallTent.BRec.Y = (int)smallTent.Position.Y; smallTent.BRec.Width = Textures.SmallTentTexture.Width; smallTent.BRec.Height = Textures.SmallTentTexture.Height; EntityLists.BuildingList.Add(smallTent); PruneFoliage.CheckBushBuildingIntersection(smallTent); }