From 881449a60b0d3a23046c2bd43850b696aa790386 Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Tue, 14 Oct 2025 12:50:21 +0200 Subject: [PATCH] Updated c3 to r457 that introduces vertex colors also to editor SDK. --- .../Follow/IFollowBehaviorInstance.d.ts | 2 +- .../ts-defs/editor/IBehaviorBase.d.ts | 2 +- .../ts-defs/editor/IInstanceBase.d.ts | 2 +- .../ts-defs/editor/gfx/IWebGLRenderer.d.ts | 4 +- .../ts-defs/editor/misc/IZipFileEntry.d.ts | 2 +- .../ts-defs/editor/model/IProject.d.ts | 2 +- .../ts-defs/editor/objects/IAnimation.d.ts | 2 +- .../editor/objects/IObjectInstance.d.ts | 2 +- .../ts-defs/editor/objects/IObjectType.d.ts | 2 +- .../spine-construct3/ts-defs/editor/sdk.d.ts | 5 +-- .../ts-defs/editor/ui/ILayoutView.d.ts | 2 +- .../ICGSObjectType.d.ts | 4 +- .../MultiplayerSignallingState.d.ts | 2 +- .../ts-defs/runtime/IAssetManager.d.ts | 9 ++++- .../ts-defs/runtime/IBehaviorInstance.d.ts | 2 +- .../ts-defs/runtime/IFamily.d.ts | 2 +- .../ts-defs/runtime/IInstance.d.ts | 2 +- .../ts-defs/runtime/ILayer.d.ts | 2 +- .../runtime/ILoopingConditionContext.d.ts | 4 +- .../ts-defs/runtime/IObjectType.d.ts | 2 +- .../ts-defs/runtime/IRuntime.d.ts | 2 +- .../ts-defs/runtime/ISDKBehaviorBase.d.ts | 2 +- .../ts-defs/runtime/ISDKBehaviorTypeBase.d.ts | 2 +- .../ts-defs/runtime/ISDKDOMInstanceBase.d.ts | 2 +- .../ts-defs/runtime/ISDKInstanceBase.d.ts | 39 +++++++++---------- .../ts-defs/runtime/ISDKPluginBase.d.ts | 2 +- .../ts-defs/runtime/ISDKUtils.d.ts | 4 +- .../ts-defs/runtime/ITimelineStateBase.d.ts | 2 +- 28 files changed, 59 insertions(+), 52 deletions(-) diff --git a/spine-ts/spine-construct3/ts-defs/behaviors/Follow/IFollowBehaviorInstance.d.ts b/spine-ts/spine-construct3/ts-defs/behaviors/Follow/IFollowBehaviorInstance.d.ts index 8df8043b5..c9050c524 100644 --- a/spine-ts/spine-construct3/ts-defs/behaviors/Follow/IFollowBehaviorInstance.d.ts +++ b/spine-ts/spine-construct3/ts-defs/behaviors/Follow/IFollowBehaviorInstance.d.ts @@ -27,6 +27,6 @@ declare class IFollowBehaviorInstance extends IBehaviorInstance extends ObjectClassEve "signinpopupblocked": ConstructEvent } -declare class ICGSObjectType extends IObjectType> +declare class ICGSObjectType extends IObjectType> { addEventListener>(type: K, listener: (ev: CGSObjectTypeEventMap[K]) => any): void; removeEventListener>(type: K, listener: (ev: CGSObjectTypeEventMap[K]) => any): void; @@ -65,7 +65,7 @@ declare class ICGSObjectType extends IOb readonly playerName: string; readonly gameId: string; readonly sessionKey: string; - + signInWithProvider(provider: CGSSignInProvider, gameId: string, opts?: CGSSignInOptions): Promise; retryOpenSignInPopup(): void; signInPersistent(gameId: string): Promise; diff --git a/spine-ts/spine-construct3/ts-defs/plugins/Multiplayer/MultiplayerSignallingState.d.ts b/spine-ts/spine-construct3/ts-defs/plugins/Multiplayer/MultiplayerSignallingState.d.ts index 5baed1c3a..6e33db320 100644 --- a/spine-ts/spine-construct3/ts-defs/plugins/Multiplayer/MultiplayerSignallingState.d.ts +++ b/spine-ts/spine-construct3/ts-defs/plugins/Multiplayer/MultiplayerSignallingState.d.ts @@ -68,7 +68,7 @@ declare class MultiplayerSignallingState extends ConstructEventTarget; autoJoinRoom(game: string, instance: string, room: string, maxClients?: number, isLocking?: boolean): Promise; leaveRoom(): Promise; - + requestGameInstanceList(game: string): Promise; requestRoomList(game: string, instance: string, type: MultiplayerRoomListType): Promise; } diff --git a/spine-ts/spine-construct3/ts-defs/runtime/IAssetManager.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/IAssetManager.d.ts index 0d1a6e111..33e714170 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/IAssetManager.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/IAssetManager.d.ts @@ -1,4 +1,9 @@ +interface ProjectFileListEntry { + name: string; + size: number; +} + /** Provides access to the project's assets. * @see {@link https://www.construct.net/make-games/manuals/construct-3/scripting/scripting-reference/interfaces/iassetmanager | IAssetManager documentation } */ declare class IAssetManager @@ -17,7 +22,7 @@ declare class IAssetManager getProjectFileUrl(url: string): Promise; getMediaFileUrl(url: string): Promise; readonly mediaFolder: string; - + /** * @deprecated All supported platforms now support WebM Opus, so use the Web Audio API decodeAudioData() method instead. */ @@ -26,4 +31,6 @@ declare class IAssetManager loadScripts(...urls: string[]): Promise; compileWebAssembly(url: string): Promise; loadStyleSheet(url: string): Promise; + + readonly projectFileList: ProjectFileListEntry[]; } diff --git a/spine-ts/spine-construct3/ts-defs/runtime/IBehaviorInstance.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/IBehaviorInstance.d.ts index c224fe269..42c672924 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/IBehaviorInstance.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/IBehaviorInstance.d.ts @@ -5,7 +5,7 @@ declare class BehaviorInstanceEvent implements ConstructE } interface BehaviorInstanceEventMap { - + } /** Represents an instance of a behavior associated with a specific object instance. diff --git a/spine-ts/spine-construct3/ts-defs/runtime/IFamily.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/IFamily.d.ts index 8ce56f1d8..a88a8661d 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/IFamily.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/IFamily.d.ts @@ -1,6 +1,6 @@ /** Represents a family in the project. * @see {@link https://www.construct.net/en/make-games/manuals/construct-3/scripting/scripting-reference/object-interfaces/ifamily | IFamily documentation } */ -declare class IFamily> extends IObjectClass +declare class IFamily> extends IObjectClass { /** Get an array with a list of object types that belong to this family. */ getAllObjectTypes(): IObjectType[]; diff --git a/spine-ts/spine-construct3/ts-defs/runtime/IInstance.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/IInstance.d.ts index 73dc6d3e4..c13f35c8c 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/IInstance.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/IInstance.d.ts @@ -20,7 +20,7 @@ declare class IInstance addEventListener>(type: K, listener: (ev: InstanceEventMap[K]) => any): void; removeEventListener>(type: K, listener: (ev: InstanceEventMap[K]) => any): void; dispatchEvent(evt: ConstructEvent): void; - + readonly runtime: IRuntime; readonly objectType: IObjectType; readonly plugin: IPlugin_; diff --git a/spine-ts/spine-construct3/ts-defs/runtime/ILayer.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/ILayer.d.ts index c80a6256e..184e2b65e 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/ILayer.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/ILayer.d.ts @@ -16,7 +16,7 @@ declare class ILayer extends ConstructEventTarget readonly name: string; readonly layout: IAnyProjectLayout; readonly index: number; - + isVisible: boolean; readonly isSelfAndParentsVisible: boolean; isInteractive: boolean; diff --git a/spine-ts/spine-construct3/ts-defs/runtime/ILoopingConditionContext.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/ILoopingConditionContext.d.ts index 45ea8f462..d332f1025 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/ILoopingConditionContext.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/ILoopingConditionContext.d.ts @@ -3,8 +3,8 @@ declare class ILoopingConditionContext { retrigger(): void; - + readonly isStopped: boolean; - + release(): void; } diff --git a/spine-ts/spine-construct3/ts-defs/runtime/IObjectType.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/IObjectType.d.ts index 50c76128b..63b64802e 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/IObjectType.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/IObjectType.d.ts @@ -1,6 +1,6 @@ /** Represents an object type in the project. * @see {@link https://www.construct.net/en/make-games/manuals/construct-3/scripting/scripting-reference/object-interfaces/iobjecttype | IObjectType documentation } */ -declare class IObjectType> extends IObjectClass +declare class IObjectType> extends IObjectClass { /** Set the instance class for this object type. Used for subclassing. * @see {@link https://www.construct.net/en/make-games/manuals/construct-3/scripting/guides/subclassing-instances | Subclassing instances} */ diff --git a/spine-ts/spine-construct3/ts-defs/runtime/IRuntime.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/IRuntime.d.ts index d14d0da55..3b701be17 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/IRuntime.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/IRuntime.d.ts @@ -188,7 +188,7 @@ declare class IRuntime extends ConstructEventTarget signal(tag: string): void; waitForSignal(tag: string): Promise; - + /** When called from an event sheet, sets the current function return value, * much like the 'Set return value' action. */ setReturnValue(value: number | string): void; diff --git a/spine-ts/spine-construct3/ts-defs/runtime/ISDKBehaviorBase.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/ISDKBehaviorBase.d.ts index 6e9b5c658..83b5f67cc 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/ISDKBehaviorBase.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/ISDKBehaviorBase.d.ts @@ -3,7 +3,7 @@ * @see {@link https://www.construct.net/en/make-games/manuals/construct-3/scripting/scripting-reference/addon-sdk-interfaces/isdkbehaviorbase | ISDKBehaviorBase documentation } */ declare class ISDKBehaviorBase_ extends IBehavior_ { - + } declare var ISDKBehaviorBase: typeof ISDKBehaviorBase_; diff --git a/spine-ts/spine-construct3/ts-defs/runtime/ISDKBehaviorTypeBase.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/ISDKBehaviorTypeBase.d.ts index 29f284b28..dbd953db6 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/ISDKBehaviorTypeBase.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/ISDKBehaviorTypeBase.d.ts @@ -5,5 +5,5 @@ declare class ISDKBehaviorTypeBase_ extends IBehaviorType { _onCreate(): void; } - + declare var ISDKBehaviorTypeBase: typeof ISDKBehaviorTypeBase_; diff --git a/spine-ts/spine-construct3/ts-defs/runtime/ISDKDOMInstanceBase.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/ISDKDOMInstanceBase.d.ts index 47e9c6a94..8118d623f 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/ISDKDOMInstanceBase.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/ISDKDOMInstanceBase.d.ts @@ -4,7 +4,7 @@ declare class ISDKDOMInstanceBase_ extends ISDKWorldInstanceBase { constructor(opts: { domComponentId: string }); - + _postToDOMElement(handler: string, data: JSONValue): void; _postToDOMElementAsync(handler: string, data: JSONValue): Promise; _postToDOMElementMaybeSync(handler: string, data: JSONValue): void; diff --git a/spine-ts/spine-construct3/ts-defs/runtime/ISDKInstanceBase.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/ISDKInstanceBase.d.ts index ed7ad9d11..6b698ff6a 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/ISDKInstanceBase.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/ISDKInstanceBase.d.ts @@ -8,40 +8,40 @@ declare class ISDKInstanceBase_ extends IInstance { constructor(opts?: { domComponentId?: string, wrapperComponentId?: string }); - + readonly objectType: ISDKObjectTypeBase_; - + _release(): void; _getInitProperties(): SDKPropertyType[]; _trigger(method: Function): void; _triggerAsync(method: Function): Promise; - + _setTicking(isTicking: boolean): void; _setTicking2(isTicking: boolean): void; _isTicking(): boolean; _isTicking2(): boolean; - + _tick(): void; _tick2(): void; - + _getDebuggerProperties(): any[]; - + _saveToJson(): JSONValue; _loadFromJson(o: JSONValue): void; - + // DOM methods _addDOMMessageHandler(handler: string, callback: (e: JSONValue) => void): void; _addDOMMessageHandlers(arr: Array<[string, (e: JSONValue) => void]>): void; - + _postToDOM(handler: string, data?: JSONValue): void; _postToDOMAsync(handler: string, data?: JSONValue): Promise; _postToDOMMaybeSync(handler: string, data?: JSONValue): void; - + // Wrapper extension methods _isWrapperExtensionAvailable(): boolean; _addWrapperExtensionMessageHandler(messageId: string, callback: (e: JSONValue) => void): void; _addWrapperMessageHandlers(arr: Array<[string, (e: JSONValue) => void]>): void; - + _sendWrapperExtensionMessage(messageId: string, params?: WrapperExtensionParameterType[]): void; _sendWrapperExtensionMessageAsync(messageId: string, params?: WrapperExtensionParameterType[]): Promise; } @@ -49,41 +49,40 @@ declare class ISDKInstanceBase_ extends IInstance declare class IWorldInstanceSDKBase_ extends IWorldInstance { readonly objectType: ISDKObjectTypeBase_; - + _release(): void; _getInitProperties(): SDKPropertyType[]; _trigger(method: Function): void; - + _setTicking(isTicking: boolean): void; _setTicking2(isTicking: boolean): void; _isTicking(): boolean; _isTicking2(): boolean; - + _tick(): void; _tick2(): void; - + _getDebuggerProperties(): any[]; - + _saveToJson(): JSONValue; _loadFromJson(o: JSONValue): void; - + // DOM methods _addDOMMessageHandler(handler: string, callback: (e: JSONValue) => void): void; _addDOMMessageHandlers(arr: Array<[string, (e: JSONValue) => void]>): void; - + _postToDOM(handler: string, data: JSONValue): void; _postToDOMAsync(handler: string, data: JSONValue): Promise; _postToDOMMaybeSync(handler: string, data: JSONValue): void; - + // Wrapper extension methods _isWrapperExtensionAvailable(): boolean; _addWrapperExtensionMessageHandler(messageId: string, callback: (e: JSONValue) => void): void; _addWrapperMessageHandlers(arr: Array<[string, (e: JSONValue) => void]>): void; - + _sendWrapperExtensionMessage(messageId: string, params?: WrapperExtensionParameterType[]): void; _sendWrapperExtensionMessageAsync(messageId: string, params?: WrapperExtensionParameterType[]): Promise; } declare var ISDKInstanceBase: typeof ISDKInstanceBase_; declare var IWorldInstanceSDKBase: typeof IWorldInstanceSDKBase_; - \ No newline at end of file diff --git a/spine-ts/spine-construct3/ts-defs/runtime/ISDKPluginBase.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/ISDKPluginBase.d.ts index 59c99258e..62ee4d359 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/ISDKPluginBase.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/ISDKPluginBase.d.ts @@ -3,7 +3,7 @@ * @see {@link https://www.construct.net/en/make-games/manuals/construct-3/scripting/scripting-reference/addon-sdk-interfaces/isdkbehaviorbase | ISDKPluginBase documentation } */ declare class ISDKPluginBase_ extends IPlugin_ { - + } declare var ISDKPluginBase: typeof ISDKPluginBase_; diff --git a/spine-ts/spine-construct3/ts-defs/runtime/ISDKUtils.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/ISDKUtils.d.ts index ad188dc12..d2fcb0c15 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/ISDKUtils.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/ISDKUtils.d.ts @@ -2,8 +2,10 @@ /** Utility class for scripting APIs intended for the Addon SDK. */ declare class ISDKUtils { + readonly constructVersionCode: number; + updateRender(): void; - + addLoadPromise(promise: Promise): void; sendWrapperExtensionMessage(wrapperComponentId: string, messageId: string, params?: WrapperExtensionParameterType[]): void; diff --git a/spine-ts/spine-construct3/ts-defs/runtime/ITimelineStateBase.d.ts b/spine-ts/spine-construct3/ts-defs/runtime/ITimelineStateBase.d.ts index c9a3c31be..d60a7e28e 100644 --- a/spine-ts/spine-construct3/ts-defs/runtime/ITimelineStateBase.d.ts +++ b/spine-ts/spine-construct3/ts-defs/runtime/ITimelineStateBase.d.ts @@ -12,7 +12,7 @@ declare class ITimelineStateBase isLooping: boolean; isPingPong: boolean; playbackRate: number; - + readonly progress: number; readonly tags: string; readonly finished: Promise;