Vixen
02b45cc4
csharp
public readonly record struct RpcContext

Who is calling, and about what.

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

Remarks

Handed to the handler so it can answer "who did this?" without the sender having to put the caller's id in the arguments — where a client would be the one filling it in, which is the whole problem.

Fields and properties (5)

  • public PlayerId Sender

    The player whose packet this is, or None when the server is the one that sent it.

  • public NetworkId Target

    The networked object the call is about.

  • public RpcMethod Method

    Which call it is.

  • public uint CorrelationId

    Which outstanding call this is, for one that expects an answer. Zero for the ordinary fire-and-forget kind, which is almost all of them.

  • public bool ExpectsReply

    Whether the caller is waiting for an answer to this one.

Methods (1)

Used by (8)

  • AvatarControllerMultiplayer
  • AnsweringVixen.Net.Tests
  • CounterVixen.Net.Tests
  • CountingInvokerVixen.Net.Fuzz
  • GeneratedTurretVixen.Net.Generators.Tests
  • IRpcInvokerVixen.Net
  • RpcRouterVixen.Net
  • TurretVixen.Net.Tests