Browse Source

Add world component to the base frontend

pull/8/head
Anton Tarasenko 2 years ago
parent
commit
21488bcdd8
  1. 11
      sources/Gameplay/BaseClasses/Frontend/BaseFrontend.uc

11
sources/Gameplay/BaseClasses/Frontend/BaseFrontend.uc

@ -1,7 +1,7 @@
/** /**
* Base class for all frontends. Does not define anything meaningful, which * Base class for all frontends. Does not define anything meaningful, which
* also means it does not put any limitations on it's implementation. * also means it does not put any limitations on it's implementation.
* Copyright 2021 Anton Tarasenko * Copyright 2021-2022 Anton Tarasenko
*------------------------------------------------------------------------------ *------------------------------------------------------------------------------
* This file is part of Acedia. * This file is part of Acedia.
* *
@ -24,11 +24,17 @@
var private config class<ATemplatesComponent> templatesClass; var private config class<ATemplatesComponent> templatesClass;
var public ATemplatesComponent templates; var public ATemplatesComponent templates;
var private config class<AWorldComponent> worldClass;
var public AWorldComponent world;
protected function Constructor() protected function Constructor()
{ {
if (templatesClass != none) { if (templatesClass != none) {
templates = ATemplatesComponent(_.memory.Allocate(templatesClass)); templates = ATemplatesComponent(_.memory.Allocate(templatesClass));
} }
if (worldClass != none) {
world = AWorldComponent(_.memory.Allocate(worldClass));
}
} }
protected function Finalizer() protected function Finalizer()
@ -39,5 +45,6 @@ protected function Finalizer()
defaultproperties defaultproperties
{ {
templatesClass = none templatesClass = none
worldClass = none
} }
Loading…
Cancel
Save