예제 #1
0
        // incoming event from NetReplicationController:
        void IReplicatedObjectController.ReplicatedObjectDeleted(object notifier, ObjectDeletedArgs e)
        {
            LogFile.WriteLine("WorldModel ReplicatedObjectDeleted " + e.Reference + " " + e.typename);
            Entity entity = GetEntityByReference(e.Reference);

            if (entity != null)
            {
                entities.Remove(entity);
                entitybyreference.Remove(e.Reference);
            }
        }
 void controller_ObjectDeleted(object source, ObjectDeletedArgs e)
 {
     if (rpc.isserver)
     {
         dirtyobjectcontroller.MarkDeleted(e.Reference, e.typename);
     }
     else
     {
         new NetworkInterfaces.ObjectReplicationClientToServer_ClientProxy(rpc, null).ObjectDeleted(
             e.Reference, e.typename);
     }
 }
예제 #3
0
 // incoming event from NetReplicationController:
 void IReplicatedObjectController.ReplicatedObjectDeleted(object notifier, ObjectDeletedArgs e)
 {
     LogFile.WriteLine("WorldModel ReplicatedObjectDeleted " + e.Reference + " "  + e.typename);
     Entity entity = GetEntityByReference(e.Reference);
     if (entity != null)
     {
         entities.Remove(entity);
         entitybyreference.Remove(e.Reference);
     }
 }
 void controller_ObjectDeleted(object source, ObjectDeletedArgs e)
 {
     if (rpc.isserver)
     {
         dirtyobjectcontroller.MarkDeleted(e.Reference, e.typename);
     }
     else
     {
         new NetworkInterfaces.ObjectReplicationClientToServer_ClientProxy(rpc, null).ObjectDeleted(
             e.Reference, e.typename);
     }
 }