Skip to content

Commit

Permalink
Add value types for kv3
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Feb 9, 2024
1 parent 12b147b commit 79efd85
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
18 changes: 11 additions & 7 deletions ValveKeyValue/ValveKeyValue.Test/Test Data/apisurface.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
22 changes: 21 additions & 1 deletion ValveKeyValue/ValveKeyValue/KVValueType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,26 @@
/// </summary>
public enum KVValueType
{
/// <summary>
/// This <see cref="KVValue"/> is represented by a <see cref="null"/>.
/// </summary>
Null,

/// <summary>
/// This <see cref="KVValue"/> represents a collection of child <see cref="KVObject"/>s.
/// </summary>
Collection,

/// <summary>
/// This <see cref="KVValue"/> represents an array of child <see cref="KVValue"/>s.
/// </summary>
Array,

/// <summary>
/// This <see cref="KVValue"/> represents a blob of binary bytes of child <see cref="KVValue"/>s.
/// </summary>
BinaryBlob,

/// <summary>
/// This <see cref="KVValue"/> is represented by a <see cref="string"/>.
/// </summary>
Expand Down Expand Up @@ -38,6 +53,11 @@ public enum KVValueType
/// <summary>
/// This <see cref="KVValue"/> is represented by a <see cref="long"/>.
/// </summary>
Int64
Int64,

/// <summary>
/// This <see cref="KVValue"/> is represented by a <see cref="bool"/>.
/// </summary>
Boolean,
}
}

0 comments on commit 79efd85

Please sign in to comment.