mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-08 11:46:53 +08:00
Updated c3 to r459 that introduces multiply and screen blending modes.
This commit is contained in:
parent
4b80ec9a81
commit
e4f6d229c1
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
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;
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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>;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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";
|
||||||
|
|||||||
@ -86,3 +86,4 @@ declare class IWorldInstanceSDKBase_ extends IWorldInstance
|
|||||||
|
|
||||||
declare var ISDKInstanceBase: typeof ISDKInstanceBase_;
|
declare var ISDKInstanceBase: typeof ISDKInstanceBase_;
|
||||||
declare var IWorldInstanceSDKBase: typeof IWorldInstanceSDKBase_;
|
declare var IWorldInstanceSDKBase: typeof IWorldInstanceSDKBase_;
|
||||||
|
|
||||||
@ -8,8 +8,9 @@ declare class ISDKUtils
|
|||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user