Example #1
0
 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 ) );
     }
 }
Example #2
0
 public void RequestNewReferenceRpc( object connection, Type targettype, RefToLocalObject requester )
 {
     int nextreference = _GetNextReferenceForType( targettype );
     RpcController.GetInstance().NetObject( this ).ReferenceResponse( connection, nextreference, targettype, requester );
 }