コード例 #1
0
ファイル: SMain.cs プロジェクト: mrgreaper/mir3-zircon
        private void SMain_Load(object sender, EventArgs e)
        {
            ShowView(typeof(SystemLogView));

            Session = new Session(SessionMode.System)
            {
                BackUpDelay = 60
            };

            Session.Initialize(
                Assembly.GetAssembly(typeof(ItemInfo)),   // returns assembly LibraryCore
                Assembly.GetAssembly(typeof(AccountInfo)) // returns assembly ServerLibrary
                );


            /*
             *          MapInfoList = Session.GetCollection<MapInfo>();
             *          MovementInfoList = Session.GetCollection<MovementInfo>();
             *          GuardInfoList = Session.GetCollection<GuardInfo>();
             *          SafeZoneInfoList = Session.GetCollection<SafeZoneInfo>();
             *          RespawnInfoList = Session.GetCollection<RespawnInfo>();
             *          ItemInfoList = Session.GetCollection<ItemInfo>();
             *          ItemInfoStatList = Session.GetCollection<ItemInfoStat>();
             *
             *          MonsterInfoList = Session.GetCollection<MonsterInfo>();
             *          NPCInfoList = Session.GetCollection<NPCInfo>();
             *          NPCPageList = Session.GetCollection<NPCPage>();
             *          MagicInfoList = Session.GetCollection<MagicInfo>();
             *          SetInfoList = Session.GetCollection<SetInfo>();
             *          StoreInfoList = Session.GetCollection<StoreInfo>();
             *          BaseStatList = Session.GetCollection<BaseStat>();
             *          MapRegionList = Session.GetCollection<MapRegion>();*/

            CurrencyInfoView.AddDefaultCurrencies();

            UpdateInterface();

            Application.Idle += Application_Idle;
        }