mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +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;
|
||||
loadHistoryFromJSON(json: JSONValue): void;
|
||||
|
||||
|
||||
isEnabled: boolean;
|
||||
}
|
||||
|
||||
@ -56,4 +56,6 @@ declare class IPhysicsBehaviorInstance<InstType> extends IBehaviorInstance<InstT
|
||||
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;
|
||||
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 } */
|
||||
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;
|
||||
|
||||
setAllTags(tags: Iterable<string>): void;
|
||||
getAllTags(): Set<string>;
|
||||
|
||||
isEnabled: boolean;
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@ declare namespace SDK {
|
||||
class IBehaviorBase {
|
||||
|
||||
constructor(id: string);
|
||||
|
||||
|
||||
_info: SDK.IBehaviorInfo;
|
||||
|
||||
Release(): void;
|
||||
|
||||
@ -2,7 +2,7 @@ declare namespace SDK {
|
||||
class IInstanceBase {
|
||||
|
||||
constructor(sdkType: SDK.ITypeBase, iInstance: SDK.IObjectInstance);
|
||||
|
||||
|
||||
_sdkType: SDK.ITypeBase;
|
||||
_inst: SDK.IObjectInstance;
|
||||
|
||||
|
||||
@ -4,7 +4,8 @@
|
||||
declare namespace SDK.Gfx {
|
||||
class IWebGLRenderer {
|
||||
SetAlphaBlend(): void;
|
||||
|
||||
SetBlendMode(blendMode: BlendModeParameter): void;
|
||||
|
||||
SetColorFillMode(): void;
|
||||
SetTextureFillMode(): void;
|
||||
SetSmoothLineFillMode(): void;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
declare namespace SDK {
|
||||
class IZipFileEntry {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -15,7 +15,7 @@ declare namespace SDK {
|
||||
GetInstanceByUID(uid: number): SDK.IObjectInstance | null;
|
||||
|
||||
AddOrReplaceProjectFile(blob: Blob, filename: string, kind?: EditorProjectFileKind): void;
|
||||
|
||||
|
||||
GetProjectFileBySID(sid: number): SDK.IProjectFile | null;
|
||||
GetProjectFileByExportPath(path: string): SDK.IProjectFile | null;
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
declare namespace SDK {
|
||||
class IProjectFile {
|
||||
GetName(): string;
|
||||
GetPath(): string;
|
||||
GetProject(): SDK.IProjectFile;
|
||||
GetBlob(): Blob;
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@ declare namespace SDK {
|
||||
GetRepeatCount(): number;
|
||||
SetRepeatTo(f: number): void;
|
||||
GetRepeatTo(): number;
|
||||
|
||||
|
||||
Delete(): void;
|
||||
}
|
||||
}
|
||||
@ -7,7 +7,7 @@ declare namespace SDK {
|
||||
|
||||
SetPropertyValue(id: string, value: EditorPropertyValueType): void;
|
||||
GetPropertyValue(id: string): EditorPropertyValueType;
|
||||
|
||||
|
||||
GetTimelinePropertyValue(id: string): EditorPropertyValueType;
|
||||
|
||||
GetExternalSdkInstance(): SDK.IInstanceBase | null;
|
||||
|
||||
@ -10,7 +10,7 @@ declare namespace SDK {
|
||||
|
||||
CreateWorldInstance(layer: SDK.ILayer): SDK.IWorldInstance;
|
||||
GetAllInstances(): SDK.IWorldInstance[];
|
||||
|
||||
|
||||
IsInContainer(): boolean;
|
||||
GetContainer(): SDK.IContainer | null;
|
||||
CreateContainer(initialObjectTypes: SDK.IObjectType[]): SDK.IContainer;
|
||||
|
||||
@ -8,7 +8,7 @@ declare namespace SDK.UI {
|
||||
|
||||
SetDeviceTransform(iRenderer: SDK.Gfx.IWebGLRenderer): void;
|
||||
SetDefaultTransform(iRenderer: SDK.Gfx.IWebGLRenderer): void;
|
||||
|
||||
|
||||
Refresh(): void;
|
||||
|
||||
GetLayout(): SDK.ILayout;
|
||||
|
||||
@ -65,7 +65,7 @@ declare class ICGSObjectType<InstType extends IInstance = IInstance> extends IOb
|
||||
readonly playerName: string;
|
||||
readonly gameId: string;
|
||||
readonly sessionKey: string;
|
||||
|
||||
|
||||
signInWithProvider(provider: CGSSignInProvider, gameId: string, opts?: CGSSignInOptions): Promise<void>;
|
||||
retryOpenSignInPopup(): 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>;
|
||||
|
||||
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>;
|
||||
autoJoinRoom(game: string, instance: string, room: string, maxClients?: number, isLocking?: boolean): Promise<MultiplayerSignallingAutoJoinResult>;
|
||||
leaveRoom(): Promise<void>;
|
||||
|
||||
|
||||
requestGameInstanceList(game: string): Promise<MultiplayerSignallingGameInstanceEntry[]>;
|
||||
requestRoomList(game: string, instance: string, type: MultiplayerRoomListType): Promise<MultiplayerSignallingRoomEntry[]>;
|
||||
}
|
||||
|
||||
@ -49,5 +49,5 @@ declare class ISpriteInstance extends IWorldInstance
|
||||
getImageSize(): Vec2Arr;
|
||||
|
||||
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>;
|
||||
getMediaFileUrl(url: string): Promise<string>;
|
||||
readonly mediaFolder: string;
|
||||
|
||||
|
||||
/**
|
||||
* @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> {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/** 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;
|
||||
removeEventListener<K extends keyof InstanceEventMap<this>>(type: K, listener: (ev: InstanceEventMap<this>[K]) => any): void;
|
||||
dispatchEvent(evt: ConstructEvent): void;
|
||||
|
||||
|
||||
readonly runtime: IRuntime;
|
||||
readonly objectType: IObjectType<this>;
|
||||
readonly plugin: IPlugin_;
|
||||
@ -33,8 +33,9 @@ declare class IInstance
|
||||
restoreTimeScale(): void;
|
||||
readonly dt: number;
|
||||
|
||||
hasTag(tag: string): boolean;
|
||||
hasTags(...tagsArray: string[]): boolean;
|
||||
setAllTags(tagsSet: Set<string>): void;
|
||||
setAllTags(tagsSet: Iterable<string>): void;
|
||||
getAllTags(): Set<string>;
|
||||
|
||||
destroy(): void;
|
||||
|
||||
@ -16,7 +16,7 @@ declare class ILayer extends ConstructEventTarget<LayerEventMap>
|
||||
readonly name: string;
|
||||
readonly layout: IAnyProjectLayout;
|
||||
readonly index: number;
|
||||
|
||||
|
||||
isVisible: boolean;
|
||||
readonly isSelfAndParentsVisible: boolean;
|
||||
isInteractive: boolean;
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
declare class ILoopingConditionContext
|
||||
{
|
||||
retrigger(): void;
|
||||
|
||||
|
||||
readonly isStopped: boolean;
|
||||
|
||||
|
||||
release(): void;
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@ declare namespace C3 {
|
||||
type LayoutParameter = string | number;
|
||||
type LayerParameter = 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 SamplingModeType = "nearest" | "bilinear" | "trilinear";
|
||||
@ -188,7 +188,7 @@ declare class IRuntime extends ConstructEventTarget<RuntimeEventMap>
|
||||
|
||||
signal(tag: string): void;
|
||||
waitForSignal(tag: string): Promise<void>;
|
||||
|
||||
|
||||
/** When called from an event sheet, sets the current function return value,
|
||||
* much like the 'Set return value' action. */
|
||||
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 } */
|
||||
declare class ISDKBehaviorBase_ extends IBehavior_
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
declare var ISDKBehaviorBase: typeof ISDKBehaviorBase_;
|
||||
|
||||
@ -5,5 +5,5 @@ declare class ISDKBehaviorTypeBase_ extends IBehaviorType
|
||||
{
|
||||
_onCreate(): void;
|
||||
}
|
||||
|
||||
|
||||
declare var ISDKBehaviorTypeBase: typeof ISDKBehaviorTypeBase_;
|
||||
|
||||
@ -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<JSONValue>;
|
||||
_postToDOMElementMaybeSync(handler: string, data: JSONValue): void;
|
||||
|
||||
@ -8,40 +8,40 @@
|
||||
declare class ISDKInstanceBase_ extends IInstance
|
||||
{
|
||||
constructor(opts?: { domComponentId?: string, wrapperComponentId?: string });
|
||||
|
||||
|
||||
readonly objectType: ISDKObjectTypeBase_<this>;
|
||||
|
||||
|
||||
_release(): void;
|
||||
_getInitProperties(): SDKPropertyType[];
|
||||
_trigger(method: Function): void;
|
||||
_triggerAsync(method: Function): Promise<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<JSONValue>;
|
||||
_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<JSONValue>;
|
||||
}
|
||||
@ -49,40 +49,41 @@ declare class ISDKInstanceBase_ extends IInstance
|
||||
declare class IWorldInstanceSDKBase_ extends IWorldInstance
|
||||
{
|
||||
readonly objectType: ISDKObjectTypeBase_<this>;
|
||||
|
||||
|
||||
_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<JSONValue>;
|
||||
_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<JSONValue>;
|
||||
}
|
||||
|
||||
declare var ISDKInstanceBase: typeof ISDKInstanceBase_;
|
||||
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 } */
|
||||
declare class ISDKPluginBase_ extends IPlugin_
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
declare var ISDKPluginBase: typeof ISDKPluginBase_;
|
||||
|
||||
@ -3,13 +3,14 @@
|
||||
declare class ISDKUtils
|
||||
{
|
||||
readonly constructVersionCode: number;
|
||||
|
||||
|
||||
updateRender(): void;
|
||||
|
||||
|
||||
addLoadPromise(promise: Promise<void>): void;
|
||||
|
||||
isWrapperExtensionAvailable(wrapperComponentId: string): boolean;
|
||||
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;
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ declare class ITimelineStateBase
|
||||
isLooping: boolean;
|
||||
isPingPong: boolean;
|
||||
playbackRate: number;
|
||||
|
||||
|
||||
readonly progress: number;
|
||||
readonly tags: string;
|
||||
readonly finished: Promise<void>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user