Difference between revisions of "GetPlayingBlobsSize"
From King Arthur's Gold Wiki
Shadlington (Talk | contribs) |
Shadlington (Talk | contribs) |
||
Line 9: | Line 9: | ||
{ | { | ||
[[CBlob]]@ blob = [[getPlayingBlob]](i); | [[CBlob]]@ blob = [[getPlayingBlob]](i); | ||
− | // Do something to this | + | // Do something to this blob |
} | } | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 14:20, 15 August 2012
Returns the number of CBlobs that are currently active and in play - i.e. not settled map blocks or in inventories.
u32 getPlayingBlobsSize()
Usage example:
for ( int i = 0; i < getPlayingBlobsSize(); i++ ) { [[CBlob]]@ blob = [[getPlayingBlob]](i); // Do something to this blob }