]> icculus.org git repositories - divverent/nexuiz.git/blob - data/scmenu/source/util/property.qh
restructure
[divverent/nexuiz.git] / data / scmenu / source / util / property.qh
1 // NG Menu
2 // util/property.qh
3
4 // INFO: the property functions:
5 // INFO: to save some entity fields I support property strings, which use altstrings to manage a dynamic
6 // INFO: range of properties
7 // INFO: "'nameOfProp''Value''nameOfProp''Value'.."
8 // INFO: for speed reasons most of the Property_* functions assume that the property string has been validated
9 // INFO: by Property_Validate
10 // more or less generic functions
11 string()                        Property_Create;
12 string( string pString )        Property_Zone;
13 string( string pString )        Propery_Free;
14 bool( string pString )  Property_Validate;
15
16 bool( string pString, string pName )                            Property_Exists;
17 string( string pString, string pName, string pInitValue )       Property_Register; // doesnt change anything if the property does already exist
18 string( string pString, string pName, string pValue )           Property_Set; // errors if the property isnt found
19 //string( string pString, string pName, string pValue )           Property_Set; // if the property doesnt exist yet, it adds it
20 string( string pString, string pOldName, string pNewName )      Property_Rename;
21 string( string pString, string pName )                          Property_Delete;
22
23 string( string pString, string pName )  Property_Get;
24 string( string pString, string pName )  Property_GetString;
25 float( string pString, string pName )   Property_GetFloat;
26 vector( string pString, string pName )  Property_GetVector;
27 entity( string pString, string pName )  Property_GetEntity;