avatarinfo = TAvatarInfo()
avatarinfo.extend(0,"",0,0)
self.client.onCreateAvatarResult(3,avatarinfo)
return
spaceUType = GlobalConst.g_demoMaps.get(self.getClientDatas()[0],1)
spaceData = d_spaces.datas.get(spaceUType)
props = {
"name" :name,
"roleType" :roleType,
"level" :1,
"spaceUType" :spaceUType,
"direction" :(0,0,0),
"position" :spaceData.get("spawnPos",(0,0,0))
}
avatar=KBEngine.createEntityLocally("Avatar",props)
if avatar:
avatar.writeToDB(self._onAvatarSaved)