Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
6c119a9
headers: SetBuildingProductionType and addRallyPoint take 32-bit para…
kotijekriv Nov 19, 2026
8c66b31
Actions::SetBuildingProductionType and TribesState::addRallyPoint tak…
kotijekriv Nov 20, 2026
92f70dc
reimplement: SHC_3BB0A8C1_0x00482290 100.0% Reimplemented
gynt Oct 3, 2026
0de4acf
style: ClickSetBuildingProductionType (0x00482290) follows the style …
kotijekriv Nov 20, 2026
c1b70e6
reimplement: SHC_3BB0A8C1_0x00482BB0 100.0% Reimplemented
gynt Oct 3, 2026
fb2a912
style: ClickOpenOrCloseGate (0x00482BB0) follows the style guide
kotijekriv Nov 20, 2026
f27f51b
reimplement: SHC_3BB0A8C1_0x00486530 100.0% Reimplemented
gynt Oct 3, 2026
4eac09d
style: ActiveTacticalPowers (0x00486530) follows the style guide
kotijekriv Nov 20, 2026
449a680
reimplement: SHC_3BB0A8C1_0x0048B4E0 100.0% Reimplemented
gynt Oct 3, 2026
4ab46e9
style: VoteKick_SEND_L_E_C_A_F_H_ZAP (0x0048B4E0) follows the style g…
kotijekriv Nov 20, 2026
99368cd
reimplement: SHC_3BB0A8C1_0x00489410 100.0% Reimplemented
gynt Oct 3, 2026
91bdfbb
style: AssignPlayerIDToPlayerSlot (0x00489410) follows the style guide
kotijekriv Nov 20, 2026
de770f5
reimplement: SHC_3BB0A8C1_0x004894F0 100.0% Reimplemented
gynt Oct 3, 2026
0801853
style: TriggerLobbyPlayerInformationRefresh (0x004894F0) follows the …
kotijekriv Nov 20, 2026
cff1f6f
reimplement: SHC_3BB0A8C1_0x00486040 100.0% Reimplemented
gynt Oct 3, 2026
5f3a361
style: AddAIPlayer (0x00486040) follows the style guide
kotijekriv Nov 20, 2026
a908310
reimplement: SHC_3BB0A8C1_0x00481C80 100.0% Reimplemented
gynt Oct 3, 2026
5b1f0c8
style: ClickRaiseLand2Unk (0x00481C80) follows the style guide
kotijekriv Nov 20, 2026
ac694b6
reimplement: SHC_3BB0A8C1_0x00482AA0 100.0% Reimplemented
gynt Oct 3, 2026
89b56f3
style: ClickCreateAnimal (0x00482AA0) follows the style guide
kotijekriv Nov 20, 2026
fa15a8f
reimplement: SHC_3BB0A8C1_0x004844A0 100.0% Reimplemented
gynt Oct 3, 2026
df042e3
style: ClickRepairTower (0x004844A0) follows the style guide
kotijekriv Nov 20, 2026
9dd2cc7
reimplement: SHC_3BB0A8C1_0x00484850 100.0% Reimplemented
gynt Oct 3, 2026
e6c4e23
style: ClickExtendRallyPoint (0x00484850) follows the style guide
kotijekriv Nov 20, 2026
3658e35
reimplement: SHC_3BB0A8C1_0x0048A0E0 100.0% Reimplemented
gynt Oct 3, 2026
e27b7eb
style: ResyncChimp (0x0048A0E0) follows the style guide
kotijekriv Nov 20, 2026
30e37d3
reimplement: SHC_3BB0A8C1_0x0048A350 100.0% Reimplemented
gynt Oct 3, 2026
13730d8
style: SendResyncTribe (0x0048A350) follows the style guide
kotijekriv Nov 20, 2026
d899db5
reimplement: SHC_3BB0A8C1_0x0048B170 100.0% Reimplemented
gynt Oct 3, 2026
8fab8ce
style: SyncRelatedSomething (0x0048B170) follows the style guide
kotijekriv Nov 20, 2026
0fc5296
reimplement: SHC_3BB0A8C1_0x004826C0 100.0% Reimplemented
gynt Oct 3, 2026
c7d3484
style: ClickDestroy (0x004826C0) follows the style guide
kotijekriv Nov 20, 2026
d03e8be
reimplement: SHC_3BB0A8C1_0x00481120 100.0% Reimplemented
gynt Oct 3, 2026
7c789f2
style: ClickSetLand (0x00481120) follows the style guide
kotijekriv Nov 20, 2026
7a0379f
reimplement: SHC_3BB0A8C1_0x00481B50 100.0% Reimplemented
gynt Oct 3, 2026
5f2d7c7
style: ClickPlaceRockOrTree (0x00481B50) follows the style guide
kotijekriv Nov 20, 2026
829477b
reimplement: SHC_3BB0A8C1_0x00482420 100.0% Reimplemented
gynt Oct 3, 2026
66e44dc
style: ClickGiveUnitsInstruction (0x00482420) follows the style guide
kotijekriv Nov 20, 2026
c7bd7dc
reimplement: SHC_3BB0A8C1_0x00480F00 100.0% Reimplemented
gynt Oct 3, 2026
6d04716
style: ClickMoveUnit (0x00480F00) follows the style guide
kotijekriv Nov 20, 2026
f2c4e8f
reimplement: SHC_3BB0A8C1_0x00484C40 100.0% Reimplemented
gynt Oct 3, 2026
a4c36e8
style: DestroyWallOrPitch (0x00484C40) follows the style guide
kotijekriv Nov 20, 2026
977550c
reimplement: SHC_3BB0A8C1_0x00481250 100.0% Reimplemented
gynt Oct 3, 2026
0ea896c
style: ClickRaiseLand (0x00481250) follows the style guide
kotijekriv Nov 20, 2026
239067d
reimplement: SHC_3BB0A8C1_0x00481580 100.0% Reimplemented
gynt Oct 3, 2026
3197191
style: ClickHeightEqualize (0x00481580) follows the style guide
kotijekriv Nov 20, 2026
5f14324
reimplement: SHC_3BB0A8C1_0x004816F0 100.0% Reimplemented
gynt Oct 3, 2026
a2549b8
style: ClickTerrainHeightMinOrMax (0x004816F0) follows the style guide
kotijekriv Nov 20, 2026
6a72597
reimplement: SHC_3BB0A8C1_0x00481860 100.0% Reimplemented
gynt Oct 3, 2026
a9fe0e9
style: ClickCreatePlateau (0x00481860) follows the style guide
kotijekriv Nov 20, 2026
60ac5fe
reimplement: SHC_3BB0A8C1_0x004819D0 100.0% Reimplemented
gynt Oct 3, 2026
49eafd6
style: ClickPlaceWall (0x004819D0) follows the style guide
kotijekriv Nov 20, 2026
ff3a394
reimplement: SHC_3BB0A8C1_0x0048FAA0 100.0% Reimplemented
gynt Oct 3, 2026
7a2f257
style: HostShareLobbyState (0x0048FAA0) follows the style guide
kotijekriv Nov 20, 2026
efa1fba
reimplement: SHC_3BB0A8C1_0x004813C0 100.0% Reimplemented
gynt Oct 3, 2026
77b122f
style: ClickSetTerrain (0x004813C0) follows the style guide
kotijekriv Nov 20, 2026
e7466bc
reimplement: SHC_3BB0A8C1_0x00483570 100.0% Reimplemented
gynt Oct 3, 2026
5796069
style: ClickInitOrChangeGameIntensityAndBalance (0x00483570) follows …
kotijekriv Nov 20, 2026
9d5af7f
reimplement: SHC_3BB0A8C1_0x0048FCB0 100.0% Reimplemented
gynt Oct 3, 2026
cfe1393
style: ResyncResumeCS (0x0048FCB0) follows the style guide
kotijekriv Nov 20, 2026
4f8b29b
reimplement: SHC_3BB0A8C1_0x00482C80 100.0% Reimplemented
gynt Oct 3, 2026
0627554
style: ShareDesyncedHashes (0x00482C80) follows the style guide
kotijekriv Nov 20, 2026
27a93d0
style: the terrain click commands bound and index the map coordinates…
kotijekriv Nov 23, 2026
f7ada32
Merge origin/main (d3d117968f) into reimpl/Synchrony-Commands-backlog…
kotijekriv Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/OpenSHC/Map/Units/TribesState/addRallyPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Map {
namespace Units {

// FUNCTION: STRONGHOLDCRUSADER 0x00522C50
void TribesState::addRallyPoint(int tribeID, short destinationX, short destinationY, int step)
void TribesState::addRallyPoint(int tribeID, int destinationX, int destinationY, int step)
{
this->tribes[tribeID].rallyPointArray[step][0] = destinationX;
this->tribes[tribeID].rallyPointArray[step][1] = destinationY;
Expand Down
5 changes: 2 additions & 3 deletions src/OpenSHC/Synchrony/Actions/SetBuildingProductionType.cpp
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#include "OpenSHC/Synchrony/Actions.func.hpp"
#include "../Actions.func.hpp"

#include "OpenSHC/Globals/DAT_BuildingsState.hpp"

namespace OpenSHC {
namespace Synchrony {

// FUNCTION: STRONGHOLDCRUSADER 0x004652A0
void Actions::SetBuildingProductionType(
undefined4 playerID, int buildingID, ushort producedItemType, int buildingUID)
void Actions::SetBuildingProductionType(undefined4 playerID, int buildingID, int producedItemType, int buildingUID)
{
if (DAT_BuildingsState::instance.buildings[buildingID].uid == buildingUID) {
DAT_BuildingsState::instance.buildings[buildingID].producedItemType = producedItemType;
Expand Down
53 changes: 53 additions & 0 deletions src/OpenSHC/Synchrony/Commands/ActiveTacticalPowers.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#include "../Commands.func.hpp"

#include "OpenSHC/Game/GameStateStructures.func.hpp"
#include "OpenSHC/Synchrony/GameSynchronyState.func.hpp"
#include "OpenSHC/Commands/GameCommandParameterLocation.hpp"
#include "OpenSHC/Commands/GameCommandParameterReadWrite.hpp"
#include "OpenSHC/Commands/GameCommandScheduling.hpp"

#include "OpenSHC/Globals/DAT_GameState.hpp"
#include "OpenSHC/Globals/DAT_GameSynchronyState.hpp"

namespace OpenSHC {
namespace Synchrony {

// FUNCTION: STRONGHOLDCRUSADER 0x00486530
void Commands::ActiveTacticalPowers()
{
DAT_GameSynchronyState::instance.DAT_CommandSize = 8;
if (DAT_GameSynchronyState::instance.DAT_CommandActionPlan == OpenSHC::Commands::GCS_SCHEDULE_AND_SEND) {
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.DAT_GameCommandParam0, 2,
OpenSHC::Commands::GCPL_DYNAMIC_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_SERIALIZE_INTO_PARAM_1);
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.DAT_GameCommandParam1, 4,
OpenSHC::Commands::GCPL_DYNAMIC_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_SERIALIZE_INTO_PARAM_1);
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.DAT_GameCommandParam2, 2,
OpenSHC::Commands::GCPL_DYNAMIC_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_SERIALIZE_INTO_PARAM_1);
return;
}
if (DAT_GameSynchronyState::instance.DAT_CommandActionPlan != OpenSHC::Commands::GCS_EXECUTE) {
return;
}
short readBuffer;
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&readBuffer, 2, OpenSHC::Commands::GCPL_DYNAMIC_COMMAND_DATA_ADDRESS,
OpenSHC::Commands::GCPRW_DESERIALIZE_FROM_PARAM1);
DAT_GameSynchronyState::instance.DAT_GameCommandParam0 = readBuffer;
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.DAT_GameCommandParam1, 4,
OpenSHC::Commands::GCPL_DYNAMIC_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_DESERIALIZE_FROM_PARAM1);
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&readBuffer, 2, OpenSHC::Commands::GCPL_DYNAMIC_COMMAND_DATA_ADDRESS,
OpenSHC::Commands::GCPRW_DESERIALIZE_FROM_PARAM1);
DAT_GameSynchronyState::instance.DAT_GameCommandParam2 = readBuffer;
MACRO_CALL_MEMBER(OpenSHC::Game::GameStateStructures_Func::handleActivateTacticalPowers, DAT_GameState::ptr)(
DAT_GameSynchronyState::instance.DAT_GameCommandParam2,
DAT_GameSynchronyState::instance.DAT_GameCommandParam0,
DAT_GameSynchronyState::instance.DAT_GameCommandParam1);
}

}
}
58 changes: 58 additions & 0 deletions src/OpenSHC/Synchrony/Commands/AddAIPlayer.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#include "../Commands.func.hpp"

#include "OpenSHC/Synchrony.func.hpp"
#include "OpenSHC/Synchrony/GameSynchronyState.func.hpp"
#include "OpenSHC/Commands/GameCommandParameterLocation.hpp"
#include "OpenSHC/Commands/GameCommandParameterReadWrite.hpp"
#include "OpenSHC/Commands/GameCommandScheduling.hpp"

#include "OpenSHC/Globals/DAT_GameSynchronyState.hpp"

namespace OpenSHC {
namespace Synchrony {

// FUNCTION: STRONGHOLDCRUSADER 0x00486040
void Commands::AddAIPlayer()
{
DAT_GameSynchronyState::instance.DAT_CommandSize = 12;
DAT_GameSynchronyState::instance.DAT_GameCommandArray[DAT_GameSynchronyState::instance.DAT_CurrentGameCommandID]
.time = 0;
if (DAT_GameSynchronyState::instance.DAT_CommandActionPlan == OpenSHC::Commands::GCS_SCHEDULE_AND_SEND) {
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.DAT_GameCommandParam0, 4,
OpenSHC::Commands::GCPL_FIXED_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_SERIALIZE_INTO_PARAM_1);
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(DAT_GameSynchronyState::instance.currentAIArray
+ DAT_GameSynchronyState::instance.DAT_GameCommandParam0,
4, OpenSHC::Commands::GCPL_FIXED_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_SERIALIZE_INTO_PARAM_1);
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(DAT_GameSynchronyState::instance.aiVariationArray
+ DAT_GameSynchronyState::instance.DAT_GameCommandParam0,
4, OpenSHC::Commands::GCPL_FIXED_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_SERIALIZE_INTO_PARAM_1);
DAT_GameSynchronyState::instance.DAT_CommandActionPlan = OpenSHC::Commands::GCS_EXECUTE;
return;
}
if (DAT_GameSynchronyState::instance.DAT_CommandActionPlan != OpenSHC::Commands::GCS_EXECUTE) {
return;
}
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.DAT_GameCommandParam0, 4,
OpenSHC::Commands::GCPL_FIXED_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_DESERIALIZE_FROM_PARAM1);
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(
DAT_GameSynchronyState::instance.currentAIArray + DAT_GameSynchronyState::instance.DAT_GameCommandParam0, 4,
OpenSHC::Commands::GCPL_FIXED_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_DESERIALIZE_FROM_PARAM1);
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(
DAT_GameSynchronyState::instance.aiVariationArray + DAT_GameSynchronyState::instance.DAT_GameCommandParam0,
4, OpenSHC::Commands::GCPL_FIXED_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_DESERIALIZE_FROM_PARAM1);
DAT_GameSynchronyState::instance
.DAT_PlayerSlotArraySomeValue[DAT_GameSynchronyState::instance.DAT_GameCommandParam0]
= DAT_GameSynchronyState::instance.currentAIArray[DAT_GameSynchronyState::instance.DAT_GameCommandParam0]
> 0;
MACRO_CALL(OpenSHC::Synchrony_Func::PutPlayerIntoRandomSlot)(
DAT_GameSynchronyState::instance.DAT_GameCommandParam0);
}

}
}
55 changes: 55 additions & 0 deletions src/OpenSHC/Synchrony/Commands/AssignPlayerIDToPlayerSlot.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#include "../Commands.func.hpp"

