コード例 #1
0
		static Notify()
		{
			CSOptions = new CoreServiceOptions(typeof(Notify));

			GumpTypes = typeof(NotifyGump).GetConstructableChildren(t => !t.IsEqualOrChildOf<WorldNotifyGump>());
			WorldGumpSubTypes = typeof(WorldNotifyGump).GetConstructableChildren(t => t.IsNested);

			Settings = new BinaryDataStore<Type, NotifySettings>(VitaNexCore.SavesDirectory + "/Notify", "Settings") {
				OnSerialize = Serialize,
				OnDeserialize = Deserialize
			};
		}
コード例 #2
0
        static Notify()
        {
            CSOptions = new CoreServiceOptions(typeof(Notify));

            GumpTypes         = typeof(NotifyGump).GetConstructableChildren(t => !t.IsEqualOrChildOf <WorldNotifyGump>());
            WorldGumpSubTypes = typeof(WorldNotifyGump).GetConstructableChildren(t => t.IsNested);

            Settings = new BinaryDataStore <Type, NotifySettings>(VitaNexCore.SavesDirectory + "/Notify", "Settings")
            {
                OnSerialize   = Serialize,
                OnDeserialize = Deserialize
            };
        }
コード例 #3
0
ファイル: Notify_Init.cs プロジェクト: Ravenwolfe/Core
		static Notify()
		{
			CSOptions = new CoreServiceOptions(typeof(Notify));
			
			GumpTypes = typeof(NotifyGump).GetChildren(t => !t.IsNested);

			NestedTypes = new Dictionary<Type, Type[]>();

			Settings = new BinaryDataStore<Type, NotifySettings>(VitaNexCore.SavesDirectory + "/Notify", "Settings")
			{
				Async = true,
				OnSerialize = Serialize,
				OnDeserialize = Deserialize
			};
		}
コード例 #4
0
ファイル: Notify_Init.cs プロジェクト: AllanNisbet/runuo
        static Notify()
        {
            CSOptions = new CoreServiceOptions(typeof(Notify));

            GumpTypes = typeof(NotifyGump).GetChildren(t => !t.IsNested);

            NestedTypes = new Dictionary <Type, Type[]>();

            Settings = new BinaryDataStore <Type, NotifySettings>(VitaNexCore.SavesDirectory + "/Notify", "Settings")
            {
                Async         = true,
                OnSerialize   = Serialize,
                OnDeserialize = Deserialize
            };
        }
コード例 #5
0
        static TimeBoosts()
        {
            Minutes = new TimeBoostMinutes[] { 1, 3, 5, 15, 30 };
            Hours   = new TimeBoostHours[] { 1, 3, 6, 12 };

            Times = new[] { Minutes.CastToArray <ITimeBoost>(), Hours.CastToArray <ITimeBoost>() };

            AllTimes = Times.SelectMany(t => t).OrderBy(b => b.Value).ToArray();

            CSOptions = new CoreServiceOptions(typeof(TimeBoosts));

            Profiles = new BinaryDataStore <IAccount, TimeBoostProfile>(VitaNexCore.SavesDirectory + "/TimeBoosts", "Profiles")
            {
                Async         = true,
                OnSerialize   = Serialize,
                OnDeserialize = Deserialize
            };
        }
コード例 #6
0
        static ArtworkSupport()
        {
            CSOptions = new CoreServiceOptions(typeof(ArtworkSupport));

            Info = new Dictionary <Type, List <ArtworkInfo> >();
        }
コード例 #7
0
		static ArtworkSupport()
		{
			CSOptions = new CoreServiceOptions(typeof(ArtworkSupport));

			Info = new Dictionary<Type, List<ArtworkInfo>>();
		}
コード例 #8
0
 static Sandbox()
 {
     CSOptions = new CoreServiceOptions(typeof(Sandbox));
 }
コード例 #9
0
		static Sandbox()
		{
			CSOptions = new CoreServiceOptions(typeof(Sandbox));
		}