@ts-defold/types 1.2.12 → 1.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +33 -8
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="lua-types/5.1" />
|
|
3
3
|
/// <reference types="typescript-to-lua/language-extensions" />
|
|
4
4
|
|
|
5
|
-
// DEFOLD. stable version 1.3.
|
|
5
|
+
// DEFOLD. stable version 1.3.4 (80b1b73fd9cdbd4682c2583403fddfbaf0919107)
|
|
6
6
|
// =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
|
|
7
7
|
|
|
8
8
|
|
|
@@ -720,12 +720,12 @@ The id of the animated property.
|
|
|
720
720
|
export function animate(url: string | hash | url, property: string | hash, playback: any, to: number | vmath.vector3 | vmath.vector4 | vmath.quaternion, easing: any, duration: number, delay?: number, complete_function?: any): void
|
|
721
721
|
|
|
722
722
|
/**
|
|
723
|
-
* By calling this function, all stored animations of the
|
|
723
|
+
* By calling this function, all or specified stored property animations of the game object or component will be canceled.
|
|
724
724
|
* See the properties guide for which properties can be animated and the animation guide for how to animate them.
|
|
725
|
-
* @param url url of the game object or component
|
|
726
|
-
* @param property id of the property to cancel
|
|
725
|
+
* @param url url of the game object or component
|
|
726
|
+
* @param property optional id of the property to cancel
|
|
727
727
|
*/
|
|
728
|
-
export function cancel_animations(url: string | hash | url, property
|
|
728
|
+
export function cancel_animations(url: string | hash | url, property?: string | hash): void
|
|
729
729
|
|
|
730
730
|
/**
|
|
731
731
|
* Delete one or more game objects identified by id. Deletion is asynchronous meaning that
|
|
@@ -2895,12 +2895,29 @@ declare namespace profiler {
|
|
|
2895
2895
|
*/
|
|
2896
2896
|
export function get_memory_usage(): number
|
|
2897
2897
|
|
|
2898
|
+
/**
|
|
2899
|
+
* Send a text to the profiler
|
|
2900
|
+
* @param text the string to send to the profiler
|
|
2901
|
+
*/
|
|
2902
|
+
export function log_text(text: string): void
|
|
2903
|
+
|
|
2898
2904
|
/**
|
|
2899
2905
|
* Get the number of recorded frames in the on-screen profiler ui recording buffer
|
|
2900
2906
|
* @return frame_count the number of recorded frames, zero if on-screen profiler is disabled
|
|
2901
2907
|
*/
|
|
2902
2908
|
export function recorded_frame_count(): number
|
|
2903
2909
|
|
|
2910
|
+
/**
|
|
2911
|
+
* Starts a profile scope.
|
|
2912
|
+
* @param name The name of the scope
|
|
2913
|
+
*/
|
|
2914
|
+
export function scope_begin(name: string): void
|
|
2915
|
+
|
|
2916
|
+
/**
|
|
2917
|
+
* End the current profile scope.
|
|
2918
|
+
*/
|
|
2919
|
+
export function scope_end(): void
|
|
2920
|
+
|
|
2904
2921
|
/**
|
|
2905
2922
|
* Set the on-screen profile mode - run, pause, record or show peak frame
|
|
2906
2923
|
* @param mode the mode to set the ui profiler in
|
|
@@ -4041,8 +4058,11 @@ The texture format. Supported values:
|
|
|
4041
4058
|
export function set_texture(path: hash | string, table: any, buffer: buffer): void
|
|
4042
4059
|
|
|
4043
4060
|
/**
|
|
4044
|
-
* Stores a zip file and uses it for live update content.
|
|
4045
|
-
*
|
|
4061
|
+
* Stores a zip file and uses it for live update content. The contents of the
|
|
4062
|
+
* zip file will be verified against the manifest to ensure file integrity.
|
|
4063
|
+
* It is possible to opt out of the resource verification using an option passed
|
|
4064
|
+
* to this function.
|
|
4065
|
+
* The path is stored in the (internal) live update location.
|
|
4046
4066
|
* @param path the path to the original file on disc
|
|
4047
4067
|
* @param callback the callback function
|
|
4048
4068
|
executed after the storage has completed
|
|
@@ -4052,8 +4072,12 @@ The current object.
|
|
|
4052
4072
|
`status`
|
|
4053
4073
|
the status of the store operation (See resource.store_manifest)
|
|
4054
4074
|
|
|
4075
|
+
* @param options optional table with extra parameters. Supported entries:
|
|
4076
|
+
|
|
4077
|
+
`verify`: if archive should be verified as well as stored (defaults to true)
|
|
4078
|
+
|
|
4055
4079
|
*/
|
|
4056
|
-
export function store_archive(path: string, callback: any): void
|
|
4080
|
+
export function store_archive(path: string, callback: any, options?: any): void
|
|
4057
4081
|
|
|
4058
4082
|
/**
|
|
4059
4083
|
* Create a new manifest from a buffer. The created manifest is verified
|
|
@@ -4751,6 +4775,7 @@ The response data. Contains the fields:
|
|
|
4751
4775
|
`timeout`: timeout in seconds
|
|
4752
4776
|
`path`: path on disc where to download the file. Only overwrites the path if status is 200
|
|
4753
4777
|
`ignore_cache`: don't return cached data if we get a 304
|
|
4778
|
+
`chunked_transfer`: use chunked transfer encoding for https requests larger than 16kb. Defaults to true.
|
|
4754
4779
|
|
|
4755
4780
|
*/
|
|
4756
4781
|
export function request(url: string, method: string, callback: any, headers?: any, post_data?: string, options?: any): void
|