#include "OpenSHC/OS.func.hpp"
#include "OpenSHC/Synchrony/GameSynchronyState.func.hpp"
#include "OpenSHC/Commands/GameCommandParameterLocation.hpp"
#include "OpenSHC/Commands/GameCommandParameterReadWrite.hpp"
#include "OpenSHC/Commands/GameCommandScheduling.hpp"
#include "OpenSHC/Commands/GameCommandType.hpp"

#include "OpenSHC/Globals/DAT_GameCore.hpp"
#include "OpenSHC/Globals/DAT_GameSynchronyState.hpp"
#include "OpenSHC/Globals/DAT_TextureRenderCoreObject.hpp"

namespace OpenSHC {
namespace Synchrony {

// FUNCTION: STRONGHOLDCRUSADER 0x00489410
void Commands::AssignPlayerIDToPlayerSlot()
{
DAT_GameSynchronyState::instance.DAT_CommandSize = 4;
DAT_GameSynchronyState::instance.DAT_GameCommandArray[DAT_GameSynchronyState::instance.DAT_CurrentGameCommandID]
.time = 0;
DAT_GameSynchronyState::instance.DAT_PlayerIDReceiver
= DAT_GameSynchronyState::instance.DPLAYX_ReceivedPlayerID;
if (DAT_GameSynchronyState::instance.DAT_CommandActionPlan == OpenSHC::Commands::GCS_SCHEDULE_AND_SEND) {
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.protocolInvokerPlayerID, 4,
OpenSHC::Commands::GCPL_FIXED_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_SERIALIZE_INTO_PARAM_1);
return;
}
if (DAT_GameSynchronyState::instance.DAT_CommandActionPlan != OpenSHC::Commands::GCS_EXECUTE) {
return;
}
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.currentPlayerSlotID, 4,
OpenSHC::Commands::GCPL_FIXED_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_DESERIALIZE_FROM_PARAM1);
int const lordIcon = DAT_GameCore::instance.lordIconUnk;
DAT_GameSynchronyState::instance.currentPlayerFullIDArray[DAT_GameSynchronyState::instance.currentPlayerSlotID]
= DAT_GameSynchronyState::instance.DPLAYX_PlayerHandle;
if (lordIcon >= 2) {
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::queueCommand, DAT_GameSynchronyState::ptr)(
OpenSHC::Commands::GCT_SHARE_AIV_HASH);
}
// the chosen lord's face goes into the player's own face slot
MACRO_CALL(OpenSHC::OS_Func::_memcpy)(DAT_TextureRenderCoreObject::instance.bitmapsFaces_0x94
+ (DAT_GameSynchronyState::instance.currentPlayerSlotID + 19) * 66 * 64,
DAT_TextureRenderCoreObject::instance.bitmapsFaces_0x94
+ (DAT_GameCore::instance.lordIconUnk - 2) * 66 * 64,
66 * 64 * sizeof(ushort));
DAT_TextureRenderCoreObject::instance.bitmapFaceSizes[DAT_GameSynchronyState::instance.currentPlayerSlotID + 19]
= 66 * 64 * sizeof(ushort);
}

}
}
70 changes: 70 additions & 0 deletions src/OpenSHC/Synchrony/Commands/ClickCreateAnimal.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#include "../Commands.func.hpp"

