Customise characters with admin console

- Add new characters choise
 - Display on 3 line of 6 pers
 - Add custom characters from admin console wilth level -1
This commit is contained in:
Gregoire Parant 2021-01-12 13:19:51 +01:00
parent 648e6aef97
commit f8d4b696e8
4 changed files with 21 additions and 4 deletions

View file

@ -26,9 +26,9 @@ export const loadAllDefaultModels = (load: LoaderPlugin): BodyResourceDescriptio
export const loadCustomTexture = (load: LoaderPlugin, texture: CharacterTexture) => {
const name = 'customCharacterTexture'+texture.id;
load.spritesheet(name,texture.url,{frameWidth: 32, frameHeight: 32});
return name;
}
export const lazyLoadPlayerCharacterTextures = (loadPlugin: LoaderPlugin, texturePlugin: TextureManager, texturekeys:Array<string|BodyResourceDescriptionInterface>): Promise<string[]> => {
const promisesList:Promise<void>[] = [];
texturekeys.forEach((textureKey: string|BodyResourceDescriptionInterface) => {