mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 02:36:56 +08:00
Updated c3 to r459 that introduces multiply and screen blending modes.
This commit is contained in:
parent
4b80ec9a81
commit
e4f6d229c1
@ -27,6 +27,6 @@ declare class IFollowBehaviorInstance<InstType> extends IBehaviorInstance<InstTy
|
|||||||
|
|
||||||
saveHistoryToJSON(maxDelay?: number): JSONValue;
|
saveHistoryToJSON(maxDelay?: number): JSONValue;
|
||||||
loadHistoryFromJSON(json: JSONValue): void;
|
loadHistoryFromJSON(json: JSONValue): void;
|
||||||
|
|
||||||
isEnabled: boolean;
|
isEnabled: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -56,4 +56,6 @@ declare class IPhysicsBehaviorInstance<InstType> extends IBehaviorInstance<InstT
|
|||||||
createLimitedRevoluteJoint(imgPt: ImagePointParameter, otherInst: IWorldInstance, lower: number, upper: number): void;
|
createLimitedRevoluteJoint(imgPt: ImagePointParameter, otherInst: IWorldInstance, lower: number, upper: number): void;
|
||||||
createPrismaticJoint(imgPt: ImagePointParameter, otherInst: IWorldInstance, axisAngle: number, enableLimit: boolean, lowerTranslation: number, upperTranslation: number, enableMotor: boolean, motorSpeed: number, maxMotorForce: number): void;
|
createPrismaticJoint(imgPt: ImagePointParameter, otherInst: IWorldInstance, axisAngle: number, enableLimit: boolean, lowerTranslation: number, upperTranslation: number, enableMotor: boolean, motorSpeed: number, maxMotorForce: number): void;
|
||||||
removeAllJoints(): void;
|
removeAllJoints(): void;
|
||||||
|
|
||||||
|
setCollisionFilter(isInclusive: boolean, tags: string | Iterable<string>): void;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,13 @@
|
|||||||
* @see {@link https://www.construct.net/make-games/manuals/construct-3/scripting/scripting-reference/behavior-interfaces/solid | ISolidBehaviorInstance documentation } */
|
* @see {@link https://www.construct.net/make-games/manuals/construct-3/scripting/scripting-reference/behavior-interfaces/solid | ISolidBehaviorInstance documentation } */
|
||||||
declare class ISolidBehaviorInstance<InstType> extends IBehaviorInstance<InstType>
|
declare class ISolidBehaviorInstance<InstType> extends IBehaviorInstance<InstType>
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @deprecated Use setAllTags() or getAllTags() instead, which use more suitable data types than a space-separated string.
|
||||||
|
*/
|
||||||
tags: string;
|
tags: string;
|
||||||
|
|
||||||
|
setAllTags(tags: Iterable<string>): void;
|
||||||
|
getAllTags(): Set<string>;
|
||||||
|
|
||||||
isEnabled: boolean;
|
isEnabled: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@ declare namespace SDK {
|
|||||||
class IBehaviorBase {
|
class IBehaviorBase {
|
||||||
|
|
||||||
constructor(id: string);
|
constructor(id: string);
|
||||||
|
|
||||||
_info: SDK.IBehaviorInfo;
|
_info: SDK.IBehaviorInfo;
|
||||||
|
|
||||||
Release(): void;
|
Release(): void;
|
||||||
|
|||||||
@ -2,7 +2,7 @@ declare namespace SDK {
|
|||||||
class IInstanceBase {
|
class IInstanceBase {
|
||||||
|
|
||||||
constructor(sdkType: SDK.ITypeBase, iInstance: SDK.IObjectInstance);
|
constructor(sdkType: SDK.ITypeBase, iInstance: SDK.IObjectInstance);
|
||||||
|
|
||||||
_sdkType: SDK.ITypeBase;
|
_sdkType: SDK.ITypeBase;
|
||||||
_inst: SDK.IObjectInstance;
|
_inst: SDK.IObjectInstance;
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,8 @@
|
|||||||
declare namespace SDK.Gfx {
|
declare namespace SDK.Gfx {
|
||||||
class IWebGLRenderer {
|
class IWebGLRenderer {
|
||||||
SetAlphaBlend(): void;
|
SetAlphaBlend(): void;
|
||||||
|
SetBlendMode(blendMode: BlendModeParameter): void;
|
||||||
|
|
||||||
SetColorFillMode(): void;
|
SetColorFillMode(): void;
|
||||||
SetTextureFillMode(): void;
|
SetTextureFillMode(): void;
|
||||||
SetSmoothLineFillMode(): void;
|
SetSmoothLineFillMode(): void;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
declare namespace SDK {
|
declare namespace SDK {
|
||||||
class IZipFileEntry {
|
class IZipFileEntry {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -15,7 +15,7 @@ declare namespace SDK {
|
|||||||
GetInstanceByUID(uid: number): SDK.IObjectInstance | null;
|
GetInstanceByUID(uid: number): SDK.IObjectInstance | null;
|
||||||
|
|
||||||
AddOrReplaceProjectFile(blob: Blob, filename: string, kind?: EditorProjectFileKind): void;
|
AddOrReplaceProjectFile(blob: Blob, filename: string, kind?: EditorProjectFileKind): void;
|
||||||
|
|
||||||
GetProjectFileBySID(sid: number): SDK.IProjectFile | null;
|
GetProjectFileBySID(sid: number): SDK.IProjectFile | null;
|
||||||
GetProjectFileByExportPath(path: string): SDK.IProjectFile | null;
|
GetProjectFileByExportPath(path: string): SDK.IProjectFile | null;
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
declare namespace SDK {
|
declare namespace SDK {
|
||||||
class IProjectFile {
|
class IProjectFile {
|
||||||
GetName(): string;
|
GetName(): string;
|
||||||
|
GetPath(): string;
|
||||||
GetProject(): SDK.IProjectFile;
|
GetProject(): SDK.IProjectFile;
|
||||||
GetBlob(): Blob;
|
GetBlob(): Blob;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,7 +16,7 @@ declare namespace SDK {
|
|||||||
GetRepeatCount(): number;
|
GetRepeatCount(): number;
|
||||||
SetRepeatTo(f: number): void;
|
SetRepeatTo(f: number): void;
|
||||||
GetRepeatTo(): number;
|
GetRepeatTo(): number;
|
||||||
|
|
||||||
Delete(): void;
|
Delete(): void;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -7,7 +7,7 @@ declare namespace SDK {
|
|||||||
|
|
||||||
SetPropertyValue(id: string, value: EditorPropertyValueType): void;
|
SetPropertyValue(id: string, value: EditorPropertyValueType): void;
|
||||||
GetPropertyValue(id: string): EditorPropertyValueType;
|
GetPropertyValue(id: string): EditorPropertyValueType;
|
||||||
|
|
||||||
GetTimelinePropertyValue(id: string): EditorPropertyValueType;
|
GetTimelinePropertyValue(id: string): EditorPropertyValueType;
|
||||||
|
|
||||||
GetExternalSdkInstance(): SDK.IInstanceBase | null;
|
GetExternalSdkInstance(): SDK.IInstanceBase | null;
|
||||||
|
|||||||
@ -10,7 +10,7 @@ declare namespace SDK {
|
|||||||
|
|
||||||
CreateWorldInstance(layer: SDK.ILayer): SDK.IWorldInstance;
|
CreateWorldInstance(layer: SDK.ILayer): SDK.IWorldInstance;
|
||||||
GetAllInstances(): SDK.IWorldInstance[];
|
GetAllInstances(): SDK.IWorldInstance[];
|
||||||
|
|
||||||
IsInContainer(): boolean;
|
IsInContainer(): boolean;
|
||||||
GetContainer(): SDK.IContainer | null;
|
GetContainer(): SDK.IContainer | null;
|
||||||
CreateContainer(initialObjectTypes: SDK.IObjectType[]): SDK.IContainer;
|
CreateContainer(initialObjectTypes: SDK.IObjectType[]): SDK.IContainer;
|
||||||
|
|||||||
@ -8,7 +8,7 @@ declare namespace SDK.UI {
|
|||||||
|
|
||||||
SetDeviceTransform(iRenderer: SDK.Gfx.IWebGLRenderer): void;
|
SetDeviceTransform(iRenderer: SDK.Gfx.IWebGLRenderer): void;
|
||||||
SetDefaultTransform(iRenderer: SDK.Gfx.IWebGLRenderer): void;
|
SetDefaultTransform(iRenderer: SDK.Gfx.IWebGLRenderer): void;
|
||||||
|
|
||||||
Refresh(): void;
|
Refresh(): void;
|
||||||
|
|
||||||
GetLayout(): SDK.ILayout;
|
GetLayout(): SDK.ILayout;
|
||||||
|
|||||||
@ -65,7 +65,7 @@ declare class ICGSObjectType<InstType extends IInstance = IInstance> extends IOb
|
|||||||
readonly playerName: string;
|
readonly playerName: string;
|
||||||
readonly gameId: string;
|
readonly gameId: string;
|
||||||
readonly sessionKey: string;
|
readonly sessionKey: string;
|
||||||
|
|
||||||
signInWithProvider(provider: CGSSignInProvider, gameId: string, opts?: CGSSignInOptions): Promise<void>;
|
signInWithProvider(provider: CGSSignInProvider, gameId: string, opts?: CGSSignInOptions): Promise<void>;
|
||||||
retryOpenSignInPopup(): void;
|
retryOpenSignInPopup(): void;
|
||||||
signInPersistent(gameId: string): Promise<void>;
|
signInPersistent(gameId: string): Promise<void>;
|
||||||
@ -76,5 +76,5 @@ declare class ICGSObjectType<InstType extends IInstance = IInstance> extends IOb
|
|||||||
getLeaderboardScores(leaderboardId: string, opts?: CGSGetLeaderboardScoresOptions): Promise<CGSLeaderboardScoreResults>;
|
getLeaderboardScores(leaderboardId: string, opts?: CGSGetLeaderboardScoresOptions): Promise<CGSLeaderboardScoreResults>;
|
||||||
|
|
||||||
createCloudSave(opts: CGSCreateCloudSaveOptions): Promise<void>;
|
createCloudSave(opts: CGSCreateCloudSaveOptions): Promise<void>;
|
||||||
getCloudSave(opts: CGSGetCloudSaveOptions): Promise<string>;
|
getCloudSave(opts: CGSGetCloudSaveOptions): Promise<string | Blob>;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -68,7 +68,7 @@ declare class MultiplayerSignallingState extends ConstructEventTarget<Multiplaye
|
|||||||
joinRoom(game: string, instance: string, room: string, maxClients?: number): Promise<MultiplayerSignallingJoinResult>;
|
joinRoom(game: string, instance: string, room: string, maxClients?: number): Promise<MultiplayerSignallingJoinResult>;
|
||||||
autoJoinRoom(game: string, instance: string, room: string, maxClients?: number, isLocking?: boolean): Promise<MultiplayerSignallingAutoJoinResult>;
|
autoJoinRoom(game: string, instance: string, room: string, maxClients?: number, isLocking?: boolean): Promise<MultiplayerSignallingAutoJoinResult>;
|
||||||
leaveRoom(): Promise<void>;
|
leaveRoom(): Promise<void>;
|
||||||
|
|
||||||
requestGameInstanceList(game: string): Promise<MultiplayerSignallingGameInstanceEntry[]>;
|
requestGameInstanceList(game: string): Promise<MultiplayerSignallingGameInstanceEntry[]>;
|
||||||
requestRoomList(game: string, instance: string, type: MultiplayerRoomListType): Promise<MultiplayerSignallingRoomEntry[]>;
|
requestRoomList(game: string, instance: string, type: MultiplayerRoomListType): Promise<MultiplayerSignallingRoomEntry[]>;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,5 +49,5 @@ declare class ISpriteInstance extends IWorldInstance
|
|||||||
getImageSize(): Vec2Arr;
|
getImageSize(): Vec2Arr;
|
||||||
|
|
||||||
replaceCurrentAnimationFrame(blob: Blob): Promise<void>;
|
replaceCurrentAnimationFrame(blob: Blob): Promise<void>;
|
||||||
setSolidCollisionFilter(isInclusive: boolean, tags: string): void;
|
setSolidCollisionFilter(isInclusive: boolean, tags: string | Iterable<string>): void;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,7 +22,7 @@ declare class IAssetManager
|
|||||||
getProjectFileUrl(url: string): Promise<string>;
|
getProjectFileUrl(url: string): Promise<string>;
|
||||||
getMediaFileUrl(url: string): Promise<string>;
|
getMediaFileUrl(url: string): Promise<string>;
|
||||||
readonly mediaFolder: string;
|
readonly mediaFolder: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated All supported platforms now support WebM Opus, so use the Web Audio API decodeAudioData() method instead.
|
* @deprecated All supported platforms now support WebM Opus, so use the Web Audio API decodeAudioData() method instead.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -5,7 +5,7 @@ declare class BehaviorInstanceEvent<InstType, BehInstType> implements ConstructE
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface BehaviorInstanceEventMap<InstType, BehInstType> {
|
interface BehaviorInstanceEventMap<InstType, BehInstType> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Represents an instance of a behavior associated with a specific object instance.
|
/** Represents an instance of a behavior associated with a specific object instance.
|
||||||
|
|||||||
@ -20,7 +20,7 @@ declare class IInstance
|
|||||||
addEventListener<K extends keyof InstanceEventMap<this>>(type: K, listener: (ev: InstanceEventMap<this>[K]) => any): void;
|
addEventListener<K extends keyof InstanceEventMap<this>>(type: K, listener: (ev: InstanceEventMap<this>[K]) => any): void;
|
||||||
removeEventListener<K extends keyof InstanceEventMap<this>>(type: K, listener: (ev: InstanceEventMap<this>[K]) => any): void;
|
removeEventListener<K extends keyof InstanceEventMap<this>>(type: K, listener: (ev: InstanceEventMap<this>[K]) => any): void;
|
||||||
dispatchEvent(evt: ConstructEvent): void;
|
dispatchEvent(evt: ConstructEvent): void;
|
||||||
|
|
||||||
readonly runtime: IRuntime;
|
readonly runtime: IRuntime;
|
||||||
readonly objectType: IObjectType<this>;
|
readonly objectType: IObjectType<this>;
|
||||||
readonly plugin: IPlugin_;
|
readonly plugin: IPlugin_;
|
||||||
@ -33,8 +33,9 @@ declare class IInstance
|
|||||||
restoreTimeScale(): void;
|
restoreTimeScale(): void;
|
||||||
readonly dt: number;
|
readonly dt: number;
|
||||||
|
|
||||||
|
hasTag(tag: string): boolean;
|
||||||
hasTags(...tagsArray: string[]): boolean;
|
hasTags(...tagsArray: string[]): boolean;
|
||||||
setAllTags(tagsSet: Set<string>): void;
|
setAllTags(tagsSet: Iterable<string>): void;
|
||||||
getAllTags(): Set<string>;
|
getAllTags(): Set<string>;
|
||||||
|
|
||||||
destroy(): void;
|
destroy(): void;
|
||||||
|
|||||||
@ -16,7 +16,7 @@ declare class ILayer extends ConstructEventTarget<LayerEventMap>
|
|||||||
readonly name: string;
|
readonly name: string;
|
||||||
readonly layout: IAnyProjectLayout;
|
readonly layout: IAnyProjectLayout;
|
||||||
readonly index: number;
|
readonly index: number;
|
||||||
|
|
||||||
isVisible: boolean;
|
isVisible: boolean;
|
||||||
readonly isSelfAndParentsVisible: boolean;
|
readonly isSelfAndParentsVisible: boolean;
|
||||||
isInteractive: boolean;
|
isInteractive: boolean;
|
||||||
|
|||||||
@ -3,8 +3,8 @@
|
|||||||
declare class ILoopingConditionContext
|
declare class ILoopingConditionContext
|
||||||
{
|
{
|
||||||
retrigger(): void;
|
retrigger(): void;
|
||||||
|
|
||||||
readonly isStopped: boolean;
|
readonly isStopped: boolean;
|
||||||
|
|
||||||
release(): void;
|
release(): void;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,7 +14,7 @@ declare namespace C3 {
|
|||||||
type LayoutParameter = string | number;
|
type LayoutParameter = string | number;
|
||||||
type LayerParameter = string | number;
|
type LayerParameter = string | number;
|
||||||
type ImagePointParameter = string | number;
|
type ImagePointParameter = string | number;
|
||||||
type BlendModeParameter = "normal" | "additive" | "copy" | "destination-over" | "source-in" | "destination-in" | "source-out" | "destination-out" | "source-atop" | "destination-atop";
|
type BlendModeParameter = "normal" | "additive" | "copy" | "destination-over" | "source-in" | "destination-in" | "source-out" | "destination-out" | "source-atop" | "destination-atop" | "lighten" | "darken" | "multiply" | "screen";
|
||||||
|
|
||||||
type FramerateModeType = "vsync" | "unlimited-tick" | "unlimited-frame";
|
type FramerateModeType = "vsync" | "unlimited-tick" | "unlimited-frame";
|
||||||
type SamplingModeType = "nearest" | "bilinear" | "trilinear";
|
type SamplingModeType = "nearest" | "bilinear" | "trilinear";
|
||||||
@ -188,7 +188,7 @@ declare class IRuntime extends ConstructEventTarget<RuntimeEventMap>
|
|||||||
|
|
||||||
signal(tag: string): void;
|
signal(tag: string): void;
|
||||||
waitForSignal(tag: string): Promise<void>;
|
waitForSignal(tag: string): Promise<void>;
|
||||||
|
|
||||||
/** When called from an event sheet, sets the current function return value,
|
/** When called from an event sheet, sets the current function return value,
|
||||||
* much like the 'Set return value' action. */
|
* much like the 'Set return value' action. */
|
||||||
setReturnValue(value: number | string): void;
|
setReturnValue(value: number | string): void;
|
||||||
|
|||||||
@ -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 } */
|
* @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 class ISDKBehaviorBase_ extends IBehavior_
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var ISDKBehaviorBase: typeof ISDKBehaviorBase_;
|
declare var ISDKBehaviorBase: typeof ISDKBehaviorBase_;
|
||||||
|
|||||||
@ -5,5 +5,5 @@ declare class ISDKBehaviorTypeBase_ extends IBehaviorType
|
|||||||
{
|
{
|
||||||
_onCreate(): void;
|
_onCreate(): void;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var ISDKBehaviorTypeBase: typeof ISDKBehaviorTypeBase_;
|
declare var ISDKBehaviorTypeBase: typeof ISDKBehaviorTypeBase_;
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
declare class ISDKDOMInstanceBase_ extends ISDKWorldInstanceBase
|
declare class ISDKDOMInstanceBase_ extends ISDKWorldInstanceBase
|
||||||
{
|
{
|
||||||
constructor(opts: { domComponentId: string });
|
constructor(opts: { domComponentId: string });
|
||||||
|
|
||||||
_postToDOMElement(handler: string, data: JSONValue): void;
|
_postToDOMElement(handler: string, data: JSONValue): void;
|
||||||
_postToDOMElementAsync(handler: string, data: JSONValue): Promise<JSONValue>;
|
_postToDOMElementAsync(handler: string, data: JSONValue): Promise<JSONValue>;
|
||||||
_postToDOMElementMaybeSync(handler: string, data: JSONValue): void;
|
_postToDOMElementMaybeSync(handler: string, data: JSONValue): void;
|
||||||
|
|||||||
@ -8,40 +8,40 @@
|
|||||||
declare class ISDKInstanceBase_ extends IInstance
|
declare class ISDKInstanceBase_ extends IInstance
|
||||||
{
|
{
|
||||||
constructor(opts?: { domComponentId?: string, wrapperComponentId?: string });
|
constructor(opts?: { domComponentId?: string, wrapperComponentId?: string });
|
||||||
|
|
||||||
readonly objectType: ISDKObjectTypeBase_<this>;
|
readonly objectType: ISDKObjectTypeBase_<this>;
|
||||||
|
|
||||||
_release(): void;
|
_release(): void;
|
||||||
_getInitProperties(): SDKPropertyType[];
|
_getInitProperties(): SDKPropertyType[];
|
||||||
_trigger(method: Function): void;
|
_trigger(method: Function): void;
|
||||||
_triggerAsync(method: Function): Promise<void>;
|
_triggerAsync(method: Function): Promise<void>;
|
||||||
|
|
||||||
_setTicking(isTicking: boolean): void;
|
_setTicking(isTicking: boolean): void;
|
||||||
_setTicking2(isTicking: boolean): void;
|
_setTicking2(isTicking: boolean): void;
|
||||||
_isTicking(): boolean;
|
_isTicking(): boolean;
|
||||||
_isTicking2(): boolean;
|
_isTicking2(): boolean;
|
||||||
|
|
||||||
_tick(): void;
|
_tick(): void;
|
||||||
_tick2(): void;
|
_tick2(): void;
|
||||||
|
|
||||||
_getDebuggerProperties(): any[];
|
_getDebuggerProperties(): any[];
|
||||||
|
|
||||||
_saveToJson(): JSONValue;
|
_saveToJson(): JSONValue;
|
||||||
_loadFromJson(o: JSONValue): void;
|
_loadFromJson(o: JSONValue): void;
|
||||||
|
|
||||||
// DOM methods
|
// DOM methods
|
||||||
_addDOMMessageHandler(handler: string, callback: (e: JSONValue) => void): void;
|
_addDOMMessageHandler(handler: string, callback: (e: JSONValue) => void): void;
|
||||||
_addDOMMessageHandlers(arr: Array<[string, (e: JSONValue) => void]>): void;
|
_addDOMMessageHandlers(arr: Array<[string, (e: JSONValue) => void]>): void;
|
||||||
|
|
||||||
_postToDOM(handler: string, data?: JSONValue): void;
|
_postToDOM(handler: string, data?: JSONValue): void;
|
||||||
_postToDOMAsync(handler: string, data?: JSONValue): Promise<JSONValue>;
|
_postToDOMAsync(handler: string, data?: JSONValue): Promise<JSONValue>;
|
||||||
_postToDOMMaybeSync(handler: string, data?: JSONValue): void;
|
_postToDOMMaybeSync(handler: string, data?: JSONValue): void;
|
||||||
|
|
||||||
// Wrapper extension methods
|
// Wrapper extension methods
|
||||||
_isWrapperExtensionAvailable(): boolean;
|
_isWrapperExtensionAvailable(): boolean;
|
||||||
_addWrapperExtensionMessageHandler(messageId: string, callback: (e: JSONValue) => void): void;
|
_addWrapperExtensionMessageHandler(messageId: string, callback: (e: JSONValue) => void): void;
|
||||||
_addWrapperMessageHandlers(arr: Array<[string, (e: JSONValue) => void]>): void;
|
_addWrapperMessageHandlers(arr: Array<[string, (e: JSONValue) => void]>): void;
|
||||||
|
|
||||||
_sendWrapperExtensionMessage(messageId: string, params?: WrapperExtensionParameterType[]): void;
|
_sendWrapperExtensionMessage(messageId: string, params?: WrapperExtensionParameterType[]): void;
|
||||||
_sendWrapperExtensionMessageAsync(messageId: string, params?: WrapperExtensionParameterType[]): Promise<JSONValue>;
|
_sendWrapperExtensionMessageAsync(messageId: string, params?: WrapperExtensionParameterType[]): Promise<JSONValue>;
|
||||||
}
|
}
|
||||||
@ -49,40 +49,41 @@ declare class ISDKInstanceBase_ extends IInstance
|
|||||||
declare class IWorldInstanceSDKBase_ extends IWorldInstance
|
declare class IWorldInstanceSDKBase_ extends IWorldInstance
|
||||||
{
|
{
|
||||||
readonly objectType: ISDKObjectTypeBase_<this>;
|
readonly objectType: ISDKObjectTypeBase_<this>;
|
||||||
|
|
||||||
_release(): void;
|
_release(): void;
|
||||||
_getInitProperties(): SDKPropertyType[];
|
_getInitProperties(): SDKPropertyType[];
|
||||||
_trigger(method: Function): void;
|
_trigger(method: Function): void;
|
||||||
|
|
||||||
_setTicking(isTicking: boolean): void;
|
_setTicking(isTicking: boolean): void;
|
||||||
_setTicking2(isTicking: boolean): void;
|
_setTicking2(isTicking: boolean): void;
|
||||||
_isTicking(): boolean;
|
_isTicking(): boolean;
|
||||||
_isTicking2(): boolean;
|
_isTicking2(): boolean;
|
||||||
|
|
||||||
_tick(): void;
|
_tick(): void;
|
||||||
_tick2(): void;
|
_tick2(): void;
|
||||||
|
|
||||||
_getDebuggerProperties(): any[];
|
_getDebuggerProperties(): any[];
|
||||||
|
|
||||||
_saveToJson(): JSONValue;
|
_saveToJson(): JSONValue;
|
||||||
_loadFromJson(o: JSONValue): void;
|
_loadFromJson(o: JSONValue): void;
|
||||||
|
|
||||||
// DOM methods
|
// DOM methods
|
||||||
_addDOMMessageHandler(handler: string, callback: (e: JSONValue) => void): void;
|
_addDOMMessageHandler(handler: string, callback: (e: JSONValue) => void): void;
|
||||||
_addDOMMessageHandlers(arr: Array<[string, (e: JSONValue) => void]>): void;
|
_addDOMMessageHandlers(arr: Array<[string, (e: JSONValue) => void]>): void;
|
||||||
|
|
||||||
_postToDOM(handler: string, data: JSONValue): void;
|
_postToDOM(handler: string, data: JSONValue): void;
|
||||||
_postToDOMAsync(handler: string, data: JSONValue): Promise<JSONValue>;
|
_postToDOMAsync(handler: string, data: JSONValue): Promise<JSONValue>;
|
||||||
_postToDOMMaybeSync(handler: string, data: JSONValue): void;
|
_postToDOMMaybeSync(handler: string, data: JSONValue): void;
|
||||||
|
|
||||||
// Wrapper extension methods
|
// Wrapper extension methods
|
||||||
_isWrapperExtensionAvailable(): boolean;
|
_isWrapperExtensionAvailable(): boolean;
|
||||||
_addWrapperExtensionMessageHandler(messageId: string, callback: (e: JSONValue) => void): void;
|
_addWrapperExtensionMessageHandler(messageId: string, callback: (e: JSONValue) => void): void;
|
||||||
_addWrapperMessageHandlers(arr: Array<[string, (e: JSONValue) => void]>): void;
|
_addWrapperMessageHandlers(arr: Array<[string, (e: JSONValue) => void]>): void;
|
||||||
|
|
||||||
_sendWrapperExtensionMessage(messageId: string, params?: WrapperExtensionParameterType[]): void;
|
_sendWrapperExtensionMessage(messageId: string, params?: WrapperExtensionParameterType[]): void;
|
||||||
_sendWrapperExtensionMessageAsync(messageId: string, params?: WrapperExtensionParameterType[]): Promise<JSONValue>;
|
_sendWrapperExtensionMessageAsync(messageId: string, params?: WrapperExtensionParameterType[]): Promise<JSONValue>;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var ISDKInstanceBase: typeof ISDKInstanceBase_;
|
declare var ISDKInstanceBase: typeof ISDKInstanceBase_;
|
||||||
declare var IWorldInstanceSDKBase: typeof IWorldInstanceSDKBase_;
|
declare var IWorldInstanceSDKBase: typeof IWorldInstanceSDKBase_;
|
||||||
|
|
||||||
@ -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 } */
|
* @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 class ISDKPluginBase_ extends IPlugin_
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var ISDKPluginBase: typeof ISDKPluginBase_;
|
declare var ISDKPluginBase: typeof ISDKPluginBase_;
|
||||||
|
|||||||
@ -3,13 +3,14 @@
|
|||||||
declare class ISDKUtils
|
declare class ISDKUtils
|
||||||
{
|
{
|
||||||
readonly constructVersionCode: number;
|
readonly constructVersionCode: number;
|
||||||
|
|
||||||
updateRender(): void;
|
updateRender(): void;
|
||||||
|
|
||||||
addLoadPromise(promise: Promise<void>): void;
|
addLoadPromise(promise: Promise<void>): void;
|
||||||
|
|
||||||
|
isWrapperExtensionAvailable(wrapperComponentId: string): boolean;
|
||||||
sendWrapperExtensionMessage(wrapperComponentId: string, messageId: string, params?: WrapperExtensionParameterType[]): void;
|
sendWrapperExtensionMessage(wrapperComponentId: string, messageId: string, params?: WrapperExtensionParameterType[]): void;
|
||||||
sendWrapperExtensionMessageAsync(wrapperComponentId: string, messageId: string, params?: WrapperExtensionParameterType[]): Promise<JSONValue>;
|
sendWrapperExtensionMessageAsync(wrapperComponentId: string, messageId: string, params?: WrapperExtensionParameterType[]): Promise<JSONValue>;
|
||||||
|
|
||||||
createLoopingConditionContext(loopName?: string): ILoopingConditionContext;
|
createLoopingConditionContext(loopName?: string): ILoopingConditionContext;
|
||||||
|
|
||||||
|
|||||||
@ -12,7 +12,7 @@ declare class ITimelineStateBase
|
|||||||
isLooping: boolean;
|
isLooping: boolean;
|
||||||
isPingPong: boolean;
|
isPingPong: boolean;
|
||||||
playbackRate: number;
|
playbackRate: number;
|
||||||
|
|
||||||
readonly progress: number;
|
readonly progress: number;
|
||||||
readonly tags: string;
|
readonly tags: string;
|
||||||
readonly finished: Promise<void>;
|
readonly finished: Promise<void>;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user