123456789101112131415161718192021222324252627282930313233 |
- const DWTool = require("./DWTool");
- class ThemeManager {
-
- static loadArtist(isBigMan = false, gender = 1, jobId) {
-
- if (gender === 0) {
- gender = 1;
- }
- let p = new Promise((resolve, reject) => {
- let name = `4${isBigMan ? 1 : 2}${gender}0${jobId}`;
- cc.loader.loadRes(`./people_spines/${name}`, sp.SkeletonData, (err, skeletonData,) => {
- if (err) {
- reject(err);
- } else {
- resolve(skeletonData);
- }
- });
- });
- return p;
- }
- }
- module.exports = ThemeManager;
|