示例#1
0
 private void OnPreChunk(PreChunkPacket p)
 {
     if (PreChunk != null) PreChunk.Invoke(this, new PacketEventArgs<PreChunkPacket>(p));
 }
示例#2
0
 public void SendPreChunk(int x, int z, bool load, bool sync)
 {
     PreChunkPacket prepacket = new PreChunkPacket
     {
         Load = load,
         X = x,
         Z = z,
         Async = !sync
     };
     SendPacket(prepacket);
 }
示例#3
0
        internal void SendPreChunk(int x, int z, bool load, bool sync)
        {
            PreChunkPacket prepacket = new PreChunkPacket
            {
                Load = load,
                X = x,
                Z = z,
            };

            if (!sync)
                SendPacket(prepacket);
            else
                Send_Sync_Packet(prepacket);
        }
示例#4
0
 private void SendPreChunk(int x, int z, bool load)
 {
     PreChunkPacket prepacket = new PreChunkPacket
     {
         Load = load,
         X = x,
         Z = z
     };
     PacketHandler.SendPacket(prepacket);
 }
示例#5
0
 public static void ReadPreChunk(TestClient client, PacketReader reader)
 {
     PreChunkPacket pc = new PreChunkPacket();
     pc.Read(reader);
 }