Beispiel #1
0
        private static void OnRazeBlocksAreaRequest(MySyncGrid sync, ref RazeBlocksAreaRequestMsg msg, MyNetworkClient sender)
        {
            Debug.Assert(sync.BlocksRazeAreaRequest != null, "Handler should not be null, Raze messages will be ignored!");

            var handler = sync.BlocksRazeAreaRequest;
            if (handler != null) handler(ref msg.Pos, ref msg.Size);
        }
Beispiel #2
0
 public void RazeBlocksArea(ref Vector3I pos, ref Vector3UByte size)
 {
     var msg = new RazeBlocksAreaRequestMsg();
     msg.GridEntityId = Entity.EntityId;
     msg.Pos = pos;
     msg.Size = size;
     Sync.Layer.SendMessageToServer(ref msg);
 }