示例#1
0
        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);
            }
        }
示例#2
0
 private void LoadExistingData()
 {
     Areas.Clear();
     foreach (var loaded in _moduleDataService.LoadAll <AreaData>())
     {
         AreaDataObservable area = _observableDataFactory.CreateAndMap <AreaDataObservable, AreaData>(loaded);
         Areas.Add(area);
     }
 }
示例#3
0
 private void LoadTilesets()
 {
     Tilesets.Clear();
     foreach (var loaded in _moduleDataService.LoadAll <TilesetData>())
     {
         var tileset = _observableDataFactory.CreateAndMap <TilesetDataObservable, TilesetData>(loaded);
         Tilesets.Add(tileset);
     }
 }
示例#4
0
 private void LoadExistingData()
 {
     Items.Clear();
     foreach (var loaded in _moduleDataService.LoadAll <ItemData>())
     {
         ItemDataObservable item = _observableDataFactory.CreateAndMap <ItemDataObservable, ItemData>(loaded);
         Items.Add(item);
     }
 }
示例#5
0
 private void LoadExistingData()
 {
     Skills.Clear();
     foreach (var loaded in _moduleDataService.LoadAll <SkillData>())
     {
         SkillDataObservable skill = _observableDataFactory.CreateAndMap <SkillDataObservable, SkillData>(loaded);
         Skills.Add(skill);
     }
 }
示例#6
0
        private void HandleCharacterCreationDataRequest(string username, PacketBase p)
        {
            CharacterCreationDataPacket response = new CharacterCreationDataPacket
            {
                Classes = _moduleDataService.LoadAll <ClassData>().ToList()
            };

            _networkService.SendMessage(PacketDeliveryMethod.ReliableUnordered, response, username);
        }
示例#7
0
 private void LoadExistingData()
 {
     Abilities.Clear();
     foreach (var loaded in _moduleDataService.LoadAll <AbilityData>())
     {
         var ability = _observableDataFactory.CreateAndMap <AbilityDataObservable, AbilityData>(loaded);
         Abilities.Add(ability);
     }
 }
示例#8
0
        private void LoadExistingData()
        {
            Placeables.Clear();

            foreach (var loaded in _moduleDataService.LoadAll <PlaceableData>())
            {
                PlaceableDataObservable placeable = _observableDataFactory.CreateAndMap <PlaceableDataObservable, PlaceableData>(loaded);
                Placeables.Add(placeable);
            }
        }