@ts-defold/types 1.2.28 → 1.2.29
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 +17 -1
- 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.6.
|
|
5
|
+
// DEFOLD. stable version 1.6.1 (27bbea23f00cfb65707cb096fbe82ba7b78723f6)
|
|
6
6
|
// =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
|
|
7
7
|
|
|
8
8
|
|
|
@@ -6540,6 +6540,14 @@ declare namespace model {
|
|
|
6540
6540
|
*/
|
|
6541
6541
|
export function get_go(url: string | hash | url, bone_id: string | hash): hash
|
|
6542
6542
|
|
|
6543
|
+
/**
|
|
6544
|
+
* Get the enabled state of a mesh
|
|
6545
|
+
* @param url the model
|
|
6546
|
+
* @param mesh_id the id of the mesh
|
|
6547
|
+
* @return enabled true if the mesh is visible, false otherwise
|
|
6548
|
+
*/
|
|
6549
|
+
export function get_mesh_enabled(url: string | hash | url, mesh_id: string | hash | url): boolean
|
|
6550
|
+
|
|
6543
6551
|
/**
|
|
6544
6552
|
* Plays an animation on a model component with specified playback
|
|
6545
6553
|
* mode and parameters.
|
|
@@ -6595,6 +6603,14 @@ The invoker of the callback: the model component.
|
|
|
6595
6603
|
*/
|
|
6596
6604
|
export function play_anim(url: string | hash | url, anim_id: string | hash, playback: any, play_properties?: any, complete_function?: any): void
|
|
6597
6605
|
|
|
6606
|
+
/**
|
|
6607
|
+
* Enable or disable visibility of a mesh
|
|
6608
|
+
* @param url the model
|
|
6609
|
+
* @param mesh_id the id of the mesh
|
|
6610
|
+
* @param enabled true if the mesh should be visible, false if it should be hideen
|
|
6611
|
+
*/
|
|
6612
|
+
export function set_mesh_enabled(url: string | hash | url, mesh_id: string | hash | url, enabled: boolean): void
|
|
6613
|
+
|
|
6598
6614
|
/**
|
|
6599
6615
|
* This message is sent when a Model animation has finished playing back to the script
|
|
6600
6616
|
* that started the animation.
|