Difference between revisions of "GetMap"

From King Arthur's Gold Wiki
Jump to: navigation, search
(Created page with "<onlyinclude> Returns a reference to the CMap object. </onlyinclude> <syntaxhighlight lang="cpp"> CMap@ getMap() </syntaxhighlight> Example from Entities/Characters/Scripts/...")
 
(No difference)

Latest revision as of 18:47, 22 August 2012

Returns a reference to the CMap object.

CMap@ getMap()

Example from Entities/Characters/Scripts/BuilderLogic.as:

void onHitMap( CBlob@ this, Vec2f worldPoint, TileType tileOffset, Vec2f velocity, f32 damage, u8 customData )
{
  getMap().DestroyTile( getMap().getTileSpacePosition(tileOffset), damage );}