#include "OpenSHC/Map/Units/TribesState.func.hpp"
#include "OpenSHC/Synchrony/GameSynchronyState.func.hpp"
#include "OpenSHC/Commands/GameCommandParameterLocation.hpp"
#include "OpenSHC/Commands/GameCommandParameterReadWrite.hpp"
#include "OpenSHC/Commands/GameCommandScheduling.hpp"
#include "OpenSHC/Commands/MappersEnum.hpp"
#include "OpenSHC/Map/MapConstants.hpp"

#include "OpenSHC/Globals/DAT_GameSynchronyState.hpp"
#include "OpenSHC/Globals/DAT_TileMapState.hpp"
#include "OpenSHC/Globals/DAT_TribesState.hpp"
#include "OpenSHC/Globals/DAT_ViewportRenderState.hpp"

namespace OpenSHC {
namespace Synchrony {

// FUNCTION: STRONGHOLDCRUSADER 0x00482AA0
void Commands::ClickCreateAnimal()
{
DAT_GameSynchronyState::instance.DAT_CommandSize = 5;
if (DAT_GameSynchronyState::instance.DAT_CommandActionPlan == OpenSHC::Commands::GCS_SCHEDULE_AND_SEND) {
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.DAT_GameCommandParam0, 2,
OpenSHC::Commands::GCPL_DYNAMIC_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_SERIALIZE_INTO_PARAM_1);
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.DAT_GameCommandParam1, 2,
OpenSHC::Commands::GCPL_DYNAMIC_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_SERIALIZE_INTO_PARAM_1);
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.DAT_GameCommandParam2, 1,
OpenSHC::Commands::GCPL_DYNAMIC_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_SERIALIZE_INTO_PARAM_1);
return;
}
if (DAT_GameSynchronyState::instance.DAT_CommandActionPlan == OpenSHC::Commands::GCS_EXECUTE) {
DAT_GameSynchronyState::instance.DAT_GameCommandParam0 = 0;
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.DAT_GameCommandParam0, 2,
OpenSHC::Commands::GCPL_DYNAMIC_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_DESERIALIZE_FROM_PARAM1);
DAT_GameSynchronyState::instance.DAT_GameCommandParam1 = 0;
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.DAT_GameCommandParam1, 2,
OpenSHC::Commands::GCPL_DYNAMIC_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_DESERIALIZE_FROM_PARAM1);
DAT_GameSynchronyState::instance.DAT_GameCommandParam2 = OpenSHC::Commands::M_MAPPER_NULL;
MACRO_CALL_MEMBER(OpenSHC::Synchrony::GameSynchronyState_Func::serializeOrDeserializeCommandParameter,
DAT_GameSynchronyState::ptr)(&DAT_GameSynchronyState::instance.DAT_GameCommandParam2, 1,
OpenSHC::Commands::GCPL_DYNAMIC_COMMAND_DATA_ADDRESS, OpenSHC::Commands::GCPRW_DESERIALIZE_FROM_PARAM1);
if (((DAT_GameSynchronyState::instance.DAT_GameCommandParam0 >= 0
&& DAT_GameSynchronyState::instance.DAT_GameCommandParam0 <= Map::MC_MAP_XY_LIMIT_INCLUSIVE)
&& (DAT_GameSynchronyState::instance.DAT_GameCommandParam1 <= Map::MC_MAP_XY_LIMIT_INCLUSIVE))
&& (DAT_ViewportRenderState::instance
.DAT_BinaryTileMap400x400[DAT_GameSynchronyState::instance.DAT_GameCommandParam1
* Map::MC_MAP_XY_LIMIT
+ DAT_GameSynchronyState::instance.DAT_GameCommandParam0]
!= 0)) {
MACRO_CALL_MEMBER(OpenSHC::Map::Units::TribesState_Func::createAnimal, DAT_TribesState::ptr)(
(OpenSHC::Commands::MappersEnum)DAT_GameSynchronyState::instance.DAT_GameCommandParam2,
DAT_GameSynchronyState::instance.DAT_GameCommandParam0,
DAT_GameSynchronyState::instance.DAT_GameCommandParam1,
DAT_TileMapState::instance
.HeightLayer[DAT_ViewportRenderState::instance
.translationMatrix[DAT_GameSynchronyState::instance.DAT_GameCommandParam1]
.addXgetTile
+ DAT_GameSynchronyState::instance.DAT_GameCommandParam0]);
}
}
}

}
}
Loading
Loading