Difference between revisions of "CBlob::set (type)"
From King Arthur's Gold Wiki
Shadlington (Talk | contribs) |
Vermilicious (Talk | contribs) m (Short description + object and array version) |
||
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, obj o) | ||
+ | void set(const string &in, arr[] a) | ||
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) |
Revision as of 15:01, 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, obj o) void set(const string &in, arr[] a) 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