public AVATAR_INFO_LIST createFromStreamEx(MemoryStream stream) { AVATAR_INFO_LIST datas = new AVATAR_INFO_LIST(); datas.values = values_DataType.createFromStreamEx(stream); return(datas); }
public override void onRemoteMethodCall(MemoryStream stream) { ScriptModule sm = EntityDef.moduledefs["Account"]; UInt16 methodUtype = 0; UInt16 componentPropertyUType = 0; if (sm.useMethodDescrAlias) { componentPropertyUType = stream.readUint8(); methodUtype = stream.readUint8(); } else { componentPropertyUType = stream.readUint16(); 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 6: Byte onCreateAvatarResult_arg1 = stream.readUint8(); AVATAR_INFO onCreateAvatarResult_arg2 = ((DATATYPE_AVATAR_INFO)method.args[1]).createFromStreamEx(stream); onCreateAvatarResult(onCreateAvatarResult_arg1, onCreateAvatarResult_arg2); break; case 7: UInt64 onRemoveAvatar_arg1 = stream.readUint64(); onRemoveAvatar(onRemoveAvatar_arg1); break; case 5: AVATAR_INFO_LIST onReqAvatarList_arg1 = ((DATATYPE_AVATAR_INFO_LIST)method.args[0]).createFromStreamEx(stream); onReqAvatarList(onReqAvatarList_arg1); break; default: break; } ; }
public override void onReqAvatarList(AVATAR_INFO_LIST infos) { avatars.Clear(); Dbg.DEBUG_MSG("Account::onReqAvatarList: avatarsize=" + infos.values.Count); for (int i = 0; i < infos.values.Count; i++) { AVATAR_INFO info = infos.values[i]; Dbg.DEBUG_MSG("Account::onReqAvatarList: name" + i + "=" + info.name); avatars.Add(info.dbid, info); } // ui event Dictionary <UInt64, AVATAR_INFO> avatarList = new Dictionary <ulong, AVATAR_INFO>(avatars); Event.fireOut("onReqAvatarList", new object[] { avatarList }); // selectAvatarGame(avatars.Keys.ToList()[0]); }
public void addToStreamEx(Bundle stream, AVATAR_INFO_LIST v) { values_DataType.addToStreamEx(stream, v.values); }
public abstract void onReqAvatarList(AVATAR_INFO_LIST arg1);