public void SetFlag(E_ItemContainerType _f, bool _b) { if (_b) { if (!this.HasFlag(_f)) { this.ItemContainerType |= _f; } } else { if (this.HasFlag(_f)) { this.ItemContainerType &= ~_f; } } }
public bool HasFlag(E_ItemContainerType _f) => ((this.ItemContainerType & _f) == _f);