Exemplo n.º 1
0
        void Initialize(ARealmReversed realm)
        {
            realm.Packs.GetPack(new SaintCoinach.IO.PackIdentifier("exd", SaintCoinach.IO.PackIdentifier.DefaultExpansion, 0)).KeepInMemory = true;

            Realm        = realm;
            EngineHelper = new EngineHelper();
            Equipment    = new EquipmentViewModel(this);
            Furniture    = new FurnitureViewModel(this);
            Monsters     = new MonstersViewModel(this);
            Territories  = new TerritoryViewModel(this);
            Demihuman    = new DemihumanViewModel(this);
            Data         = new DataViewModel(Realm, this);
        }
Exemplo n.º 2
0
 public MainViewModel()
 {
     if (!App.IsValidGamePath(Properties.Settings.Default.GamePath))
     {
         return;
     }
     Realm        = new ARealmReversed(Properties.Settings.Default.GamePath, SaintCoinach.Ex.Language.English);
     EngineHelper = new EngineHelper();
     Equipment    = new EquipmentViewModel(this);
     Furniture    = new FurnitureViewModel(this);
     Monsters     = new MonstersViewModel(this);
     Maps         = new MapsViewModel(this);
     Demihuman    = new DemihumanViewModel(this);
     Data         = new DataViewModel(Realm);
 }
Exemplo n.º 3
0
        void Initialize(ARealmReversed realm)
        {
            realm.Packs.GetPack(new SaintCoinach.IO.PackIdentifier("exd", SaintCoinach.IO.PackIdentifier.DefaultExpansion, 0)).KeepInMemory = true;

            Realm = realm;

            var header = Realm.GameData.GetSheet <Item>().Header;

            if (!header.AvailableLanguages.Contains(realm.GameData.ActiveLanguage) && header.AvailableLanguagesCount > 0)
            {
                realm.GameData.ActiveLanguage = header.AvailableLanguages.First();
            }

            EngineHelper = new EngineHelper();
            Equipment    = new EquipmentViewModel(this);
            Furniture    = new FurnitureViewModel(this);
            Monsters     = new MonstersViewModel(this);
            Territories  = new TerritoryViewModel(this);
            Demihuman    = new DemihumanViewModel(this);
            Data         = new DataViewModel(Realm, this);
        }