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

From King Arthur's Gold Wiki
Jump to: navigation, search
m (Short description + object and array version)
m (Corrected parameter format)
 
Line 6: Line 6:
 
   
 
   
 
<syntaxhighlight lang="cpp">
 
<syntaxhighlight lang="cpp">
void set(const string &in, obj o)
+
void set(const string &in, Object &in)
void set(const string &in, arr[] a)
+
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)

Latest revision as of 15: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