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 }; }
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 }; }
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 }; }
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 }; }
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 }; }
static ArtworkSupport() { CSOptions = new CoreServiceOptions(typeof(ArtworkSupport)); Info = new Dictionary <Type, List <ArtworkInfo> >(); }
static ArtworkSupport() { CSOptions = new CoreServiceOptions(typeof(ArtworkSupport)); Info = new Dictionary<Type, List<ArtworkInfo>>(); }
static Sandbox() { CSOptions = new CoreServiceOptions(typeof(Sandbox)); }