Skip to content

Commit

Permalink
Make KVFlag singular
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Feb 16, 2024
1 parent c98ba96 commit 852a863
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void PopObject()

public void SetName(string name) => CurrentObject.Key = name;

public void SetFlag(KVFlag flag) => CurrentObject.Flag |= flag;
public void SetFlag(KVFlag flag) => CurrentObject.Flag = flag;

public KVFlag GetAndResetFlag()
{
Expand Down
8 changes: 3 additions & 5 deletions ValveKeyValue/ValveKeyValue/KVFlag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

namespace ValveKeyValue
{
[Flags]
public enum KVFlag
{
None = 0,
Resource = 1,
ResourceName = 2,
MultilineString = 4,
Panorama = 8,
SoundEvent = 16,
SubClass = 32,
Panorama = 3,
SoundEvent = 4,
SubClass = 5,
}
}

0 comments on commit 852a863

Please sign in to comment.