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; }
public ShootMessage(Projectile Projectile) : base(MessageTypeGameMode.Shoot) { this.Projectile = Projectile; }