mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Updated c3 to r457 that introduces vertex colors also to editor SDK.
This commit is contained in:
parent
4c1263207b
commit
881449a60b
@ -28,7 +28,7 @@ declare namespace SDK.Gfx {
|
||||
Quad3D(tlx: number, tly: number, tlz: number, trx: number, try_: number, trz: number, brx: number, bry: number, brz: number, blx: number, bly: number, blz: number, r: SDK.Rect): void;
|
||||
Quad3D2(tlx: number, tly: number, tlz: number, trx: number, try_: number, trz: number, brx: number, bry: number, brz: number, blx: number, bly: number, blz: number, uv: SDK.Quad): void;
|
||||
|
||||
DrawMesh(posArr: Float32Array, uvArr: Float32Array, indexArr: Uint16Array): void;
|
||||
DrawMesh(posArr: Float32Array, uvArr: Float32Array, indexArr: Uint16Array, colorArr?: Float32Array): void;
|
||||
|
||||
ConvexPoly(pts: number[]): void;
|
||||
Line(x1: number, y1: number, x2: number, y2: number): void;
|
||||
|
||||
@ -6,6 +6,5 @@ declare namespace SDK {
|
||||
|
||||
type EditorPropertyValueType = number | string | boolean | SDK.Color;
|
||||
|
||||
type Vec2Arr = [number, number];
|
||||
type Vec3Arr = [number, number, number];
|
||||
type Vec4Arr = [number, number, number, number];
|
||||
// Relevant type is not defined for editor addons
|
||||
type TweenCustomEaseType = never;
|
||||
@ -54,7 +54,7 @@ interface CGSObjectTypeEventMap<InstanceType = IInstance> extends ObjectClassEve
|
||||
"signinpopupblocked": ConstructEvent
|
||||
}
|
||||
|
||||
declare class ICGSObjectType<InstType extends IInstance = IInstance> extends IObjectType<InstType, MultiplayerObjectEventMap<InstType>>
|
||||
declare class ICGSObjectType<InstType extends IInstance = IInstance> extends IObjectType<InstType, CGSObjectTypeEventMap<InstType>>
|
||||
{
|
||||
addEventListener<K extends keyof CGSObjectTypeEventMap<InstType>>(type: K, listener: (ev: CGSObjectTypeEventMap<InstType>[K]) => any): void;
|
||||
removeEventListener<K extends keyof CGSObjectTypeEventMap<InstType>>(type: K, listener: (ev: CGSObjectTypeEventMap<InstType>[K]) => any): void;
|
||||
|
||||
@ -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
|
||||
@ -26,4 +31,6 @@ declare class IAssetManager
|
||||
loadScripts(...urls: string[]): Promise<void>;
|
||||
compileWebAssembly(url: string): Promise<WebAssembly.Module>;
|
||||
loadStyleSheet(url: string): Promise<void>;
|
||||
|
||||
readonly projectFileList: ProjectFileListEntry[];
|
||||
}
|
||||
|
||||
@ -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<InstanceType extends IInstance, EventMapType = ObjectClassEventMap<InstanceType>> extends IObjectClass<InstanceType, EventMapType>
|
||||
declare class IFamily<InstanceType extends IInstance = IInstance, EventMapType = ObjectClassEventMap<InstanceType>> extends IObjectClass<InstanceType, EventMapType>
|
||||
{
|
||||
/** Get an array with a list of object types that belong to this family. */
|
||||
getAllObjectTypes(): IObjectType<InstanceType>[];
|
||||
|
||||
@ -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<InstanceType extends IInstance, EventMapType = ObjectClassEventMap<InstanceType>> extends IObjectClass<InstanceType, EventMapType>
|
||||
declare class IObjectType<InstanceType extends IInstance = IInstance, EventMapType = ObjectClassEventMap<InstanceType>> extends IObjectClass<InstanceType, EventMapType>
|
||||
{
|
||||
/** 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} */
|
||||
|
||||
@ -86,4 +86,3 @@ declare class IWorldInstanceSDKBase_ extends IWorldInstance
|
||||
|
||||
declare var ISDKInstanceBase: typeof ISDKInstanceBase_;
|
||||
declare var IWorldInstanceSDKBase: typeof IWorldInstanceSDKBase_;
|
||||
|
||||
@ -2,6 +2,8 @@
|
||||
/** Utility class for scripting APIs intended for the Addon SDK. */
|
||||
declare class ISDKUtils
|
||||
{
|
||||
readonly constructVersionCode: number;
|
||||
|
||||
updateRender(): void;
|
||||
|
||||
addLoadPromise(promise: Promise<void>): void;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user