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