GetMap

From King Arthur's Gold Wiki
Revision as of 18:47, 22 August 2012 by Shadlington (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 );}