Difference between revisions of "GetPlayingBlobsSize"

From King Arthur's Gold Wiki
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
Usage example:
 
Usage example:
<syntaxhighlight lang="cpp">
+
<syntaxhighlight lang="cpp" highlight="3">
 
for ( int i = 0; i < getPlayingBlobsSize(); i++ )
 
for ( int i = 0; i < getPlayingBlobsSize(); i++ )
 
{
 
{
   [[CBlob]]@ blob = [[getPlayingBlob]](i);
+
   CBlob@ blob = getPlayingBlob(i);
 
   // Do something to this blob
 
   // Do something to this blob
 
}
 
}

Latest revision as of 21:04, 19 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
}