Merge pull request #413 from Azaezel/alpha40_ServerAssetValidator

add validation flagging for server objects
This commit is contained in:
Areloch 2020-12-28 00:14:46 -06:00 committed by GitHub
commit baeabb4a51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -185,6 +185,7 @@ function createServer(%serverType, %levelAsset)
function onServerCreated()
{
new PersistenceManager( ServerAssetValidator );
// Server::GameType is sent to the master server.
// This variable should uniquely identify your game and/or mod.
$Server::GameType = $appName;
@ -208,6 +209,7 @@ function onServerCreated()
// Keep track of when the game started
$Game::StartTime = $Sim::Time;
ServerAssetValidator.saveDirty();
}
/// Shut down the server