public override int WriteTo(byte[] Buffer, int StartIndex = 0) { int cursor = StartIndex; Buffer[cursor] = (byte)CommandType; cursor++; cursor += ShieldInfo.WriteTo(Buffer, cursor); return(cursor - StartIndex); }