Exemplo n.º 1
0
        public void Request <T>(GhostNetConnection con, out T chunk, long timeout = 5000) where T : IChunk
        {
            GhostNetFrame response = Request <T>(con, timeout);

            if (response != null)
            {
                response.Get(out chunk);
                return;
            }
            chunk = default(T);
        }
Exemplo n.º 2
0
        public void Request <T>(int playerID, out T chunk, long timeout = 5000) where T : IChunk
        {
            GhostNetFrame response = Request <T>(playerID, timeout);

            if (response != null)
            {
                response.Get(out chunk);
                return;
            }
            chunk = default(T);
        }