Added SendNetworkCommand

Allows for a custom message to be sent over the network without the need for SendNetworkEvent. This includes all the possible valid types of byte, word, long, float, and string.
This commit is contained in:
Boondorl 2024-01-04 03:07:17 -05:00 committed by Christoph Oelckers
commit 9565c94cd2
6 changed files with 371 additions and 0 deletions

View file

@ -57,6 +57,7 @@
#include "a_dynlight.h"
#include "types.h"
#include "dictionary.h"
#include "events.h"
static TArray<FPropertyInfo*> properties;
static TArray<AFuncDesc> AFTable;
@ -807,6 +808,10 @@ void InitThingdef()
frp->Size = sizeof(FRailParams);
frp->Align = alignof(FRailParams);
auto netcmdstruct = NewStruct("NetworkCommand", nullptr, true);
netcmdstruct->Size = sizeof(FNetworkCommand);
netcmdstruct->Align = alignof(FNetworkCommand);
auto fltd = NewStruct("FLineTraceData", nullptr);
fltd->Size = sizeof(FLineTraceData);
fltd->Align = alignof(FLineTraceData);