Difference between revisions of "CBlob::set (type)"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> </onlyinclude> <syntaxhighlight lang="cpp"> void set_s8(const string &in, s8 v) void set_u8(const string &in, u8 v) void set_s16(const string &in, s16 v) void s...")
 
m (Corrected parameter format)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<onlyinclude>
 
<onlyinclude>
+
Stores a value of a certain type.
 
</onlyinclude>
 
</onlyinclude>
 +
 +
This method is useful for storing any data that should be associated with a particular blob object. Each value is referenced by a simple string.
 
   
 
   
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
 +
void set(const string &in, Object &in)
 +
void set(const string &in, Object[] &in)
 
void set_s8(const string &in, s8 v)
 
void set_s8(const string &in, s8 v)
 
void set_u8(const string &in, u8 v)
 
void set_u8(const string &in, u8 v)
Line 14: Line 18:
 
void set_string(const string &in, string v)
 
void set_string(const string &in, string v)
 
void set_Vec2f(const string &in, Vec2f v)
 
void set_Vec2f(const string &in, Vec2f v)
 +
void set_position2di(const string &in, position2di v)
 
</syntaxhighlight>
 
</syntaxhighlight>
 
   
 
   

Latest revision as of 16:14, 31 January 2016

Stores a value of a certain type.


This method is useful for storing any data that should be associated with a particular blob object. Each value is referenced by a simple string.

void set(const string &in, Object &in)
void set(const string &in, Object[] &in)
void set_s8(const string &in, s8 v)
void set_u8(const string &in, u8 v)
void set_s16(const string &in, s16 v)
void set_u16(const string &in, u16 v)
void set_s32(const string &in, s32 v)
void set_u32(const string &in, u32 v)
void set_f32(const string &in, f32 v)
void set_bool(const string &in, bool v)
void set_string(const string &in, string v)
void set_Vec2f(const string &in, Vec2f v)
void set_position2di(const string &in, position2di v)

Object method of: CBlob