ReadyM.Api.Multiplayer
Namespaces
ReadyM.Api.Multiplayer.Generators
ReadyM.Api.Multiplayer.Protocol
Classes
Client-to-server (request) leg of a contract method: generates a Send on the client and an On(RpcContext, ...) handler on the server. Different-shaped two-way RPCs are two overloads (one per direction); identical-shape two-way is one method with both attributes. Every contract method needs at least one direction attribute.
Binds an RPC class (server ServerRpcHandlersBase, client ServerRpcClient) to the
ServerRpcContractsAttribute class it implements, and is required on both.
A project may reference several contract sets, directly or transitively; this is what tells the
generator which one to emit against. Only the legs declared by the named class are generated,
so one contract set per RPC class.
Server-to-client (response/push) leg of a contract method: generates a Send(PlayerId, ...) on the server and an On(...) handler on the client. See ClientToServerAttribute.