Skip to content

Commit fdc1af0

Browse files
committed
Install isTilemap prop used by physics system for fast type checking
1 parent 32788d6 commit fdc1af0

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/gameobjects/tilemap/dynamiclayer/DynamicTilemapLayer.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ var DynamicTilemapLayer = new Class({
4949
{
5050
GameObject.call(this, scene, 'DynamicTilemapLayer');
5151

52+
/**
53+
* Used internally by physics system to perform fast type checks.
54+
* @property {boolean} isTilemap
55+
* @readonly
56+
*/
57+
this.isTilemap = true;
58+
5259
/**
5360
* The Tilemap that this layer is a part of.
5461
* @property {Tilemap} map

src/gameobjects/tilemap/staticlayer/StaticTilemapLayer.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ var StaticTilemapLayer = new Class({
4949
{
5050
GameObject.call(this, scene, 'StaticTilemapLayer');
5151

52+
/**
53+
* Used internally by physics system to perform fast type checks.
54+
* @property {boolean} isTilemap
55+
* @readonly
56+
*/
57+
this.isTilemap = true;
58+
5259
/**
5360
* The Tilemap that this layer is a part of.
5461
* @property {Tilemap} map

0 commit comments

Comments
 (0)