|
|
@ -2,7 +2,7 @@ |
|
|
|
* Base class for objects that will provide an access to a Acedia's client- and |
|
|
|
* Base class for objects that will provide an access to a Acedia's client- and |
|
|
|
* server-specific functionality by giving a reference to this object to all |
|
|
|
* server-specific functionality by giving a reference to this object to all |
|
|
|
* Acedia's objects and actors, emulating a global API namespace. |
|
|
|
* Acedia's objects and actors, emulating a global API namespace. |
|
|
|
* Copyright 2022 Anton Tarasenko |
|
|
|
* Copyright 2022-2023 Anton Tarasenko |
|
|
|
*------------------------------------------------------------------------------ |
|
|
|
*------------------------------------------------------------------------------ |
|
|
|
* This file is part of Acedia. |
|
|
|
* This file is part of Acedia. |
|
|
|
* |
|
|
|
* |
|
|
@ -29,6 +29,30 @@ var public TimeAPI time; |
|
|
|
|
|
|
|
|
|
|
|
var private LoggerAPI.Definition fatNoAdapterClass; |
|
|
|
var private LoggerAPI.Definition fatNoAdapterClass; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Accessor to the generic `UnrealAPI`. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public function UnrealAPI unreal_api() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return none; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public final static function CoreGlobal GetGenericInstance() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
local ServerGlobal serverAPI; |
|
|
|
|
|
|
|
local ClientGlobal clientAPI; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
serverAPI = class'ServerGlobal'.static.GetInstance(); |
|
|
|
|
|
|
|
if (serverAPI != none && serverAPI.IsAvailable()) { |
|
|
|
|
|
|
|
return serverAPI; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
clientAPI = class'ClientGlobal'.static.GetInstance(); |
|
|
|
|
|
|
|
if (clientAPI != none && clientAPI.IsAvailable()) { |
|
|
|
|
|
|
|
return clientAPI; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return none; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* This method must perform initialization of the caller `...Global` instance. |
|
|
|
* This method must perform initialization of the caller `...Global` instance. |
|
|
|
* |
|
|
|
* |
|
|
|