removed ts
This commit is contained in:
parent
4ed42f07b6
commit
fe2299f864
1
src/Game/AssetsLoader/AssetsLoader.d.ts
vendored
1
src/Game/AssetsLoader/AssetsLoader.d.ts
vendored
@ -1 +0,0 @@
|
||||
export function loadGameAssets(): Promise<void>;
|
3
src/Game/Buildings/Buildings.d.ts
vendored
3
src/Game/Buildings/Buildings.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
export function incBuildingCount(x: any): void;
|
||||
export function handleBuildingsIncome(tick: any): void;
|
||||
export let buildingsCount: number;
|
10
src/Game/Camera/Camera.d.ts
vendored
10
src/Game/Camera/Camera.d.ts
vendored
@ -1,10 +0,0 @@
|
||||
export function calculateViewportFromCamera(): void;
|
||||
/**
|
||||
*
|
||||
* @param {Number} x
|
||||
* @param {Number} y
|
||||
*/
|
||||
export function screenToWorldCoordinates(x: number, y: number): {
|
||||
x: number;
|
||||
y: number;
|
||||
};
|
2
src/Game/Game.d.ts
vendored
2
src/Game/Game.d.ts
vendored
@ -1,2 +0,0 @@
|
||||
export function generateWorld(): void;
|
||||
export function initGame(): Promise<void>;
|
44
src/Game/GlobalVariables/GlobalVariables.d.ts
vendored
44
src/Game/GlobalVariables/GlobalVariables.d.ts
vendored
@ -1,44 +0,0 @@
|
||||
export function setBC_VIEWPORT(viewport: any): void;
|
||||
export function setBC_WORLD(world: any): void;
|
||||
export function setBC_SELECTION(selection: any): void;
|
||||
export function setNewPRNG(prng: any): void;
|
||||
/**
|
||||
* {PIXI.Container}
|
||||
*/
|
||||
export let BC_VIEWPORT: any;
|
||||
/**
|
||||
* {PIXI.Container}
|
||||
*/
|
||||
export let BC_WORLD: any;
|
||||
/**
|
||||
* {PIXI.Container}
|
||||
*/
|
||||
export let BC_SELECTION: any;
|
||||
export namespace BC_TERRAIN_SETTINGS {
|
||||
let tileSize: number;
|
||||
let scale: number;
|
||||
}
|
||||
export namespace BC_SPRITES_SETTINGS {
|
||||
export let defaultSize: number;
|
||||
let scale_1: number;
|
||||
export { scale_1 as scale };
|
||||
}
|
||||
export namespace BC_CHUNKS_SETTINGS {
|
||||
let width: number;
|
||||
let height: number;
|
||||
}
|
||||
export namespace BC_CAMERA {
|
||||
namespace position {
|
||||
let x: number;
|
||||
let y: number;
|
||||
}
|
||||
namespace offset_position {
|
||||
let x_1: number;
|
||||
export { x_1 as x };
|
||||
let y_1: number;
|
||||
export { y_1 as y };
|
||||
}
|
||||
let zoom: number;
|
||||
}
|
||||
export let PRNG: any;
|
||||
export const BC_BUILDING_PLACEHOLDERS: any[];
|
12
src/Game/InputController/InputController.d.ts
vendored
12
src/Game/InputController/InputController.d.ts
vendored
@ -1,12 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* @param {String} key
|
||||
* @param {_binding_types} type
|
||||
* @param {Array} event
|
||||
*/
|
||||
export function createKeyboardBinding(key: string, type: {
|
||||
Up: string;
|
||||
Down: string;
|
||||
Hold: string;
|
||||
}, events: any): void;
|
||||
export function inputControllerTick(deltaTime: any): void;
|
7
src/Game/Profiler/Profiler.d.ts
vendored
7
src/Game/Profiler/Profiler.d.ts
vendored
@ -1,7 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* @param {PIXI._Ticker} tick
|
||||
*/
|
||||
export function profileFPS(tick: PIXI._Ticker): void;
|
||||
export function printOnScreenDebugMessage(text: any, time: any): void;
|
||||
export function profileDebugMessages(tick: any): void;
|
7
src/Game/UIPipes/UIPipes.d.ts
vendored
7
src/Game/UIPipes/UIPipes.d.ts
vendored
@ -1,7 +0,0 @@
|
||||
export const UIMainPipe: StateStorage;
|
||||
export const UIAssetsLoaderInfoPipe: StateStorage;
|
||||
export const UIGameProfilerPipe: StateStorage;
|
||||
export const UISelectionInfo: StateStorage;
|
||||
export const UICameraInfo: StateStorage;
|
||||
export const UIObtainedResourcesPipe: StateStorage;
|
||||
import { StateStorage } from "../Utils/Storage.util";
|
1
src/Game/Utils/Assets.utils.d.ts
vendored
1
src/Game/Utils/Assets.utils.d.ts
vendored
@ -1 +0,0 @@
|
||||
export function loadPixelAsset(source?: string): Promise<any>;
|
69
src/Game/Utils/Math.utils.d.ts
vendored
69
src/Game/Utils/Math.utils.d.ts
vendored
@ -1,69 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* @param {Point2D} pointA
|
||||
* @param {Point2D} pointB
|
||||
* @param {Number} a
|
||||
* @returns
|
||||
*/
|
||||
export function interpolate2D(pointA: Point2D, pointB: Point2D, a: number): Point2D;
|
||||
/**
|
||||
*
|
||||
* @param {Number} num
|
||||
* @param {Number} min
|
||||
* @param {Number} max
|
||||
* @returns
|
||||
*/
|
||||
export function clampNumber(num: number, min: number, max: number): number;
|
||||
/**
|
||||
*
|
||||
* @param {Point2D} point
|
||||
* @param {Point2D} min
|
||||
* @param {Point2D} max
|
||||
* @returns
|
||||
*/
|
||||
export function clamp2D(point: Point2D, min: Point2D, max: Point2D): Point2D;
|
||||
/**
|
||||
*
|
||||
* @param {Number} x
|
||||
* @param {Number} y
|
||||
* @param {Number} a
|
||||
* @returns
|
||||
*/
|
||||
export function interpolate(x: number, y: number, a: number): number;
|
||||
/**
|
||||
* Returns a random integer between min (inclusive) and max (inclusive).
|
||||
* The value is no lower than min (or the next integer greater than min
|
||||
* if min isn't an integer) and no greater than max (or the next integer
|
||||
* lower than max if max isn't an integer).
|
||||
* @param {Number} min
|
||||
* @param {Number} max
|
||||
* @returns
|
||||
*/
|
||||
export function getRandomInt(min: number, max: number): number;
|
||||
/**
|
||||
*
|
||||
* @param {Array} array
|
||||
* @returns
|
||||
*/
|
||||
export function selectRandom(array: any[]): any;
|
||||
/**
|
||||
*
|
||||
* @param {Number} val
|
||||
* @param {Number} by
|
||||
* @returns
|
||||
*/
|
||||
export function integerDivision(val: number, by: number): number;
|
||||
export class Point2D {
|
||||
/**
|
||||
* Point2D object
|
||||
* @param {Number} x
|
||||
* @param {Number} y
|
||||
*/
|
||||
constructor(x?: number, y?: number);
|
||||
_x: number;
|
||||
_y: number;
|
||||
getX(): number;
|
||||
setX(x: any): void;
|
||||
getY(): number;
|
||||
setY(y: any): void;
|
||||
}
|
0
src/Game/Utils/PRNG.utils.d.ts
vendored
0
src/Game/Utils/PRNG.utils.d.ts
vendored
8
src/Game/Utils/Sprites.utils.d.ts
vendored
8
src/Game/Utils/Sprites.utils.d.ts
vendored
@ -1,8 +0,0 @@
|
||||
/**
|
||||
* Creates new PIXI.Sprite object from existing SpriteSheet (Atlas)
|
||||
* @param {String} source
|
||||
* @param {PIXI.Rectangle} rectangle
|
||||
* @returns
|
||||
*/
|
||||
export function getSpriteFromAtlas(source: string, rectangle: PIXI.Rectangle): PIXI.Sprite;
|
||||
import * as PIXI from "../../pixi/pixi.mjs";
|
33
src/Game/Utils/Storage.util.d.ts
vendored
33
src/Game/Utils/Storage.util.d.ts
vendored
@ -1,33 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* @param {Object} states
|
||||
*/
|
||||
export function StateStorage(states: Object): void;
|
||||
export class StateStorage {
|
||||
/**
|
||||
*
|
||||
* @param {Object} states
|
||||
*/
|
||||
constructor(states: Object);
|
||||
states: {
|
||||
constructor: Function;
|
||||
toString(): string;
|
||||
toLocaleString(): string;
|
||||
valueOf(): Object;
|
||||
hasOwnProperty(v: PropertyKey): boolean;
|
||||
isPrototypeOf(v: Object): boolean;
|
||||
propertyIsEnumerable(v: PropertyKey): boolean;
|
||||
};
|
||||
listeners: any[];
|
||||
subscribe: (func: any) => void;
|
||||
update: (changes: any) => void;
|
||||
get: () => {
|
||||
constructor: Function;
|
||||
toString(): string;
|
||||
toLocaleString(): string;
|
||||
valueOf(): Object;
|
||||
hasOwnProperty(v: PropertyKey): boolean;
|
||||
isPrototypeOf(v: Object): boolean;
|
||||
propertyIsEnumerable(v: PropertyKey): boolean;
|
||||
};
|
||||
}
|
1
src/Game/Utils/World.utils.d.ts
vendored
1
src/Game/Utils/World.utils.d.ts
vendored
@ -1 +0,0 @@
|
||||
export function addToViewport(object: any): void;
|
1
src/Game/Viewport/Viewport.d.ts
vendored
1
src/Game/Viewport/Viewport.d.ts
vendored
@ -1 +0,0 @@
|
||||
export {};
|
2
src/Game/WorldChunk/WorldChunk.d.ts
vendored
2
src/Game/WorldChunk/WorldChunk.d.ts
vendored
@ -1,2 +0,0 @@
|
||||
export function createWorldChunk(): PIXI.Container;
|
||||
import * as PIXI from "../../pixi/pixi.mjs";
|
80
src/Game/WorldGeneration/WorldGeneration.d.ts
vendored
80
src/Game/WorldGeneration/WorldGeneration.d.ts
vendored
@ -1,80 +0,0 @@
|
||||
export function worldCoordinatesToChunkIndex(x: any, y: any): {
|
||||
x: number;
|
||||
y: number;
|
||||
};
|
||||
export function worldCoordinatesToChunkIndexesCoordinates(x: any, y: any): {
|
||||
x: number;
|
||||
y: number;
|
||||
};
|
||||
export function worldCoordinatesToChunkLocalCoordinates(x: any, y: any): {
|
||||
x: number;
|
||||
y: number;
|
||||
};
|
||||
/**
|
||||
*
|
||||
* @param {Number} x world coordinates
|
||||
* @param {Number} y world coordinates
|
||||
*/
|
||||
export function getChunk(x: number, y: number): any;
|
||||
export function updateChunksVisibility(): void;
|
||||
/**
|
||||
*
|
||||
* @param {*} chunk from WORLD_CHUNKS
|
||||
* @param {PIXI.Container} object
|
||||
* @param {*} props any props
|
||||
* @param {Number} ceiledX
|
||||
* @param {Number} ceiledY
|
||||
*/
|
||||
export function addToTerrain(chunk: any, object: PIXI.Container, props: any, ceiledX: number, ceiledY: number): void;
|
||||
/**
|
||||
*
|
||||
* @param {*} chunk from WORLD_CHUNKS
|
||||
* @param {PIXI.Container} object
|
||||
* @param {*} props any props
|
||||
* @param {Number} ceiledX
|
||||
* @param {Number} ceiledY
|
||||
*/
|
||||
export function addToVegetation(chunk: any, object: PIXI.Container, props: any, ceiledX: number, ceiledY: number): void;
|
||||
/**
|
||||
*
|
||||
* @param {*} chunk from WORLD_CHUNKS
|
||||
* @param {PIXI.Container} object
|
||||
* @param {*} props any props
|
||||
* @param {Number} ceiledX
|
||||
* @param {Number} ceiledY
|
||||
*/
|
||||
export function addToBuildings(chunk: any, object: PIXI.Container, props: any, ceiledX: number, ceiledY: number): void;
|
||||
/**
|
||||
*
|
||||
* @param {Number} x world coordinates
|
||||
* @param {Number} y world coordinates
|
||||
* @param {PIXI.Container} object object to remove
|
||||
*/
|
||||
export function removeFromTerrain(x: number, y: number, object: PIXI.Container): void;
|
||||
/**
|
||||
*
|
||||
* @param {Number} x world coordinates
|
||||
* @param {Number} y world coordinates
|
||||
* @param {PIXI.Container} object object to remove
|
||||
*/
|
||||
export function removeFromVegetation(x: number, y: number, object: PIXI.Container): void;
|
||||
/**
|
||||
*
|
||||
* @param {Number} x world coordinates
|
||||
* @param {Number} y world coordinates
|
||||
*/
|
||||
export function getObjectFromTerrainLayer(x: number, y: number): any;
|
||||
/**
|
||||
*
|
||||
* @param {Number} x world coordinates
|
||||
* @param {Number} y world coordinates
|
||||
*/
|
||||
export function getObjectFromVegetationLayer(x: number, y: number): any;
|
||||
/**
|
||||
*
|
||||
* @param {Number} x world coordinates
|
||||
* @param {Number} y world coordinates
|
||||
*/
|
||||
export function getObjectFromBuildingsLayer(x: number, y: number): any;
|
||||
export function createFirstWorldChunks(): void;
|
||||
import * as PIXI from "../../pixi/pixi.mjs";
|
2
src/UI/GlobalNamespace/GlobalNamespace.d.ts
vendored
2
src/UI/GlobalNamespace/GlobalNamespace.d.ts
vendored
@ -1,2 +0,0 @@
|
||||
export const UIGlobalPipe: StateStorage;
|
||||
import { StateStorage } from "../../Game/Utils/Storage.util";
|
0
src/main.d.ts
vendored
0
src/main.d.ts
vendored
Loading…
x
Reference in New Issue
Block a user