Stardew Engine
Loading...
Searching...
No Matches
UserGame2DRPC Struct Reference

An RPC implemented by a users game. More...

#include <Game2DLayerNetwork.h>

Collaboration diagram for UserGame2DRPC:

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
 

Detailed Description

An RPC implemented by a users game.

Field Documentation

◆ ctor

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

◆ handler

RPCMessageHandlerFn UserGame2DRPC::handler

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

◆ rpcType

int UserGame2DRPC::rpcType

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


The documentation for this struct was generated from the following file: