mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 14:38:13 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
53 lines
1.4 KiB
Modula-2
53 lines
1.4 KiB
Modula-2
|
|
native enum KeyValues3Type_t;
|
|
|
|
|
|
native class KeyValues3
|
|
{
|
|
void DeleteThis(); [delete]
|
|
static KeyValues3 Create(); [new]
|
|
|
|
bool IsArray();
|
|
bool IsTable();
|
|
|
|
KeyValues3Type_t GetType();
|
|
|
|
bool GetValueBool();
|
|
int GetValueInt();
|
|
long GetValueInt64();
|
|
ulong GetValueUint64();
|
|
float GetValueFloat();
|
|
double GetValueDouble();
|
|
string GetValueString();
|
|
Vector3 GetValueVector();
|
|
Color GetValueColor();
|
|
|
|
void SetValueBool( bool o );
|
|
void SetValueString( string o );
|
|
void SetValueResourceString( string o );
|
|
void SetValueInt( int o );
|
|
void SetValueFloat( float o );
|
|
|
|
void SetMemberString( CastTo[CKV3MemberName] string key, string value );
|
|
void SetMemberInt( CastTo[CKV3MemberName] string key, int value );
|
|
void SetMemberFloat( CastTo[CKV3MemberName] string key, float value );
|
|
|
|
string GetMemberString( CastTo[CKV3MemberName] string key );
|
|
int GetMemberInt( CastTo[CKV3MemberName] string key, int defaultValue );
|
|
float GetMemberFloat( CastTo[CKV3MemberName] string key, float defaultValue );
|
|
Vector3 GetMemberVector( CastTo[CKV3MemberName] string key, Vector3 defaultValue );
|
|
|
|
void SetToEmptyArray();
|
|
int GetArrayLength();
|
|
KeyValues3 ArrayAddToTail();
|
|
KeyValues3 GetArrayElement( int i );
|
|
|
|
KeyValues3 FindOrCreateMember( CastTo[CKV3MemberName] string name );
|
|
|
|
void SetToEmptyTable();
|
|
|
|
int GetMemberCount();
|
|
KeyValues3 GetMember( int idx );
|
|
string GetMemberName( int idx );
|
|
}
|