MudEngine:

- Removed Game constructor setting default values for GameTime properties as the GameTime constructor does this already.
 - Finished the GameTime class. Now fully supports custom Day/Time lengths and keeps track of time in sync with the server time.
This commit is contained in:
Scionwest_cp 2010-08-19 15:22:14 -07:00
parent f3b4c40010
commit f51e17af7b
2 changed files with 17 additions and 24 deletions

View file

@ -213,20 +213,6 @@ namespace MudEngine.GameManagement
for (Int32 i = 0; i < MaximumPlayers; i++)
PlayerCollection[i] = new BaseCharacter(this);
GameTime.Time t = new GameTime.Time();
t.Hour = 8;
t.Minute = 0;
t.Second = 0;
t.Day = 1;
t.Month = 1;
t.Year = 2010;
WorldTime.InitialGameTime = t;
WorldTime.DaysPerMonth = 7;
WorldTime.MonthsPerYear = 12;
WorldTime.HoursPerDay = 23;
WorldTime.MinutesPerHour = 59;
WorldTime.SecondsPerMinute = 59;
AutoSave = true;
AutoSaveInterval = 30;
}