public void SendPacks() { while (netPacks.TryDequeue(out var pack)) { netContext.Send(pack); } }
public static void Send(this Chunk chunk, NetContext context) { NetPack netPack = context.GetNetBlock((int)NetMessageType.Chunk, Chunk.c_minimumSize); chunk.ToNetBlock(netPack); context.Send(netPack); }