public override void onReqAvatarList(AVATAR_INFOS_LIST infos) { avatars.Clear(); Dbg.DEBUG_MSG("Account::onReqAvatarList: avatarsize=" + infos.values.Count); for (int i = 0; i < infos.values.Count; i++) { AVATAR_INFOS info = infos.values[i]; Dbg.DEBUG_MSG("Account::onReqAvatarList: name" + i + "=" + info.name); avatars.Add(info.dbid, info); } // ui event Dictionary <UInt64, AVATAR_INFOS> avatarList = new Dictionary <UInt64, AVATAR_INFOS>(avatars); Event.fireOut("onReqAvatarList", new object[] { avatarList }); if (infos.values.Count == 0) { return; } // selectAvatarGame(avatars.Keys.ToList()[0]); }
public override void onRemoteMethodCall(MemoryStream stream) { ScriptModule sm = EntityDef.moduledefs["Account"]; UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; if (sm.usePropertyDescrAlias) { componentPropertyUType = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); } if (sm.useMethodDescrAlias) { methodUtype = stream.readUint8(); } else { methodUtype = stream.readUint16(); } Method method = null; if (componentPropertyUType == 0) { method = sm.idmethods[methodUtype]; } else { Property pComponentPropertyDescription = sm.idpropertys[componentPropertyUType]; switch (pComponentPropertyDescription.properUtype) { default: break; } return; } switch (method.methodUtype) { case 10005: Byte onCreateAvatarResult_arg1 = stream.readUint8(); AVATAR_INFOS onCreateAvatarResult_arg2 = ((DATATYPE_AVATAR_INFOS)method.args[1]).createFromStreamEx(stream); onCreateAvatarResult(onCreateAvatarResult_arg1, onCreateAvatarResult_arg2); break; case 3: UInt64 onRemoveAvatar_arg1 = stream.readUint64(); onRemoveAvatar(onRemoveAvatar_arg1); break; case 10003: AVATAR_INFOS_LIST onReqAvatarList_arg1 = ((DATATYPE_AVATAR_INFOS_LIST)method.args[0]).createFromStreamEx(stream); onReqAvatarList(onReqAvatarList_arg1); break; default: break; } ; }
public abstract void onCreateAvatarResult(Byte arg1, AVATAR_INFOS arg2);
public override void onCreateAvatarResult(AVATAR_INFOS arg1) { Event.fireOut(AccountEvent_Out.EventName.onReqCreateAvatar, new object[] { arg1 }); }
public abstract void onCreateAvatarResult(AVATAR_INFOS arg1);