-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved the TileMaps into the Graphics namespace.
- TileMaps and SquareTileMaps are on the base Graphics namespace - Tile details and SquareTile's are part of the Graphics.Assets #66
- Loading branch information
1 parent
70ad48b
commit 289770f
Showing
29 changed files
with
105 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
var __extends = this.__extends || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
__.prototype = b.prototype; | ||
d.prototype = new __(); | ||
}; | ||
var EndGate; | ||
(function (EndGate) { | ||
(function (Graphics) { | ||
/// <reference path="../../Graphics/ImageSource.ts" /> | ||
/// <reference path="../../Graphics/Sprites/Sprite2d.ts" /> | ||
(function (Assets) { | ||
/** | ||
* Defines a SquareTile that is used by the SquareTileMap. Represents one tile within the tile map. | ||
*/ | ||
var SquareTile = (function (_super) { | ||
__extends(SquareTile, _super); | ||
/** | ||
* Creates a new instance of the SquareTile object. | ||
* @param image The image that is within the tile. | ||
* @param width The width of the tile. | ||
* @param height The height of the tile. | ||
*/ | ||
function SquareTile(image, width, height) { | ||
_super.call(this, 0, 0, image, width, height); | ||
} | ||
return SquareTile; | ||
})(EndGate.Graphics.Sprite2d); | ||
Assets.SquareTile = SquareTile; | ||
})(Graphics.Assets || (Graphics.Assets = {})); | ||
var Assets = Graphics.Assets; | ||
})(EndGate.Graphics || (EndGate.Graphics = {})); | ||
var Graphics = EndGate.Graphics; | ||
})(EndGate || (EndGate = {})); |
2 changes: 1 addition & 1 deletion
2
...ndGate.Core.JS/Map/TileMaps/SquareTile.ts → ...e.Core.JS/Graphics/TileMaps/SquareTile.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
/// <reference path="../TileMaps/ITileDetails.ts" /> | ||
/// <reference path="../../Graphics/TileMaps/ITileDetails.ts" /> | ||
|
||
declare module EndGate.Map.Loaders { | ||
|
||
/** | ||
* Defines an IHookFunction that represents a function that can be used to hook into map loading tiles. | ||
*/ | ||
export interface IHookFunction { | ||
(details: ITileDetails, propertyValue: string): any; | ||
(details: Graphics.Assets.ITileDetails, propertyValue: string): any; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.