@urso/core 0.4.37 → 0.4.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.4.37",
3
+ "version": "0.4.38",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -175,6 +175,52 @@ class ModulesObjectsModelsSpine extends Urso.Core.Modules.Objects.BaseModel {
175
175
  }
176
176
  }
177
177
 
178
+ /**
179
+ * returns skeleton's child by it's name
180
+ * @param {string} name
181
+ * @returns {DisplayObject}
182
+ */
183
+ getChildByName(name) {
184
+ return this.children[this._baseObject.skeleton.findSlotIndex(name)];
185
+ }
186
+
187
+ /**
188
+ * returns skeleton's slot by it's name
189
+ * @param {string} name
190
+ * @returns {Slot}
191
+ */
192
+ findSlot(name) {
193
+ return this._baseObject.skeleton.findSlot(name)
194
+ }
195
+
196
+ /**
197
+ * returns skeleton's bone by it's name
198
+ * @param {string} name
199
+ * @returns {Bone}
200
+ */
201
+ findSlot(name) {
202
+ return this._baseObject.skeleton.findBone(name)
203
+ }
204
+
205
+ /**
206
+ * returns animation from spineData by it's name
207
+ * @param {string} name
208
+ * @returns {Animation}
209
+ */
210
+ findAnimation(name) {
211
+ return this._baseObject.spineData.findAnimation(name)
212
+ }
213
+
214
+
215
+ /**
216
+ * returns event from spineData by it's name
217
+ * @param {string} name
218
+ * @returns {EventData}
219
+ */
220
+ findEvent(name) {
221
+ return this._baseObject.spineData.findEvent(name)
222
+ }
223
+
178
224
  /**
179
225
  * system function
180
226
  * add object to pixi tree