Struct UserGame2DRPC

ClassList > UserGame2DRPC

An RPC implemented by a users game.

  • #include <Game2DLayerNetwork.h>

Public Attributes

Type Name
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
int rpcType
RPC type - implement an RPC enum type for your game with values starting at G2DRPC_LastEngineRPC, register RPCs in order.

Public Attributes Documentation

variable ctor

callback to construct an rpc message of a given type, pRPCStruct is a struct containing relevant data to construct your rpc message

RPCMessageConstructorFn UserGame2DRPC::ctor;

variable handler

callback to handle an RPC message, to be read from the binary serializer, passed Game2DLayerData* so the RPC can do stuff

RPCMessageHandlerFn UserGame2DRPC::handler;

variable rpcType

RPC type - implement an RPC enum type for your game with values starting at G2DRPC_LastEngineRPC, register RPCs in order.

int UserGame2DRPC::rpcType;


The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/include/Game2DLayerNetwork.h