// ------------------------------------------------------------------------------- // DrawFloor // ------------------------------------------------------------------------------- public void DrawFloor(MapExplorationData data) { if (!data.ExploredAreas.ContainsKey(Finder.map.MapName)) { throw new ArgumentException("No Map Data"); } Clear(); List <MapPing> mapInfo = data.ExploredAreas[Finder.map.MapName]; foreach (MapPing info in mapInfo) { if (LocalScale > 1) { int newX = (int)Math.Round(info.Position.x) * LocalScale; int newY = (int)Math.Round(info.Position.y) * LocalScale; for (int x = newX; x <= newX + LocalScale; x++) { for (int y = newY; y <= newY + LocalScale; y++) { Texture.SetPixel(x, y, Finder.map.mapFloorColor); } } } else if (LocalScale == 1) { Texture.SetPixel((int)info.Position.x, (int)info.Position.y, Finder.map.mapFloorColor); } } Texture.Apply(); }
// ------------------------------------------------------------------------------- // PartyPlayer // ------------------------------------------------------------------------------- public PartyPlayer() : base() { InteractedObjects = new List <Interaction>(); DeactivatedObjects = new List <Interaction>(); MapExplorationInfo = new MapExplorationData(); TownExplorationInfo = new TownExplorationData(); currencies = new PartyCurrencies(); inventory = new PartyInventory(); equipment = new PartyEquipment(); characters.Clear(); }
// ------------------------------------------------------------------------------- // Savegame // ------------------------------------------------------------------------------- public Savegame() { InteractedObjects = new List <Interaction>(); DeactivatedObjects = new List <Interaction>(); MapExplorationInfo = new MapExplorationData(); TownExplorationInfo = new TownExplorationData(); inventory = new PartyInventory(); equipment = new PartyEquipment(); characters = new List <SavegameCharacter>(); gold = 0; }