Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Public Attributes | Properties | List of all members
KSPParseable Struct Reference

Represents a cfg-parseable value that can be saved to file and parsed, regardless of data type This class is an abstraction for the many methods for writing and parsing the different data types More...

Public Types

enum  Type {
  Type.STRING, Type.BOOL, Type.UINT, Type.INT,
  Type.FLOAT, Type.DOUBLE, Type.VECTOR2, Type.VECTOR3,
  Type.VECTOR4, Type.QUATERNION, Type.UNKNOWN
}
 

Public Member Functions

 KSPParseable (object Value, KSPParseable.Type Type)
 
 KSPParseable (string Value)
 
string Save ()
 

Public Attributes

KSPParseable.Type type
 
string value
 

Properties

bool value_bool [get]
 
double value_double [get]
 
float value_float [get]
 
int value_int [get]
 
Quaternion value_quat [get]
 
uint value_uint [get]
 
Vector2 value_v2 [get]
 
Vector3 value_v3 [get]
 
Vector4 value_v4 [get]
 

Detailed Description

Represents a cfg-parseable value that can be saved to file and parsed, regardless of data type This class is an abstraction for the many methods for writing and parsing the different data types

This allows for the persistence system to blindly save data, registered for saving on other bits of code.

Member Enumeration Documentation

Enumerator
STRING 
BOOL 
UINT 
INT 
FLOAT 
DOUBLE 
VECTOR2 
VECTOR3 
VECTOR4 
QUATERNION 
UNKNOWN 

Constructor & Destructor Documentation

KSPParseable.KSPParseable ( object  Value,
KSPParseable.Type  Type 
)
inline
KSPParseable.KSPParseable ( string  Value)
inline

Member Function Documentation

string KSPParseable.Save ( )
inline

Member Data Documentation

KSPParseable.Type KSPParseable.type
string KSPParseable.value

Property Documentation

bool KSPParseable.value_bool
get
double KSPParseable.value_double
get
float KSPParseable.value_float
get
int KSPParseable.value_int
get
Quaternion KSPParseable.value_quat
get
uint KSPParseable.value_uint
get
Vector2 KSPParseable.value_v2
get
Vector3 KSPParseable.value_v3
get
Vector4 KSPParseable.value_v4
get

The documentation for this struct was generated from the following file: