public override int ReadFrom(byte[] Buffer, int StartIndex = 0) { int cursor = StartIndex; if ((UserCommandType)Buffer[cursor] != CommandType) { throw new Exception(ERRORWRONGTYPEBYTE); } else { cursor++; ClientPreferences = new PreferencesFlags(Buffer, cursor); cursor += TypeSizes.INT; } return(cursor - StartIndex); }
public UserCommandSendPreferences(PreferencesFlags ClientPreferences) { this.ClientPreferences = ClientPreferences; }
public UserCommandReceivePreferences(PreferencesFlags ClientPreferences) { this.ClientPreferences = ClientPreferences; }