GM后台添加皮肤

This commit is contained in:
luying
2020-12-17 13:17:19 +08:00
parent b79157b5c9
commit 04063fe2d4
9 changed files with 115 additions and 64 deletions

View File

@@ -3,6 +3,8 @@ import * as pubUtils from '../pubUtils/util';
import * as pubGamedata from '../pubUtils/gamedata'
import { HeroType } from '@db/Hero';
import { calPlayerCeAndSave } from '@pubUtils/playerCe';
import { addSkins, addBags, addEquips } from '@pubUtils/itemUtils';
import { BagInter, EquipInter } from '@pubUtils/interface';
const csprng = require('csprng');
/**
@@ -52,4 +54,16 @@ export default class Utils extends Service {
public calPlayerCeAndSave(roleId: string, heros: HeroType[], type: number, args: number[]) {
return calPlayerCeAndSave(roleId, heros, type, args)
}
public addSkins(roleId: string, id: number) {
return addSkins(roleId, id);
}
public addBags(roleId: string, roleName: string, data: BagInter) {
return addBags(roleId, roleName, data);
}
public addEquips(roleId: string, roleName: string, weapon: EquipInter) {
return addEquips(roleId, roleName, weapon);
}
}