CBlob::exists

From King Arthur's Gold Wiki
Revision as of 00:10, 29 September 2012 by Ardivaba (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns a bool indicating whether or not this blob has given property.


Normally you want to use this to make sure that blob has a specific property initialized, which you want to read.

bool exists(const string &in)


Example from Base\Entities\Common\FireScripts\HOTHOTHOT.as

if (blob.getProperties().exists("burn_time"))
{
     u8 burn_time = blob.getProperties().get_u8("burn_time");
     ...
}

Object method of: CBlob