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:
parent
c62ecc44e2
commit
9565c94cd2
6 changed files with 371 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue