Vixen
02b45cc4

ClientRpcAttribute

annotation Core/Vixen.Net/Rpc/RpcAttributes.cs:67
csharp
public sealed class ClientRpcAttribute

Marks a method as the handler for a call the server makes and clients run.

No guide page documents this yet — the page shows what the code says about itself.

As a annotation

Valid on
Method

Remarks

The mirror of ServerRpcAttribute, and the same rule: the method is the handler and the generated sender beside it is the call. Sending one from anything that is not the server is refused rather than sent, and counted.

Fields and properties (2)

  • public RpcTarget Target

    Who gets it.

  • public Channel Channel

    How to send it. Unreliable by default, because most of these are effects: a hit spark that arrives late is worse than one that never arrives.

Used by (2)

  • AvatarControllerMultiplayer
  • GeneratedTurretVixen.Net.Generators.Tests