|
|
|
@ -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<ATemplatesComponent> templatesClass; |
|
|
|
|
var public ATemplatesComponent templates; |
|
|
|
|
|
|
|
|
|
var private config class<AWorldComponent> 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() |
|
|
|
@ -40,4 +46,5 @@ protected function Finalizer()
|
|
|
|
|
defaultproperties |
|
|
|
|
{ |
|
|
|
|
templatesClass = none |
|
|
|
|
worldClass = none |
|
|
|
|
} |