Skip to content

Commit 4d2703c

Browse files
Move RPG to root
1 parent 6bac9f9 commit 4d2703c

File tree

12 files changed

+56
-57
lines changed

12 files changed

+56
-57
lines changed
File renamed without changes.

lib/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export * from './RPG';
2+
13
export * from './rmmz_core';
24
export * from './rmmz_managers';
35
export * from './rmmz_objects';

lib/rmmz_core/Input.d.ts

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,51 @@
1-
import { RPG } from ".";
1+
interface InputGamepad {
2+
0: "ok"; // A
3+
1: "cancel"; // B
4+
2: "shift"; // X
5+
3: "menu"; // Y
6+
4: "pageup"; // LB
7+
5: "pagedown"; // RB
8+
12: "up"; // D-pad up
9+
13: "down"; // D-pad down
10+
14: "left"; // D-pad left
11+
15: "right"; // D-pad right
12+
}
13+
14+
interface InputKey {
15+
9: "tab"; // tab
16+
13: "ok"; // enter
17+
16: "shift"; // shift
18+
17: "control"; // control
19+
18: "control"; // alt
20+
27: "escape"; // escape
21+
32: "ok"; // space
22+
33: "pageup"; // pageup
23+
34: "pagedown"; // pagedown
24+
37: "left"; // left arrow
25+
38: "up"; // up arrow
26+
39: "right"; // right arrow
27+
40: "down"; // down arrow
28+
45: "escape"; // insert
29+
81: "pageup"; // Q
30+
87: "pagedown"; // W
31+
88: "escape"; // X
32+
90: "ok"; // Z
33+
96: "escape"; // numpad 0
34+
98: "down"; // numpad 2
35+
100: "left"; // numpad 4
36+
102: "right"; // numpad 6
37+
104: "up"; // numpad 8
38+
120: "debug"; // F9
39+
}
240

341
declare namespace Input {
442

543
export const date: number;
644
export const dir4: number;
745
export const dir8: number;
846

9-
export let gamepadMapper: RPG.InputGamepad;
10-
export let keyMapper: RPG.InputKey;
47+
export let gamepadMapper: InputGamepad;
48+
export let keyMapper: InputKey;
1149
export let keyRepeatInterval: number;
1250
export let keyRepeatWait: number;
1351

@@ -21,4 +59,8 @@ declare namespace Input {
2159

2260
}
2361

24-
export { Input };
62+
export {
63+
InputGamepad,
64+
InputKey,
65+
Input
66+
};

lib/rmmz_core/RPG.d.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

lib/rmmz_managers/globals.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { RPG } from './RPG';
1+
import { RPG } from '../RPG';
22

33
export declare const $dataActors: RPG.DataActor[];
44
export declare const $dataClasses: RPG.DataClass[];

lib/rmmz_managers/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export * from './EffectManager';
88
export * from './FontManager';
99
export * from './ImageManager';
1010
export * from './PluginManager';
11-
export * from './RPG';
1211
export * from './SceneManager';
1312
export * from './SoundManager';
1413
export * from './StorageManager';

lib/rmmz_objects/Game_Actor.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @author Brandt (Masked)
33
*/
44

5-
import { RPG } from '../rmmz_managers/RPG';
5+
import { RPG } from '../RPG';
66

77
import { Game_Battler, Game_Party, Game_Troop } from '.';
88

lib/rmmz_objects/Game_Battler.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @author Brandt (Masked)
33
*/
44

5-
import { RPG } from '../rmmz_managers';
5+
import { RPG } from '../RPG';
66

77
import { Game_BattlerBase, Game_Action, Game_Unit } from '.';
88

lib/rmmz_objects/Game_BattlerBase.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @author Brandt (Masked)
33
*/
44

5-
import { RPG } from "../rmmz_managers";
5+
import { RPG } from '../RPG';
66

77
import { Game_Actor } from './Game_Actor';
88
import { Game_Enemy } from './Game_Enemy';

lib/rmmz_objects/Game_Enemy.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
* @author Brandt (Masked)
33
*/
44

5-
import { RPG } from '../rmmz_managers/RPG';
5+
import { RPG } from '../RPG';
66

7-
import { Game_Battler } from '.';
7+
import { Game_Battler, Game_Party, Game_Troop } from '.';
88

99
declare namespace Game_Enemy {
1010
export enum ItemKind {

0 commit comments

Comments
 (0)