コード例 #1
0
ファイル: Toolbars_Init.cs プロジェクト: Ravenwolfe/Core
		static Toolbars()
		{
			EntryTypes = typeof(ToolbarEntry).GetConstructableChildren();

			CMOptions = new ToolbarsOptions();

			Profiles = new BinaryDataStore<PlayerMobile, ToolbarState>(VitaNexCore.SavesDirectory + "/Toolbars", "States")
			{
				Async = true,
				OnSerialize = Serialize,
				OnDeserialize = Deserialize
			};

			DefaultEntries = new ToolbarState(null, CMOptions.DefaultWidth, CMOptions.DefaultHeight);
		}
コード例 #2
0
        static Toolbars()
        {
            EntryTypes = typeof(ToolbarEntry).GetConstructableChildren();

            CMOptions = new ToolbarsOptions();

            Profiles = new BinaryDataStore <PlayerMobile, ToolbarState>(VitaNexCore.SavesDirectory + "/Toolbars", "States")
            {
                Async         = true,
                OnSerialize   = Serialize,
                OnDeserialize = Deserialize
            };

            DefaultEntries = new ToolbarState(null, CMOptions.DefaultWidth, CMOptions.DefaultHeight);
        }