Difference between revisions of "ConfigFile::add (type)"
From King Arthur's Gold Wiki
Shadlington (Talk | contribs) (Created page with "<onlyinclude> Adds a key/value pair of a particular type to the ConfigFile. The type is specified by the specific method name used. </onlyinclude> <syntaxhighlight lang="cpp"> ...") |
Shadlington (Talk | contribs) |
||
Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
− | Adds a key/value pair of a particular type to the ConfigFile. The type is specified by the specific method name used. | + | Adds a key/value pair with a value of a particular type to the ConfigFile. The type is specified by the specific method name used. |
</onlyinclude> | </onlyinclude> | ||
− | |||
<syntaxhighlight lang="cpp"> | <syntaxhighlight lang="cpp"> | ||
void add_f32( const string &in key, const f32 &in value ) | void add_f32( const string &in key, const f32 &in value ) |
Latest revision as of 16:05, 29 September 2012
Adds a key/value pair with a value of a particular type to the ConfigFile. The type is specified by the specific method name used.
void add_f32( const string &in key, const f32 &in value ) void add_u8( const string &in key, const u8 &in value ) void add_s8( const string &in key, const s8 &in value ) void add_u16( const string &in key, const u16 &in value ) void add_s16( const string &in key, const s16 &in value ) void add_u32( const string &in key, const u32 &in value ) void add_s32( const string &in key, const s32 &in value ) void add_bool( const string &in key, const bool &in value ) void add_string( const string &in key, const string &in value )
Object method of: ConfigFile