b-engine-tiler
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -1,5 +0,5 @@ | ||
export * from "./TileLayerConfig"; | ||
export * from "./TileMapConfig"; | ||
export * from "./TileSetConfig"; | ||
export * from "./TileSetConfigEntry"; | ||
export * from "./TileSetConfigTile"; | ||
export * from './TileLayerConfig'; | ||
export * from './TileMapConfig'; | ||
export * from './TileSetConfig'; | ||
export * from './TileSetConfigEntry'; | ||
export * from './TileSetConfigTile'; |
@@ -1,2 +0,2 @@ | ||
import { TileSetConfigTile } from "./TileSetConfigTile"; | ||
import { TileSetConfigTile } from './TileSetConfigTile'; | ||
export interface TileSetConfig { | ||
@@ -3,0 +3,0 @@ name: string; |
@@ -1,2 +0,2 @@ | ||
export * from "./TileMapHandler"; | ||
export * from "./TileSetHandler"; | ||
export * from './TileMapHandler'; | ||
export * from './TileSetHandler'; |
@@ -1,2 +0,2 @@ | ||
import { TileMap } from "../models"; | ||
import { TileMap } from '../models'; | ||
export declare class TileMapHandler { | ||
@@ -3,0 +3,0 @@ private _tileMapLoader; |
@@ -21,4 +21,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this._map = | ||
yield this._tileMapLoader.loadMap(this._mapName, this._configFilePath); | ||
return (this._map = yield this._tileMapLoader.loadMap(this._mapName, this._configFilePath)); | ||
}); | ||
@@ -25,0 +24,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { TileSet } from "../models"; | ||
import { TileSet } from '../models'; | ||
export declare class TileSetHandler { | ||
@@ -3,0 +3,0 @@ private _tileAssetLoader; |
@@ -1,5 +0,5 @@ | ||
export * from "./loaders"; | ||
export * from "./logic"; | ||
export * from "./models"; | ||
export * from "./handlers"; | ||
export * from "./configinterfaces"; | ||
export * from './loaders'; | ||
export * from './logic'; | ||
export * from './models'; | ||
export * from './handlers'; | ||
export * from './configinterfaces'; |
@@ -1,3 +0,3 @@ | ||
export { TileAssetLoader } from "./TileAssetLoader"; | ||
export { TileLayerLoader } from "./TileLayerLoader"; | ||
export { TileMapLoader } from "./TileMapLoader"; | ||
export { TileAssetLoader } from './TileAssetLoader'; | ||
export { TileLayerLoader } from './TileLayerLoader'; | ||
export { TileMapLoader } from './TileMapLoader'; |
@@ -1,2 +0,2 @@ | ||
import { TileSet } from "../models"; | ||
import { TileSet } from '../models'; | ||
export declare class TileAssetLoader { | ||
@@ -3,0 +3,0 @@ private _dataLoader; |
@@ -11,3 +11,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const b_engine_gameengine_1 = require("@sirmomster/b-engine-gameengine"); | ||
const b_engine_gameengine_1 = require("b-engine-gameengine"); | ||
const models_1 = require("../models"); | ||
@@ -24,3 +24,3 @@ class TileAssetLoader { | ||
fileName: fileName, | ||
fullPath: basePath + fileName | ||
fullPath: basePath + fileName, | ||
}; | ||
@@ -63,3 +63,3 @@ this._tileSetConfigEntries.push(tileSetConfigEntry); | ||
} | ||
return yield this._dataLoader.load("tileSetConfigs"); | ||
return yield this._dataLoader.load('tileSetConfigs'); | ||
}); | ||
@@ -66,0 +66,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { TileLayer } from "../models"; | ||
import { TileLayer } from '../models'; | ||
export declare class TileLayerLoader { | ||
@@ -3,0 +3,0 @@ private _dataLoader; |
@@ -11,3 +11,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const b_engine_gameengine_1 = require("@sirmomster/b-engine-gameengine"); | ||
const b_engine_gameengine_1 = require("b-engine-gameengine"); | ||
const models_1 = require("../models"); | ||
@@ -23,3 +23,3 @@ class TileLayerLoader { | ||
} | ||
const data = yield this._dataLoader.load("layerFiles"); | ||
const data = yield this._dataLoader.load('layerFiles'); | ||
return this.transformMapLayers(data, layerFiles); | ||
@@ -26,0 +26,0 @@ }); |
@@ -1,2 +0,2 @@ | ||
import { TileMap } from "../models"; | ||
import { TileMap } from '../models'; | ||
export declare class TileMapLoader { | ||
@@ -3,0 +3,0 @@ private _dataLoader; |
@@ -12,3 +12,3 @@ "use strict"; | ||
const TileLayerLoader_1 = require("./TileLayerLoader"); | ||
const b_engine_gameengine_1 = require("@sirmomster/b-engine-gameengine"); | ||
const b_engine_gameengine_1 = require("b-engine-gameengine"); | ||
const models_1 = require("../models"); | ||
@@ -24,3 +24,3 @@ class TileMapLoader { | ||
this._dataLoader.add(mapName, this._basePath + configFileName); | ||
const data = yield this._dataLoader.load("maps"); | ||
const data = yield this._dataLoader.load('maps'); | ||
const map = data[mapName].data; | ||
@@ -27,0 +27,0 @@ return yield this.transformMapConfig(map); |
@@ -1,1 +0,1 @@ | ||
export { TileMapRenderer } from "./TileMapRenderer"; | ||
export { TileMapRenderer } from './TileMapRenderer'; |
@@ -1,4 +0,4 @@ | ||
import { TileMap, TileLayer } from "../models"; | ||
import { GameState, Layer } from "@sirmomster/b-engine-gameengine"; | ||
import { TileSetHandler } from "../handlers"; | ||
import { TileMap, TileLayer } from '../models'; | ||
import { GameState, Layer } from 'b-engine-gameengine'; | ||
import { TileSetHandler } from '../handlers'; | ||
export declare class TileMapRenderer { | ||
@@ -5,0 +5,0 @@ private _tileMap; |
@@ -25,3 +25,3 @@ "use strict"; | ||
let y = this.startY; | ||
let tileSet = this._tileSetHandler.getTileSetByName("test"); | ||
let tileSet = this._tileSetHandler.getTileSetByName('test'); | ||
for (let mappingY of tileLayer.mapping) { | ||
@@ -37,5 +37,4 @@ for (let mappingX of mappingY) { | ||
} | ||
destroy() { | ||
} | ||
destroy() { } | ||
} | ||
exports.TileMapRenderer = TileMapRenderer; |
@@ -1,4 +0,4 @@ | ||
export { Tile } from "./Tile"; | ||
export { TileLayer } from "./TileLayer"; | ||
export { TileMap } from "./TileMap"; | ||
export { TileSet } from "./TileSet"; | ||
export { Tile } from './Tile'; | ||
export { TileLayer } from './TileLayer'; | ||
export { TileMap } from './TileMap'; | ||
export { TileSet } from './TileSet'; |
@@ -1,3 +0,3 @@ | ||
import { Texture } from "pixi.js"; | ||
import { TileRenderable } from "./TileRenderable"; | ||
import { Texture } from 'pixi.js'; | ||
import { TileRenderable } from './TileRenderable'; | ||
export declare class Tile { | ||
@@ -4,0 +4,0 @@ private _name; |
@@ -7,3 +7,3 @@ "use strict"; | ||
class Tile { | ||
constructor(id, textureName, name = "") { | ||
constructor(id, textureName, name = '') { | ||
this._name = name; | ||
@@ -10,0 +10,0 @@ this._id = id; |
@@ -5,3 +5,3 @@ export declare class TileLayer { | ||
private _sortOrder; | ||
constructor(name: string, mapping: Array<Array<string>>, sortOder: number); | ||
constructor(name: string, mapping: string[][], sortOder: number); | ||
readonly name: string; | ||
@@ -8,0 +8,0 @@ readonly mapping: string[][]; |
@@ -1,2 +0,2 @@ | ||
import { TileLayer } from "./TileLayer"; | ||
import { TileLayer } from './TileLayer'; | ||
export declare class TileMap { | ||
@@ -3,0 +3,0 @@ private _tileLayers?; |
@@ -1,4 +0,4 @@ | ||
import { SpriteRenderable } from "@sirmomster/b-engine-gameengine"; | ||
import { SpriteRenderable } from 'b-engine-gameengine'; | ||
export declare class TileRenderable extends SpriteRenderable { | ||
constructor(name: string, x: number, y: number, width: number, height: number, textureName: string); | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const b_engine_gameengine_1 = require("@sirmomster/b-engine-gameengine"); | ||
const b_engine_gameengine_1 = require("b-engine-gameengine"); | ||
class TileRenderable extends b_engine_gameengine_1.SpriteRenderable { | ||
@@ -5,0 +5,0 @@ constructor(name, x, y, width, height, textureName) { |
@@ -1,2 +0,2 @@ | ||
import { Tile } from "./Tile"; | ||
import { Tile } from './Tile'; | ||
export declare class TileSet { | ||
@@ -3,0 +3,0 @@ private _name; |
@@ -13,3 +13,3 @@ "use strict"; | ||
} | ||
addTile(id, textureName, name = "") { | ||
addTile(id, textureName, name = '') { | ||
let existingTile = this.findTileById(id); | ||
@@ -16,0 +16,0 @@ if (existingTile === undefined) { |
@@ -1,1 +0,1 @@ | ||
export * from "./HelperMethods"; | ||
export * from './HelperMethods'; |
{ | ||
"name": "b-engine-tiler", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "", | ||
@@ -17,5 +17,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"b-engine-gameengine": "^0.1.4" | ||
"b-engine-gameengine": "^0.1.5" | ||
}, | ||
"gitHead": "caf54ad70f0ae4e2828e9255c9f95c702c7f0dfd" | ||
"gitHead": "b9ff0ca81a62b6b963ee74fe8640c72647974685" | ||
} |
36143
641
Updatedb-engine-gameengine@^0.1.5