public void RequestNewReference( IReferenceConsumer requester, Type targettype ) { if( ismaster ) { int reference = _GetNextReferenceForType( targettype ); requester.NewReferenceResponse( targettype, reference ); } else { RpcController.GetInstance().NetObject( this ).RequestNewReferenceRpc( null, targettype, new RefToLocalObject( requester ) ); } }
public void RequestNewReferenceRpc( object connection, Type targettype, RefToLocalObject requester ) { int nextreference = _GetNextReferenceForType( targettype ); RpcController.GetInstance().NetObject( this ).ReferenceResponse( connection, nextreference, targettype, requester ); }