GetMap

From King Arthur's Gold Wiki
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 );}