From 79efd85eb9aaa023ddb6b07ac4ec73038e699ca4 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 9 Feb 2024 21:34:39 +0200 Subject: [PATCH] Add value types for kv3 --- .../Test Data/apisurface.txt | 18 +++++++++------ ValveKeyValue/ValveKeyValue/KVValueType.cs | 22 ++++++++++++++++++- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/ValveKeyValue/ValveKeyValue.Test/Test Data/apisurface.txt b/ValveKeyValue/ValveKeyValue.Test/Test Data/apisurface.txt index 94b92478..df664688 100644 --- a/ValveKeyValue/ValveKeyValue.Test/Test Data/apisurface.txt +++ b/ValveKeyValue/ValveKeyValue.Test/Test Data/apisurface.txt @@ -178,13 +178,17 @@ public class ValveKeyValue.KVValue public sealed enum ValveKeyValue.KVValueType { - Collection = 0; - String = 1; - Int32 = 2; - UInt64 = 3; - FloatingPoint = 4; - Pointer = 5; - Int64 = 6; + Null = 0; + Collection = 1; + Array = 2; + BinaryBlob = 3; + String = 4; + Int32 = 5; + UInt64 = 6; + FloatingPoint = 7; + Pointer = 8; + Int64 = 9; + Boolean = 10; public int CompareTo(object target); public bool Equals(object obj); diff --git a/ValveKeyValue/ValveKeyValue/KVValueType.cs b/ValveKeyValue/ValveKeyValue/KVValueType.cs index 44be089b..4876e7ca 100644 --- a/ValveKeyValue/ValveKeyValue/KVValueType.cs +++ b/ValveKeyValue/ValveKeyValue/KVValueType.cs @@ -5,11 +5,26 @@ /// public enum KVValueType { + /// + /// This is represented by a . + /// + Null, + /// /// This represents a collection of child s. /// Collection, + /// + /// This represents an array of child s. + /// + Array, + + /// + /// This represents a blob of binary bytes of child s. + /// + BinaryBlob, + /// /// This is represented by a . /// @@ -38,6 +53,11 @@ public enum KVValueType /// /// This is represented by a . /// - Int64 + Int64, + + /// + /// This is represented by a . + /// + Boolean, } }