Difference between revisions of "GetBlobByName"

From King Arthur's Gold Wiki
Jump to: navigation, search
 
Line 2: Line 2:
 
Returns a reference to the first [[CBlob]] with the given name. Probably not very useful.
 
Returns a reference to the first [[CBlob]] with the given name. Probably not very useful.
 
</onlyinclude>
 
</onlyinclude>
 
 
<syntaxhighlight lang="cpp">CBlob@ getBlobByName(const string &in name)</syntaxhighlight>
 
<syntaxhighlight lang="cpp">CBlob@ getBlobByName(const string &in name)</syntaxhighlight>
  

Latest revision as of 21:03, 19 August 2012

Returns a reference to the first CBlob with the given name. Probably not very useful.

CBlob@ getBlobByName(const string &in name)

This will not likely be that useful. It returns the first CBlob it finds with the given name. As most CBlobs will have a fairly generic name, there will often be lots of CBlobs with the same name, so you'd be better off using something like getBlobByNetworkId if you need precision.