GetBlobByNetworkId

From King Arthur's Gold Wiki
Revision as of 16:50, 15 August 2012 by Shadlington (Talk | contribs)

Jump to: navigation, search

Returns a reference to the CBlob with the given Network ID.

CBlob@ getBlobByNetworkId(u16 netid)

This will be used where a CBlob's Network ID has been passed around scripts to identify it. This is commonly done in a script's onCommand function.

Example from Entities/Workshops/WorkshopTasks.as, in the onCommand function, where the calling CBlob's Network ID was passed in via the params parameter:

CBlob@ caller = getBlobByNetworkId( params.read_u16() );