@ts-defold/types 1.2.13 → 1.2.14
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 +16 -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.3 (c2ab1630e34f1311d8340d81494cf5317d25fe16)
|
|
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
|
|
@@ -4041,8 +4041,11 @@ The texture format. Supported values:
|
|
|
4041
4041
|
export function set_texture(path: hash | string, table: any, buffer: buffer): void
|
|
4042
4042
|
|
|
4043
4043
|
/**
|
|
4044
|
-
* Stores a zip file and uses it for live update content.
|
|
4045
|
-
*
|
|
4044
|
+
* Stores a zip file and uses it for live update content. The contents of the
|
|
4045
|
+
* zip file will be verified against the manifest to ensure file integrity.
|
|
4046
|
+
* It is possible to opt out of the resource verification using an option passed
|
|
4047
|
+
* to this function.
|
|
4048
|
+
* The path is stored in the (internal) live update location.
|
|
4046
4049
|
* @param path the path to the original file on disc
|
|
4047
4050
|
* @param callback the callback function
|
|
4048
4051
|
executed after the storage has completed
|
|
@@ -4052,8 +4055,12 @@ The current object.
|
|
|
4052
4055
|
`status`
|
|
4053
4056
|
the status of the store operation (See resource.store_manifest)
|
|
4054
4057
|
|
|
4058
|
+
* @param options optional table with extra parameters. Supported entries:
|
|
4059
|
+
|
|
4060
|
+
`verify`: if archive should be verified as well as stored (defaults to true)
|
|
4061
|
+
|
|
4055
4062
|
*/
|
|
4056
|
-
export function store_archive(path: string, callback: any): void
|
|
4063
|
+
export function store_archive(path: string, callback: any, options?: any): void
|
|
4057
4064
|
|
|
4058
4065
|
/**
|
|
4059
4066
|
* Create a new manifest from a buffer. The created manifest is verified
|
|
@@ -4751,6 +4758,7 @@ The response data. Contains the fields:
|
|
|
4751
4758
|
`timeout`: timeout in seconds
|
|
4752
4759
|
`path`: path on disc where to download the file. Only overwrites the path if status is 200
|
|
4753
4760
|
`ignore_cache`: don't return cached data if we get a 304
|
|
4761
|
+
`chunked_transfer`: use chunked transfer encoding for https requests larger than 16kb. Defaults to true.
|
|
4754
4762
|
|
|
4755
4763
|
*/
|
|
4756
4764
|
export function request(url: string, method: string, callback: any, headers?: any, post_data?: string, options?: any): void
|