Example #1
0
 internal void SetEditorOnlyData(EditorOnlyData mask, bool value)
 {
     if (value)
     {
         editorOnlyData.intValue |= (int)mask;
     }
     else
     {
         editorOnlyData.intValue &= ~(int)mask;
     }
 }
Example #2
0
 internal void ToggleEditorOnlyData(EditorOnlyData mask) => SetEditorOnlyData(mask, !GetEditorOnlyData(mask));
Example #3
0
 internal bool GetEditorOnlyData(EditorOnlyData mask) => (editorOnlyData.intValue & (int)mask) == (int)mask;