From 852a86334eea81beb69b0bc300ea441ff700b237 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 24 Jul 2023 13:17:05 +0300 Subject: [PATCH] Make KVFlag singular --- .../KeyValues3/KV3TextReaderStateMachine.cs | 2 +- ValveKeyValue/ValveKeyValue/KVFlag.cs | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ValveKeyValue/ValveKeyValue/Deserialization/KeyValues3/KV3TextReaderStateMachine.cs b/ValveKeyValue/ValveKeyValue/Deserialization/KeyValues3/KV3TextReaderStateMachine.cs index 66bb1a6e..127ec45d 100644 --- a/ValveKeyValue/ValveKeyValue/Deserialization/KeyValues3/KV3TextReaderStateMachine.cs +++ b/ValveKeyValue/ValveKeyValue/Deserialization/KeyValues3/KV3TextReaderStateMachine.cs @@ -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() { diff --git a/ValveKeyValue/ValveKeyValue/KVFlag.cs b/ValveKeyValue/ValveKeyValue/KVFlag.cs index 22e04573..25e20c31 100644 --- a/ValveKeyValue/ValveKeyValue/KVFlag.cs +++ b/ValveKeyValue/ValveKeyValue/KVFlag.cs @@ -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, } }