Ejemplo n.º 1
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();

			Profiles = new BinaryDataStore<IAccount, TimeBoostProfile>(VitaNexCore.SavesDirectory + "/TimeBoosts", "Profiles")
			{
				Async = true,
				OnSerialize = Serialize,
				OnDeserialize = Deserialize
			};
		}
Ejemplo n.º 2
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();

            Profiles = new BinaryDataStore <IAccount, TimeBoostProfile>(VitaNexCore.SavesDirectory + "/TimeBoosts", "Profiles")
            {
                Async         = true,
                OnSerialize   = Serialize,
                OnDeserialize = Deserialize
            };
        }