コード例 #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;
        }
コード例 #2
0
 public ShootMessage(Projectile Projectile) 
     : base(MessageTypeGameMode.Shoot)
 {         
     this.Projectile = Projectile;                      
 }