Exemplo n.º 1
0
        protected override void OnSerialize(NetDataWriter writer)
        {
            writer.Put(_vectorsToSend.Size);
            foreach (var vector in _vectorsToSend)
            {
                writer.Put(vector.Tick);
                writer.Put(vector.Position);
            }

            //clear buffer - send and forget
            _vectorsToSend.FastClear();
        }