コード例 #1
0
 public Options(byte[] bytes)
 {
     cursorMovement        = (CursorMovement)(bytes[0] & 0x01);
     cursorRepeatRate      = (Speed)((bytes[0] & 0x18) >> 3);
     multiHeightToggleRate = (MultiheightToggleRate)((bytes[0] & 0xC0) >> 6);
     menuCursorSpeed       = (MenuCursorSpeed)((bytes[1] & 0x0E) >> 1);
     messageSpeed          = (Speed)((bytes[1] & 0x30) >> 4);
     battlePrompts         = (bytes[1] & 0x80) == 0;
     displayAbilityNames   = (bytes[2] & 0x02) == 0;
     displayEffectMessages = (bytes[2] & 0x08) == 0;
     sound = (Sound)((bytes[2] & 0x60) >> 5);
     displayUnequippableItems = (bytes[2] & 0x80) == 0;
     displayEarnedExpJp       = (bytes[3] & 0x02) == 0;
     targetColors             = (bytes[3] & 0x08) == 0;
     optimizeOnJobChange      = (bytes[3] & 0x20) == 0;
 }
コード例 #2
0
ファイル: Options.cs プロジェクト: Wi150nZ/lioneditor
 public Options( byte[] bytes )
 {
     cursorMovement = (CursorMovement)(bytes[0] & 0x01);
     cursorRepeatRate = (Speed)((bytes[0] & 0x18) >> 3);
     multiHeightToggleRate = (MultiheightToggleRate)((bytes[0] & 0xC0) >> 6);
     menuCursorSpeed = (MenuCursorSpeed)((bytes[1] & 0x0E) >> 1);
     messageSpeed = (Speed)((bytes[1] & 0x30) >> 4);
     battlePrompts = (bytes[1] & 0x80) == 0;
     displayAbilityNames = (bytes[2] & 0x02) == 0;
     displayEffectMessages = (bytes[2] & 0x08) == 0;
     sound = (Sound)((bytes[2] & 0x60) >> 5);
     displayUnequippableItems = (bytes[2] & 0x80) == 0;
     displayEarnedExpJp = (bytes[3] & 0x02) == 0;
     targetColors = (bytes[3] & 0x08) == 0;
     optimizeOnJobChange = (bytes[3] & 0x20) == 0;
 }