コード例 #1
0
ファイル: WorldModel.cs プロジェクト: beyonddiana/osmp-cs
        // 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);
            }
        }
コード例 #2
0
 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
ファイル: WorldModel.cs プロジェクト: hughperkins/osmp-cs
 // 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);
     }
 }
コード例 #4
0
 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);
     }
 }