mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
Services here, too!
This commit is contained in:
parent
1eb16b98a8
commit
85adc3626e
47 changed files with 1015 additions and 562 deletions
|
|
@ -95,4 +95,14 @@ public static class CustomizeFlagExtensions
|
|||
CustomizeFlag.FacePaintColor => CustomizeIndex.FacePaintColor,
|
||||
_ => (CustomizeIndex)byte.MaxValue,
|
||||
};
|
||||
|
||||
public static bool SetIfDifferent(ref this CustomizeFlag flags, CustomizeFlag flag, bool value)
|
||||
{
|
||||
var newValue = value ? flags | flag : flags & ~flag;
|
||||
if (newValue == flags)
|
||||
return false;
|
||||
|
||||
flags = newValue;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue