MudEngine:
- Player login now creates the directories needed if they don't exist. - Added Update method that serves as the game loop now. - Added additional save code to Game.Save() now saves all realms, zones, rooms and players. Called during server shutdown (Game.Shutdown()) - Began work on implementing a Unique Identifier system for all game objects. - Renamed GetRealm() and GetZone() to GetRealmByID() and GetZoneByID. Now accepts a Int32 instead of a string as the parameter, returning a reference to the object. - Added GetRealmByName() and GetZoneByName(). Similar to the old GetRealm and GetZone methods. Accepts a string as a parameter, however it returns a list<> collection of the found objects due to objects with duplicate names are allowed to co-exist in the game world. - Temp directory that was being generated during server startup within Game.Start() is now deleted once script compilation is completed. - Added GameTime.cs; contains all the properties and methods needed to have a working time system built into the engine for the game world. Not fully complete. - Added CommandGetTime.cs which prints the current date and time to the players console. Prints the GameTime.DayNames and GameTime.MonthNames to the player. Defaults to real-world names, however these can be configured and changed, along with the number of days per week, weeks per month, months per year, seconds per minute, minutes per hour and hours per day. MudGame: - Now supports Game.AutoSave. If AutoSave is true, then the server loop will call Game.Save() automatically. - Server Game Loop now calls Game.Update() every loop cycle.
This commit is contained in:
parent
a2181572d0
commit
d212f5b854
12 changed files with 417 additions and 63 deletions
|
@ -51,6 +51,7 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Commands\CommandExit.cs" />
|
||||
<Compile Include="Commands\CommandGetTime.cs" />
|
||||
<Compile Include="Commands\CommandLook.cs" />
|
||||
<Compile Include="Commands\CommandRestart.cs" />
|
||||
<Compile Include="Commands\CommandSave.cs" />
|
||||
|
@ -60,6 +61,7 @@
|
|||
<Compile Include="FileSystem\SaveDataPaths.cs" />
|
||||
<Compile Include="GameManagement\CommandEngine.cs" />
|
||||
<Compile Include="GameManagement\CommandResults.cs" />
|
||||
<Compile Include="GameManagement\GameTime.cs" />
|
||||
<Compile Include="GameManagement\ICommand.cs" />
|
||||
<Compile Include="FileSystem\FileManager.cs" />
|
||||
<Compile Include="FileSystem\SaveDataTypes.cs" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue