Browse Source

Rename `UnrealAPI` into `ServerUnrealAPI`

pull/8/head
Anton Tarasenko 2 years ago
parent
commit
e467a0307a
  1. 4
      sources/BaseRealm/Global.uc
  2. 7
      sources/Gameplay/KF1Frontend/BaseImplementation/EKFInventory.uc
  3. 2
      sources/Manifest.uc
  4. 2
      sources/Unreal/Events/Unreal_OnTick_Signal.uc
  5. 2
      sources/Unreal/Events/Unreal_OnTick_Slot.uc
  6. 2
      sources/Unreal/ServerUnrealAPI.uc
  7. 2
      sources/Unreal/Tests/MockGameRulesA.uc
  8. 4
      sources/Unreal/Tests/MockGameRulesB.uc
  9. 4
      sources/Unreal/Tests/MockInventoryA.uc
  10. 2
      sources/Unreal/Tests/MockInventoryAChild.uc
  11. 2
      sources/Unreal/Tests/MockInventoryB.uc
  12. 6
      sources/Unreal/Tests/TEST_ServerUnrealAPI.uc
  13. 4
      sources/Unreal/UnrealService.uc

4
sources/BaseRealm/Global.uc

@ -29,7 +29,7 @@ var public RefAPI ref;
var public BoxAPI box;
var public LoggerAPI logger;
var public CollectionsAPI collections;
var public UnrealAPI unreal;
var public ServerUnrealAPI unreal;
var public TimeAPI time;
var public AliasesAPI alias;
var public TextAPI text;
@ -66,7 +66,7 @@ protected function Initialize()
box = BoxAPI(memory.Allocate(class'BoxAPI'));
text = TextAPI(memory.Allocate(class'TextAPI'));
collections = CollectionsAPI(memory.Allocate(class'CollectionsAPI'));
unreal = UnrealAPI(memory.Allocate(class'UnrealAPI'));
unreal = ServerUnrealAPI(memory.Allocate(class'ServerUnrealAPI'));
time = TimeAPI(memory.Allocate(class'TimeAPI'));
logger = LoggerAPI(memory.Allocate(class'LoggerAPI'));
alias = AliasesAPI(memory.Allocate(class'AliasesAPI'));

7
sources/Gameplay/KF1Frontend/BaseImplementation/EKFInventory.uc

@ -36,7 +36,7 @@ class EKFInventory extends EInventory
* *Weapons* are any inventory derived from `Weapon` inventory class,
* although some features (dual-wielding support and recognizing whether weapon
* can be dropped/removed). For recognizing dual-wielded weapons this class
* relies on `UnrealAPI.InventoryAPI` and its configuration.
* relies on `ServerUnrealAPI.InventoryAPI` and its configuration.
*
* Weapons are droppable/removable by default with the only exception of
* weapons derived from `KFWeapon` that have `bKFNeverThrow` set to `true`.
@ -232,8 +232,9 @@ private function EItem TryAddUnknownItem(EKFUnknownItem newItem)
}
// Searches `inventoryChain` for a weapon that:
// 1. Has the same root as `inventoryClass` (see `UnrealAPI.InventoryAPI`
// for an explanation of what a "root" is);
// 1. Has the same root as `inventoryClass`
// (see `ServerUnrealAPI.InventoryAPI` for an explanation of what a
// "root" is);
// 2. Has specified dual wielding role.
private function KFWeapon GetByRootWithDualRole(
class<KFWeapon> inventoryClass,

2
sources/Manifest.uc

@ -34,7 +34,7 @@ defaultproperties
testCases(2) = class'TEST_Boxes'
testCases(3) = class'TEST_Refs'
testCases(4) = class'TEST_SignalsSlots'
testCases(5) = class'TEST_UnrealAPI'
testCases(5) = class'TEST_ServerUnrealAPI'
testCases(6) = class'TEST_Aliases'
testCases(7) = class'TEST_ColorAPI'
testCases(8) = class'TEST_Text'

2
sources/Unreal/Events/Unreal_OnTick_Signal.uc

@ -1,5 +1,5 @@
/**
* Signal class implementation for `UnrealAPI`'s `OnTick` signal.
* Signal class implementation for `ServerUnrealAPI`'s `OnTick` signal.
* Copyright 2021 Anton Tarasenko
*------------------------------------------------------------------------------
* This file is part of Acedia.

2
sources/Unreal/Events/Unreal_OnTick_Slot.uc

@ -1,5 +1,5 @@
/**
* Slot class implementation for `UnrealAPI`'s `OnTick` signal.
* Slot class implementation for `ServerUnrealAPI`'s `OnTick` signal.
* Copyright 2021 Anton Tarasenko
*------------------------------------------------------------------------------
* This file is part of Acedia.

2
sources/Unreal/UnrealAPI.uc → sources/Unreal/ServerUnrealAPI.uc

@ -18,7 +18,7 @@
* You should have received a copy of the GNU General Public License
* along with Acedia. If not, see <https://www.gnu.org/licenses/>.
*/
class UnrealAPI extends AcediaObject;
class ServerUnrealAPI extends AcediaObject;
var public MutatorAPI mutator;
var public GameRulesAPI gameRules;

2
sources/Unreal/Tests/MockGameRulesA.uc

@ -1,5 +1,5 @@
/**
* Mock `GameRules` class for testing `UnrealAPI` and it' methods for
* Mock `GameRules` class for testing `ServerUnrealAPI` and it' methods for
* adding / removing `GameRules`.
* Copyright 2021 Anton Tarasenko
*------------------------------------------------------------------------------

4
sources/Unreal/Tests/MockGameRulesB.uc

@ -1,6 +1,6 @@
/**
* Mock `GameRules` class for testing `UnrealAPI` and it's methods for
* adding / removing `GameRules`.
* Mock `GameRules` class for testing `ServerUnrealAPI` and it's methods
* for adding / removing `GameRules`.
* Copyright 2021 Anton Tarasenko
*------------------------------------------------------------------------------
* This file is part of Acedia.

4
sources/Unreal/Tests/MockInventoryA.uc

@ -1,6 +1,6 @@
/**
* Mock inventory class for testing `UnrealAPI` and it's methods for
* adding / removing `GameRules`.
* Mock inventory class for testing `UnrealServerUnrealAPIAPI` and it's
* methods for adding / removing `GameRules`.
* Copyright 2021 Anton Tarasenko
*------------------------------------------------------------------------------
* This file is part of Acedia.

2
sources/Unreal/Tests/MockInventoryAChild.uc

@ -1,5 +1,5 @@
/**
* Mock inventory class for testing `UnrealAPI` and it's methods for
* Mock inventory class for testing `ServerUnrealAPI` and it's methods for
* adding / removing `GameRules`.
* Copyright 2021 Anton Tarasenko
*------------------------------------------------------------------------------

2
sources/Unreal/Tests/MockInventoryB.uc

@ -1,5 +1,5 @@
/**
* Mock inventory class for testing `UnrealAPI` and it's methods for
* Mock inventory class for testing `ServerUnrealAPI` and it's methods for
* adding / removing `GameRules`.
* Copyright 2021 Anton Tarasenko
*------------------------------------------------------------------------------

6
sources/Unreal/Tests/TEST_UnrealAPI.uc → sources/Unreal/Tests/TEST_ServerUnrealAPI.uc

@ -1,5 +1,5 @@
/**
* Set of tests for `UnrealAPI` class.
* Set of tests for `ServerUnrealAPI` class.
* Copyright 2021 Anton Tarasenko
*------------------------------------------------------------------------------
* This file is part of Acedia.
@ -17,7 +17,7 @@
* You should have received a copy of the GNU General Public License
* along with Acedia. If not, see <https://www.gnu.org/licenses/>.
*/
class TEST_UnrealAPI extends TestCase;
class TEST_ServerUnrealAPI extends TestCase;
protected static function int CountRulesAmount(class<gameRules> gameRulesClass)
{
@ -226,6 +226,6 @@ protected static function SubTest_InventoryChainFetchingMany(Inventory chain)
defaultproperties
{
caseName = "UnrealAPI"
caseName = "ServerUnrealAPI"
caseGroup = "Unreal"
}

4
sources/Unreal/UnrealService.uc

@ -1,6 +1,6 @@
/**
* Service for the needs of `UnrealAPI`. Mainly tasked with creating API's
* `Signal`s.
* Service for the needs of `ServerUnrealAPI`. Mainly tasked with creating
* API's `Signal`s.
* Copyright 2021-2022 Anton Tarasenko
*------------------------------------------------------------------------------
* This file is part of Acedia.

Loading…
Cancel
Save