|
Stardew Engine
|
An RPC implemented by a users game. More...
#include <Game2DLayerNetwork.h>

Data Fields | |
| int | rpcType |
| RPC type - implement an RPC enum type for your game with values starting at G2DRPC_LastEngineRPC, register RPCs in order. | |
| RPCMessageConstructorFn | ctor |
| callback to construct an rpc message of a given type, pRPCStruct is a struct containing relevant data to construct your rpc message | |
| RPCMessageHandlerFn | handler |
| callback to handle an RPC message, to be read from the binary serializer, passed Game2DLayerData* so the RPC can do stuff | |
An RPC implemented by a users game.
| RPCMessageConstructorFn UserGame2DRPC::ctor |
callback to construct an rpc message of a given type, pRPCStruct is a struct containing relevant data to construct your rpc message
| RPCMessageHandlerFn UserGame2DRPC::handler |
callback to handle an RPC message, to be read from the binary serializer, passed Game2DLayerData* so the RPC can do stuff
| int UserGame2DRPC::rpcType |
RPC type - implement an RPC enum type for your game with values starting at G2DRPC_LastEngineRPC, register RPCs in order.