๐Ÿ—ฃ๏ธ RPC Responder Interface

Short Description

Interface for AutoReplication owners that want to handle queued RPCs automatically.

Long Description

Implement this interface on a QoL class to receive AutoReplication RPC payloads when the mixin drains its pending queue. This allows Blueprint or C++ classes to process RPCs without manual polling.

๐Ÿš€ Features

  • Blueprint-native handler for queued RPC payloads.
  • Works with the AutoReplication mixin dispatch path.

๐Ÿ“š Usage Examples

Implement Handle AutoReplication RPC in your PlayerController or GameState.

void AMyController::HandleAutoReplicationRPC_Implementation(const FGorgeousQueuedRPC& QueuedRPC)
{
    // handle the RPC
}

HandleAutoReplicationRPC

Called when the mixin dispatches a queued RPC for the owning AutoReplication class.

Parameter Name Type Description
QueuedRPC FGorgeousQueuedRPC RPC payload with handler name and arguments.

Add logic in the interface event node.

Best Practices

  • Use handler names that match the RPC payload HandlerName exactly.

Troubleshooting

  • If handlers do not fire, confirm the owner implements the interface and the mixin dispatches pending RPCs.