private void LoadExistingData() { Creatures.Clear(); Classes.Clear(); foreach (var loaded in _moduleDataService.LoadAll <CreatureData>()) { CreatureDataObservable creature = _observableDataFactory.CreateAndMap <CreatureDataObservable, CreatureData>(loaded); Creatures.Add(creature); } foreach (var loaded in _moduleDataService.LoadAll <ClassData>()) { ClassDataObservable @class = _observableDataFactory.CreateAndMap <ClassDataObservable, ClassData>(loaded); Classes.Add(@class); } }
private void LoadExistingData() { Areas.Clear(); foreach (var loaded in _moduleDataService.LoadAll <AreaData>()) { AreaDataObservable area = _observableDataFactory.CreateAndMap <AreaDataObservable, AreaData>(loaded); Areas.Add(area); } }
private void LoadTilesets() { Tilesets.Clear(); foreach (var loaded in _moduleDataService.LoadAll <TilesetData>()) { var tileset = _observableDataFactory.CreateAndMap <TilesetDataObservable, TilesetData>(loaded); Tilesets.Add(tileset); } }
private void LoadExistingData() { Items.Clear(); foreach (var loaded in _moduleDataService.LoadAll <ItemData>()) { ItemDataObservable item = _observableDataFactory.CreateAndMap <ItemDataObservable, ItemData>(loaded); Items.Add(item); } }
private void LoadExistingData() { Skills.Clear(); foreach (var loaded in _moduleDataService.LoadAll <SkillData>()) { SkillDataObservable skill = _observableDataFactory.CreateAndMap <SkillDataObservable, SkillData>(loaded); Skills.Add(skill); } }
private void HandleCharacterCreationDataRequest(string username, PacketBase p) { CharacterCreationDataPacket response = new CharacterCreationDataPacket { Classes = _moduleDataService.LoadAll <ClassData>().ToList() }; _networkService.SendMessage(PacketDeliveryMethod.ReliableUnordered, response, username); }
private void LoadExistingData() { Abilities.Clear(); foreach (var loaded in _moduleDataService.LoadAll <AbilityData>()) { var ability = _observableDataFactory.CreateAndMap <AbilityDataObservable, AbilityData>(loaded); Abilities.Add(ability); } }
private void LoadExistingData() { Placeables.Clear(); foreach (var loaded in _moduleDataService.LoadAll <PlaceableData>()) { PlaceableDataObservable placeable = _observableDataFactory.CreateAndMap <PlaceableDataObservable, PlaceableData>(loaded); Placeables.Add(placeable); } }