GM后台添加皮肤
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user