mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +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;
|
||||
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;
|
||||
}
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
declare namespace SDK.Gfx {
|
||||
class IWebGLRenderer {
|
||||
SetAlphaBlend(): void;
|
||||
SetBlendMode(blendMode: BlendModeParameter): void;
|
||||
|
||||
SetColorFillMode(): void;
|
||||
SetTextureFillMode(): void;
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
declare namespace SDK {
|
||||
class IProjectFile {
|
||||
GetName(): string;
|
||||
GetPath(): string;
|
||||
GetProject(): SDK.IProjectFile;
|
||||
GetBlob(): Blob;
|
||||
}
|
||||
|
||||
@ -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>;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -86,3 +86,4 @@ declare class IWorldInstanceSDKBase_ extends IWorldInstance
|
||||
|
||||
declare var ISDKInstanceBase: typeof ISDKInstanceBase_;
|
||||
declare var IWorldInstanceSDKBase: typeof IWorldInstanceSDKBase_;
|
||||
|
||||
@ -8,6 +8,7 @@ declare class ISDKUtils
|
||||
|
||||
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>;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user