public override int ReadFrom(byte[] Buffer, int StartIndex = 0) { int cursor = StartIndex; if ((UserCommandType)Buffer[cursor] != CommandType) { throw new Exception(ERRORWRONGTYPEBYTE); } else { cursor++; Data = new GuildAskData(Buffer, cursor); cursor += Data.ByteLength; } return(cursor - StartIndex); }
public UserCommandGuildAsk(GuildAskData Data) { this.Data = Data; }