angry-pixel 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/component/Animator.d.ts +5 -2
- package/lib/component/Button.d.ts +42 -0
- package/lib/component/Transform.d.ts +1 -0
- package/lib/component/rendering/tilemap/TileData.d.ts +9 -6
- package/lib/core/Game.d.ts +5 -2
- package/lib/core/GameActor.d.ts +33 -4
- package/lib/core/GameObject.d.ts +26 -4
- package/lib/core/facades/GameObjectManagerFacade.d.ts +7 -1
- package/lib/core/managers/AssetManager.d.ts +5 -2
- package/lib/core/managers/GameObjectManager.d.ts +1 -1
- package/lib/core/managers/HeadlessIterationManager.d.ts +29 -0
- package/lib/core/managers/IterationManager.d.ts +8 -1
- package/lib/core/managers/SceneManager.d.ts +4 -3
- package/lib/core/managers/headless/HeadlessIterationManager.d.ts +29 -0
- package/lib/core/managers/headless/HeadlessRenderManager.d.ts +10 -0
- package/lib/core/managers/iteration/BrowserIterationManager.d.ts +35 -0
- package/lib/core/managers/iteration/FrameEvent.d.ts +13 -0
- package/lib/core/managers/iteration/HeadlessIterationManager.d.ts +29 -0
- package/lib/core/managers/iteration/IIterationManager.d.ts +7 -0
- package/lib/index.cjs.js +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/math/Rectangle.d.ts +9 -2
- package/lib/rendering/RenderManager.d.ts +8 -1
- package/package.json +1 -1
package/lib/math/Rectangle.d.ts
CHANGED
|
@@ -41,10 +41,17 @@ export declare class Rectangle {
|
|
|
41
41
|
*/
|
|
42
42
|
updateFromRect(rect: Rectangle): void;
|
|
43
43
|
/**
|
|
44
|
-
* Check if the rectangle is overlapping
|
|
44
|
+
* Check if the target rectangle is overlapping
|
|
45
45
|
*
|
|
46
46
|
* @param rect The rectangle to compare
|
|
47
47
|
* @returns TRUE or FALSE
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
overlapRectangle(rect: Rectangle): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Check if the target vector is overlapping
|
|
52
|
+
*
|
|
53
|
+
* @param vector The target vector
|
|
54
|
+
* @returns TRUE or FALSE
|
|
55
|
+
*/
|
|
56
|
+
overlapVector(vector: Vector2): boolean;
|
|
50
57
|
}
|
|
@@ -2,7 +2,14 @@ import { ContextRenderer } from "./ContextRenderer";
|
|
|
2
2
|
import { RenderData } from "./renderData/RenderData";
|
|
3
3
|
import { CameraData } from "./CameraData";
|
|
4
4
|
import { CullingService } from "./CullingService";
|
|
5
|
-
export
|
|
5
|
+
export interface IRenderManager {
|
|
6
|
+
clearCanvas(): void;
|
|
7
|
+
addRenderData(renderData: RenderData): void;
|
|
8
|
+
addCameraData(cameraData: CameraData): void;
|
|
9
|
+
render(): void;
|
|
10
|
+
clearData(): void;
|
|
11
|
+
}
|
|
12
|
+
export declare class RenderManager implements IRenderManager {
|
|
6
13
|
private renderer;
|
|
7
14
|
private cullingService;
|
|
8
15
|
private canvasColor;
|