Browse Source

Change `LevelCore`s to be loaded after base API

develop
Anton Tarasenko 2 years ago
parent
commit
925f9a100d
  1. 6
      sources/Packages.uc

6
sources/Packages.uc

@ -81,9 +81,8 @@ private simulated function InitializeClient()
return; return;
} }
default.selfReference = self; default.selfReference = self;
// TODO: Swap these around after dealing with aliases
class'ClientLevelCore'.static.CreateLevelCore(self);
_ = class'Global'.static.GetInstance(); _ = class'Global'.static.GetInstance();
class'ClientLevelCore'.static.CreateLevelCore(self);
} }
private function InitializeServer() private function InitializeServer()
@ -104,11 +103,10 @@ private function InitializeServer()
} }
default.selfReference = self; default.selfReference = self;
// Launch and setup core Acedia // Launch and setup core Acedia
// TODO: Swap these around after dealing with aliases
serverCore = class'ServerLevelCore'.static.CreateLevelCore(self);
_ = class'Global'.static.GetInstance(); _ = class'Global'.static.GetInstance();
_server = class'ServerGlobal'.static.GetInstance(); _server = class'ServerGlobal'.static.GetInstance();
_client = class'ClientGlobal'.static.GetInstance(); _client = class'ClientGlobal'.static.GetInstance();
serverCore = class'ServerLevelCore'.static.CreateLevelCore(self);
for (i = 0; i < package.length; i += 1) { for (i = 0; i < package.length; i += 1) {
_.environment.RegisterPackage_S(package[i]); _.environment.RegisterPackage_S(package[i]);
} }

Loading…
Cancel
Save