From 21488bcdd8e36f0a5db1966ab35b51ecfe2586c1 Mon Sep 17 00:00:00 2001 From: Anton Tarasenko Date: Fri, 8 Jul 2022 04:15:46 +0700 Subject: [PATCH] Add world component to the base frontend --- sources/Gameplay/BaseClasses/Frontend/BaseFrontend.uc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sources/Gameplay/BaseClasses/Frontend/BaseFrontend.uc b/sources/Gameplay/BaseClasses/Frontend/BaseFrontend.uc index 3f7da48..5fa0e1f 100644 --- a/sources/Gameplay/BaseClasses/Frontend/BaseFrontend.uc +++ b/sources/Gameplay/BaseClasses/Frontend/BaseFrontend.uc @@ -1,7 +1,7 @@ /** * Base class for all frontends. Does not define anything meaningful, which * 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. * @@ -24,11 +24,17 @@ var private config class templatesClass; var public ATemplatesComponent templates; +var private config class worldClass; +var public AWorldComponent world; + protected function Constructor() { if (templatesClass != none) { templates = ATemplatesComponent(_.memory.Allocate(templatesClass)); } + if (worldClass != none) { + world = AWorldComponent(_.memory.Allocate(worldClass)); + } } protected function Finalizer() @@ -39,5 +45,6 @@ protected function Finalizer() defaultproperties { - templatesClass = none + templatesClass = none + worldClass = none } \ No newline at end of file