Difference between revisions of "GetBlob"
From King Arthur's Gold Wiki
Shadlington (Talk | contribs) |
Shadlington (Talk | contribs) |
||
Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
− | + | Returns a reference to the [[CBlob]] with the given index in the list of currently active blobs. | |
</onlyinclude> | </onlyinclude> | ||
<syntaxhighlight lang="cpp">[[CBlob]]@ getBlob(u32 index)</syntaxhighlight> | <syntaxhighlight lang="cpp">[[CBlob]]@ getBlob(u32 index)</syntaxhighlight> |
Revision as of 20:11, 14 August 2012
Returns a reference to the CBlob with the given index in the list of currently active blobs.
[[CBlob]]@ getBlob(u32 index)
Probably not required unless looping through all blobs for some reason, in which case something like this might work:
for ( i = 0; i < [[getBlobsSize]](); i++ ) { [[CBlob]]@ blob = getBlob(i); blob->scripts.clear(); }