Ejemplo n.º 1
0
        public override int ReadFrom(byte[] Buffer, int StartIndex = 0)
        {
            int cursor = StartIndex;

            cursor += base.ReadFrom(Buffer, cursor);

            Projectile = new Projectile(Buffer, cursor);
            cursor += Projectile.ByteLength;

            return cursor - StartIndex;
        }
Ejemplo n.º 2
0
 public ShootMessage(Projectile Projectile) 
     : base(MessageTypeGameMode.Shoot)
 {         
     this.Projectile = Projectile;                      
 }