@wasm-gaming/rsdkv3-wasm 0.1.4 → 0.1.5

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.
@@ -1,76 +0,0 @@
1
- {
2
- "id": "rsdkv3",
3
- "version": "0.1.0",
4
- "name": "Retro Software Development Kit v3",
5
- "artifacts": {
6
- "wasm": "rsdkv3/rsdkv3.wasm",
7
- "js": "rsdkv3/rsdkv3.js"
8
- },
9
- "assets": [
10
- {
11
- "key": "data",
12
- "mountPath": "/data/Data.rsdk",
13
- "required": true,
14
- "accept": [
15
- ".rsdk"
16
- ],
17
- "description": "Sonic CD 2011 game data pack (Data.rsdk)."
18
- },
19
- {
20
- "key": "settings",
21
- "mountPath": "/data/settings.ini",
22
- "required": false,
23
- "accept": [
24
- ".ini"
25
- ],
26
- "description": "Engine settings. Omitted → the SDK generates one from config.options."
27
- }
28
- ],
29
- "input": "rsdkv4",
30
- "video": {
31
- "baseWidth": 426,
32
- "baseHeight": 240,
33
- "aspect": "16:9"
34
- },
35
- "options": {
36
- "type": "object",
37
- "additionalProperties": false,
38
- "properties": {
39
- "devMenu": {
40
- "type": "boolean",
41
- "default": false,
42
- "description": "RSDKv3's native in-canvas Dev Menu. The launcher provides its own overlay via instance.devMenu, so keep this off."
43
- },
44
- "engineDebugMode": {
45
- "type": "boolean",
46
- "default": false,
47
- "description": "Enables the web devmenu embind bridge (stage list / warp / pause)."
48
- },
49
- "vsync": {
50
- "type": "boolean",
51
- "default": false
52
- },
53
- "soundtrack": {
54
- "type": "integer",
55
- "minimum": 0,
56
- "maximum": 1,
57
- "default": 0,
58
- "description": "Sonic CD soundtrack selector: 0=JP/EU, 1=US."
59
- },
60
- "language": {
61
- "type": "integer",
62
- "minimum": 0,
63
- "default": 0
64
- },
65
- "disableTouchControls": {
66
- "type": "boolean",
67
- "default": true
68
- }
69
- }
70
- },
71
- "capabilities": {
72
- "saveStates": false,
73
- "sram": false,
74
- "coreSelectable": false
75
- }
76
- }
@@ -1,4 +0,0 @@
1
- import type { EngineManifest } from '@wasm-gaming/engine-specs';
2
- export declare const manifest: EngineManifest;
3
- export default manifest;
4
- //# sourceMappingURL=rsdkv3.manifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rsdkv3.manifest.d.ts","sourceRoot":"","sources":["../../src/rsdkv3.manifest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAGhE,eAAO,MAAM,QAAQ,EAAE,cAkCtB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,39 +0,0 @@
1
- // The rsdkv3 EngineManifest — typed against the contract, so a drift from
2
- // @wasm-gaming/engine-specs is a compile error here. `npm run build:manifest`
3
- // serializes this to dist/manifest.json (the artifact CI attaches to a Release).
4
- import { RSDKV3_OPTIONS_SCHEMA } from './rsdkv3.options.js';
5
- export const manifest = {
6
- id: 'rsdkv3',
7
- version: '0.1.0',
8
- name: 'Retro Software Development Kit v3',
9
- artifacts: {
10
- // Relative to the manifest (dist/manifest.json); the engine files live in
11
- // the dist/rsdkv3/ subfolder.
12
- wasm: 'rsdkv3/rsdkv3.wasm',
13
- js: 'rsdkv3/rsdkv3.js',
14
- },
15
- assets: [
16
- {
17
- key: 'data',
18
- // Lives under the OPFS-backed (persistent) working dir; the engine reads it
19
- // via CWD (booted with the UsingCWD arg).
20
- mountPath: '/data/Data.rsdk',
21
- required: true,
22
- accept: ['.rsdk'],
23
- description: 'Sonic CD 2011 game data pack (Data.rsdk).',
24
- },
25
- {
26
- key: 'settings',
27
- mountPath: '/data/settings.ini',
28
- required: false,
29
- accept: ['.ini'],
30
- description: 'Engine settings. Omitted → the SDK generates one from config.options.',
31
- },
32
- ],
33
- input: 'rsdkv4',
34
- video: { baseWidth: 426, baseHeight: 240, aspect: '16:9' },
35
- options: RSDKV3_OPTIONS_SCHEMA,
36
- capabilities: { saveStates: false, sram: false, coreSelectable: false },
37
- };
38
- export default manifest;
39
- //# sourceMappingURL=rsdkv3.manifest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rsdkv3.manifest.js","sourceRoot":"","sources":["../../src/rsdkv3.manifest.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,8EAA8E;AAC9E,iFAAiF;AAGjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,CAAC,MAAM,QAAQ,GAAmB;IACtC,EAAE,EAAE,QAAQ;IACZ,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,mCAAmC;IACzC,SAAS,EAAE;QACT,0EAA0E;QAC1E,8BAA8B;QAC9B,IAAI,EAAE,oBAAoB;QAC1B,EAAE,EAAE,kBAAkB;KACvB;IACD,MAAM,EAAE;QACN;YACE,GAAG,EAAE,MAAM;YACX,4EAA4E;YAC5E,0CAA0C;YAC1C,SAAS,EAAE,iBAAiB;YAC5B,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,CAAC,OAAO,CAAC;YACjB,WAAW,EACT,2CAA2C;SAC9C;QACD;YACE,GAAG,EAAE,UAAU;YACf,SAAS,EAAE,oBAAoB;YAC/B,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,WAAW,EACT,uEAAuE;SAC1E;KACF;IACD,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE;IAC1D,OAAO,EAAE,qBAAqB;IAC9B,YAAY,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE;CACxE,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,71 +0,0 @@
1
- export type AssetData = Uint8Array | ArrayBuffer | string;
2
- export interface EngineEventError {
3
- message?: string;
4
- }
5
- export type EngineEvent = {
6
- type: 'ready';
7
- } | {
8
- type: 'error';
9
- error: Error;
10
- } | {
11
- type: string;
12
- [key: string]: unknown;
13
- };
14
- export interface EngineConfig {
15
- canvas?: HTMLCanvasElement;
16
- assets?: {
17
- data?: AssetData;
18
- settings?: AssetData;
19
- };
20
- options?: unknown;
21
- onEvent?: (event: EngineEvent) => void;
22
- jsUrl?: string;
23
- wasmUrl?: string;
24
- persist?: 'opfs' | 'idbfs' | null;
25
- }
26
- export interface EngineInstance {
27
- start(): void;
28
- pause(): void;
29
- resume(): void;
30
- reset(): void;
31
- setInput(preset?: string): void;
32
- destroy(): void;
33
- }
34
- export interface JSONSchema {
35
- type?: string;
36
- additionalProperties?: boolean;
37
- properties?: Record<string, unknown>;
38
- }
39
- export interface EngineArtifacts {
40
- wasm: string;
41
- js: string;
42
- }
43
- export interface AssetSpec {
44
- key: string;
45
- mountPath: string;
46
- required: boolean;
47
- accept: string[];
48
- description?: string;
49
- }
50
- export interface VideoSpec {
51
- baseWidth: number;
52
- baseHeight: number;
53
- aspect: string;
54
- }
55
- export interface EngineCapabilities {
56
- saveStates: boolean;
57
- sram: boolean;
58
- coreSelectable: boolean;
59
- }
60
- export interface EngineManifest {
61
- id: string;
62
- version: string;
63
- name: string;
64
- artifacts: EngineArtifacts;
65
- assets: AssetSpec[];
66
- input: string;
67
- video: VideoSpec;
68
- options: JSONSchema;
69
- capabilities: EngineCapabilities;
70
- }
71
- //# sourceMappingURL=wasm-specs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wasm-specs.d.ts","sourceRoot":"","sources":["../../src/wasm-specs.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAAC;AAE1D,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,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AS;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,eAAe,CAAC;IAC3B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,UAAU,CAAC;IACpB,YAAY,EAAE,kBAAkB,CAAC;CAClC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=wasm-specs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wasm-specs.js","sourceRoot":"","sources":["../../src/wasm-specs.ts"],"names":[],"mappings":""}
@@ -1,44 +0,0 @@
1
- // The rsdkv3 EngineManifest — typed against the contract, so a drift from
2
- // @wasm-gaming/engine-specs is a compile error here. `npm run build:manifest`
3
- // serializes this to dist/manifest.json (the artifact CI attaches to a Release).
4
-
5
- import type { EngineManifest } from '@wasm-gaming/engine-specs';
6
- import { RSDKV3_OPTIONS_SCHEMA } from './rsdkv3.options.js';
7
-
8
- export const manifest: EngineManifest = {
9
- id: 'rsdkv3',
10
- version: '0.1.0',
11
- name: 'Retro Software Development Kit v3',
12
- artifacts: {
13
- // Relative to the manifest (dist/manifest.json); the engine files live in
14
- // the dist/rsdkv3/ subfolder.
15
- wasm: 'rsdkv3/rsdkv3.wasm',
16
- js: 'rsdkv3/rsdkv3.js',
17
- },
18
- assets: [
19
- {
20
- key: 'data',
21
- // Lives under the OPFS-backed (persistent) working dir; the engine reads it
22
- // via CWD (booted with the UsingCWD arg).
23
- mountPath: '/data/Data.rsdk',
24
- required: true,
25
- accept: ['.rsdk'],
26
- description:
27
- 'Sonic CD 2011 game data pack (Data.rsdk).',
28
- },
29
- {
30
- key: 'settings',
31
- mountPath: '/data/settings.ini',
32
- required: false,
33
- accept: ['.ini'],
34
- description:
35
- 'Engine settings. Omitted → the SDK generates one from config.options.',
36
- },
37
- ],
38
- input: 'rsdkv4',
39
- video: { baseWidth: 426, baseHeight: 240, aspect: '16:9' },
40
- options: RSDKV3_OPTIONS_SCHEMA,
41
- capabilities: { saveStates: false, sram: false, coreSelectable: false },
42
- };
43
-
44
- export default manifest;
package/src/wasm-specs.ts DELETED
@@ -1,72 +0,0 @@
1
- export type AssetData = Uint8Array | ArrayBuffer | string;
2
-
3
- export interface EngineEventError {
4
- message?: string;
5
- }
6
-
7
- export type EngineEvent =
8
- | { type: 'ready' }
9
- | { type: 'error'; error: Error }
10
- | { type: string; [key: string]: unknown };
11
-
12
- export interface EngineConfig {
13
- canvas?: HTMLCanvasElement;
14
- assets?: { data?: AssetData; settings?: AssetData };
15
- options?: unknown;
16
- onEvent?: (event: EngineEvent) => void;
17
- jsUrl?: string;
18
- wasmUrl?: string;
19
- persist?: 'opfs' | 'idbfs' | null;
20
- }
21
-
22
- export interface EngineInstance {
23
- start(): void;
24
- pause(): void;
25
- resume(): void;
26
- reset(): void;
27
- setInput(preset?: string): void;
28
- destroy(): void;
29
- }
30
-
31
- export interface JSONSchema {
32
- type?: string;
33
- additionalProperties?: boolean;
34
- properties?: Record<string, unknown>;
35
- }
36
-
37
- export interface EngineArtifacts {
38
- wasm: string;
39
- js: string;
40
- }
41
-
42
- export interface AssetSpec {
43
- key: string;
44
- mountPath: string;
45
- required: boolean;
46
- accept: string[];
47
- description?: string;
48
- }
49
-
50
- export interface VideoSpec {
51
- baseWidth: number;
52
- baseHeight: number;
53
- aspect: string;
54
- }
55
-
56
- export interface EngineCapabilities {
57
- saveStates: boolean;
58
- sram: boolean;
59
- coreSelectable: boolean;
60
- }
61
-
62
- export interface EngineManifest {
63
- id: string;
64
- version: string;
65
- name: string;
66
- artifacts: EngineArtifacts;
67
- assets: AssetSpec[];
68
- input: string;
69
- video: VideoSpec;
70
- options: JSONSchema;
71
- capabilities: EngineCapabilities;
72
- }