Merge branch 'master' into GrowthFund
| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Monday, December 10, 2018
|
| | | // [ Date ]: Monday, January 14, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using UnityEngine;
|
| | |
| | | public Vector3 UIRotation { get ; private set; }
|
| | | public Vector3 UIScale { get ; private set; }
|
| | | public Vector3 Scale { get ; private set; }
|
| | | public int RelatedPartID { get ; private set ; }
|
| | |
|
| | | public override string getKey()
|
| | | {
|
| | |
| | | UIScale=rawContents[13].Vector3Parse();
|
| | |
|
| | | Scale=rawContents[14].Vector3Parse();
|
| | | |
| | | RelatedPartID=IsNumeric(rawContents[15]) ? int.Parse(rawContents[15]):0; |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | |
| | | fileFormatVersion: 2 |
| | | guid: 290b3d02a826d6b4daabb2e80dfaa3ab |
| | | timeCreated: 1544430338 |
| | | timeCreated: 1547446994 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | var sendInfo = new CA108_tagCMRefreshMainServerRole();
|
| | | GameNetSystem.Instance.SendInfo(sendInfo);
|
| | | baseData.MapID = baseData.mainServerMapIdRecord;
|
| | | ModelCenter.Instance.GetModel<DungeonModel>().ResetBufData();
|
| | | StageManager.Instance.Load<DungeonStage>(baseData.MapID, GameNetSystem.SocketType.CrossSever, true);
|
| | | extersion.pkState = 0;
|
| | | }
|
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // C1 06 跨服NPC对话 #tagCMCrossNPCTalk |
| | | |
| | | public class CC106_tagCMCrossNPCTalk : GameNetPackBasic |
| | | { |
| | | public uint ObjID; |
| | | public uint NPCID; |
| | | public ushort PosX; |
| | | public ushort PosY; |
| | | |
| | | public CC106_tagCMCrossNPCTalk() |
| | | { |
| | | combineCmd = (ushort)0x03FE; |
| | | _cmd = (ushort)0xC106; |
| | | } |
| | | |
| | | public override void WriteToBytes() |
| | | { |
| | | WriteBytes(ObjID, NetDataType.DWORD); |
| | | WriteBytes(NPCID, NetDataType.DWORD); |
| | | WriteBytes(PosX, NetDataType.WORD); |
| | | WriteBytes(PosY, NetDataType.WORD); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: de7e7a1d27996e841928dbab57fe1d9f |
| | | timeCreated: 1547469409 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // C1 07 跨服使用物品 #tagCMCrossUseItem |
| | | |
| | | public class CC107_tagCMCrossUseItem : GameNetPackBasic |
| | | { |
| | | public uint ItemID; //物品ID, 默认使用1个 |
| | | |
| | | public CC107_tagCMCrossUseItem() |
| | | { |
| | | combineCmd = (ushort)0x03FE; |
| | | _cmd = (ushort)0xC107; |
| | | } |
| | | |
| | | public override void WriteToBytes() |
| | | { |
| | | WriteBytes(ItemID, NetDataType.DWORD); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 84b954533e6f7c048922fb89c1f85665 |
| | | timeCreated: 1547517487 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | }
|
| | | }
|
| | |
|
| | | if (vNetData.socketType == GameNetSystem.SocketType.Main)
|
| | | if (mapInitOkEvent != null)
|
| | | {
|
| | | if (mapInitOkEvent != null)
|
| | | {
|
| | | mapInitOkEvent();
|
| | | }
|
| | | mapInitOkEvent();
|
| | | }
|
| | |
|
| | | //�е�ͼ����pk boss״̬
|
| | |
| | | {
|
| | | yield return WaitingForSecondConst.WaitMS500;
|
| | |
|
| | | if(PlayerDatas.Instance.hero == null)
|
| | | if (PlayerDatas.Instance.hero == null)
|
| | | {
|
| | | yield break;
|
| | | }
|
| | |
| | | {
|
| | | base.Done(vNetPack);
|
| | |
|
| | | if (GameNetSystem.Instance.crossServerSocketConnected)
|
| | | if (CrossServerUtility.IsCrossServer())
|
| | | {
|
| | | if (vNetPack.socketType == GameNetSystem.SocketType.Main)
|
| | | {
|
| | |
| | | |
| | | H0704_tagRolePackRefresh vNetData = vNetPack as H0704_tagRolePackRefresh; |
| | | playerPack.SetItemModel(vNetData); |
| | | |
| | | var _equipInfo = new GActorPlayerBase.EquipInfo |
| | | { |
| | | itemID = vNetData.ItemID, |
| | | place = vNetData.ItemPlace |
| | | }; |
| | | |
| | | var _hero = PlayerDatas.Instance.hero; |
| | | if (_hero != null) |
| | | { |
| | | _hero.ChangeEquip(_equipInfo); |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | H0725_tagRolePackRefreshEx vNetData = vNetPack as H0725_tagRolePackRefreshEx; |
| | | playerPack.SetPlayerPackModel(vNetData); |
| | | |
| | | if (vNetData.PackType == 1) |
| | | { |
| | | if (vNetData.ItemCount > 0) |
| | | { |
| | | foreach (var _item in vNetData.ItemInfo) |
| | | { |
| | | var _equipInfo = new GActorPlayerBase.EquipInfo |
| | | { |
| | | itemID = _item.ItemID, |
| | | place = _item.ItemPlace |
| | | }; |
| | | |
| | | var _hero = PlayerDatas.Instance.hero; |
| | | if (_hero != null) |
| | | { |
| | | _hero.ChangeEquip(_equipInfo); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | |
|
| | |
|
| | |
|
| | | public class DTCAA0A_tagMCWeekPartyInfo : DtcBasic {
OpenServiceAchievementModel model { get { return ModelCenter.Instance.GetModel<OpenServiceAchievementModel>(); } }
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | | public class DTCAA0A_tagMCWeekPartyInfo : DtcBasic
|
| | | {
OpenServiceAchievementModel model { get { return ModelCenter.Instance.GetModel<OpenServiceAchievementModel>(); } }
|
| | | public override void Done(GameNetPackBasic vNetPack)
|
| | | {
|
| | | base.Done(vNetPack);
|
| | | HAA0A_tagMCWeekPartyInfo vNetData = vNetPack as HAA0A_tagMCWeekPartyInfo;
if (vNetData == null)
|
| | | {
|
| | |
| | | public class HAA0A_tagMCWeekPartyInfo : GameNetPackBasic {
|
| | | public string StartDate; // 开始日期 y-m-d
|
| | | public string EndtDate; // 结束日期 y-m-d
|
| | | public ushort AdvanceMinutes; // 提前显示分钟
|
| | | public byte IsDayReset; //是否每天重置
|
| | | public byte ResetType; // 重置类型,0-0点重置;1-5点重置
|
| | | public ushort LimitLV; // 限制等级
|
| | |
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out StartDate, vBytes, NetDataType.Chars, 10);
|
| | | TransBytes (out EndtDate, vBytes, NetDataType.Chars, 10);
|
| | | TransBytes (out AdvanceMinutes, vBytes, NetDataType.WORD);
|
| | | TransBytes (out IsDayReset, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out ResetType, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out LimitLV, vBytes, NetDataType.WORD);
|
| | |
| | | ActionInfo[i] = new tagMCWeekPartyAction();
|
| | | TransBytes (out ActionInfo[i].TemplateID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ActionInfo[i].ActionType, vBytes, NetDataType.WORD);
|
| | | TransBytes (out ActionInfo[i].TotalTimes, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out ActionInfo[i].TotalTimes, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ActionInfo[i].SingleTimes, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ActionInfo[i].Point, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ActionInfo[i].Count, vBytes, NetDataType.BYTE);
|
| | |
| | | public struct tagMCWeekPartyAction {
|
| | | public uint TemplateID; // 模板ID
|
| | | public ushort ActionType; // 活动类别
|
| | | public byte TotalTimes; // 可完成的总次数,0表示不限次数
|
| | | public uint TotalTimes; // 可完成的总次数,0表示不限次数
|
| | | public uint SingleTimes; // 单次领奖需要的次数
|
| | | public uint Point; // 单次领奖积分
|
| | | public byte Count; // 物品数
|
| | |
| | | public byte DayPKCount; // 当日已PK次数
|
| | | public byte DayWinCount; // 当日已胜利次数
|
| | | public byte DayBuyCount; // 当日已购买次数
|
| | | public byte DayItemAddCount; // 当日物品增加次数
|
| | |
|
| | | public HC101_tagMCCrossRealmPKPlayerInfo () {
|
| | | _cmd = (ushort)0xC101;
|
| | |
| | | TransBytes (out DayPKCount, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out DayWinCount, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out DayBuyCount, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out DayItemAddCount, vBytes, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | {
|
| | | if (!TryGetValidPos(_clntPos, ref _adjustPos))
|
| | | {
|
| | | Debug.LogErrorFormat("服务端给定坐标: {0} 映射至客户端坐标: {1} 为客户端无法矫正的障碍点...当前地图: {2}",
|
| | | Debug.LogWarningFormat("服务端给定坐标: {0} 映射至客户端坐标: {1} 为客户端无法矫正的障碍点...当前地图: {2}",
|
| | | new Vector2(sPosX, sPosY), new Vector2(_clntPos.x, _clntPos.z), PlayerDatas.Instance.baseData.MapID);
|
| | | return;
|
| | | }
|
| | |
| | |
|
| | | if (m_ClothesModel)
|
| | | {
|
| | | SFXController[] _ctrls = m_ClothesModel.GetComponentsInChildren<SFXController>();
|
| | | if (_ctrls != null && _ctrls.Length > 0)
|
| | | {
|
| | | for (int i = 0; i < _ctrls.Length; ++i)
|
| | | {
|
| | | SFXPlayUtility.Instance.Release(_ctrls[i]);
|
| | | }
|
| | | }
|
| | |
|
| | | _resID = JobSetup.BaseEquip[0];
|
| | | if (ClothesItemID != 0)
|
| | | {
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | int _resID = JobSetup.BaseEquip[2];
|
| | | if(JobSetup.Job == 1)
|
| | | {
|
| | | _resID = JobSetup.BaseEquip[0] + 2900;
|
| | | }
|
| | | int _baseHandResID = ModelResConfig.GetHandByClothesID((int)ClothesItemID);
|
| | | int _resID = _baseHandResID;
|
| | |
|
| | | EquipInfo _equipInfo;
|
| | |
|
| | |
| | | if (m_EquipDict.ContainsKey((int)RoleEquipType.retFashionWeapon2))
|
| | | {
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | ItemConfig _clothesItemConfig = Config.Instance.Get<ItemConfig>((int)ClothesItemID);
|
| | | if (JobSetup.Job == 1)
|
| | | {
|
| | | if (_clothesItemConfig != null)
|
| | | {
|
| | | _resID = _clothesItemConfig.ChangeOrd + 2900;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (SecondaryID == 0)
|
| | | {
|
| | | int _baseHandResId = JobSetup.BaseEquip[2];
|
| | |
|
| | | if (JobSetup.Job == 1)
|
| | | {
|
| | | if (_clothesItemConfig != null)
|
| | | {
|
| | | _baseHandResId = _clothesItemConfig.ChangeOrd + 2900;
|
| | | }
|
| | | }
|
| | |
|
| | | if (!TryRelease(_baseHandResId, m_SecondaryModel))
|
| | | if (!TryRelease(_baseHandResID, m_SecondaryModel))
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | if (m_EquipDict.ContainsKey((int)RoleEquipType.retFashionWeapon2))
|
| | | {
|
| | | SwitchHand(true);
|
| | | }
|
| | | else
|
| | | {
|
| | | SwitchHand(false);
|
| | | }
|
| | | // 替换当前衣服上的武器
|
| | | Transform _secondaryNode = m_ClothesModel.transform.GetChildTransformDeeply(GAStaticDefine.SecondaryBindBoneName[JobSetup.Job - 1]);
|
| | | m_SecondaryModel.transform.SetParent(_secondaryNode);
|
| | | m_SecondaryModel.transform.localPosition = Vector3.zero;
|
| | | m_SecondaryModel.transform.localRotation = Quaternion.identity;
|
| | |
|
| | | OnPutonSecondary(SecondaryID, m_SecondaryModel);
|
| | | ShowSecondaryEffect();
|
| | | }
|
| | | else
|
| | | {
|
| | | if (!TryRequest(_resID, ref m_SecondaryModel))
|
| | | {
|
| | | return;
|
| | | }
|
| | | SwitchHand(true);
|
| | | OnPutonSecondary(SecondaryID, m_HandModel);
|
| | | }
|
| | |
|
| | | // 替换当前衣服上的武器
|
| | | Transform _secondaryNode = m_ClothesModel.transform.GetChildTransformDeeply(GAStaticDefine.SecondaryBindBoneName[JobSetup.Job - 1]);
|
| | | m_SecondaryModel.transform.SetParent(_secondaryNode);
|
| | | m_SecondaryModel.transform.localPosition = Vector3.zero;
|
| | | m_SecondaryModel.transform.localRotation = Quaternion.identity;
|
| | |
|
| | | SecondaryID = itemID;
|
| | |
|
| | | OnPutonSecondary(SecondaryID, m_SecondaryModel);
|
| | |
|
| | | RequestShadow();
|
| | |
|
| | | ShowSecondaryEffect();
|
| | | }
|
| | |
|
| | | public void SwitchWing(uint itemID)
|
| | |
| | | {
|
| | | itemID = _equipInfo.itemID;
|
| | | }
|
| | |
|
| | | // 如果有副手则卸下手臂
|
| | | if (m_EquipDict.ContainsKey((int)RoleEquipType.retWeapon2))
|
| | | {
|
| | | SwitchHand(false);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | SwitchHand(true);
|
| | | }
|
| | | }
|
| | | else if (index == (int)RoleEquipType.retClothes)
|
| | |
| | | m_SecondaryModel.transform.localPosition = Vector3.zero;
|
| | | m_SecondaryModel.transform.localRotation = Quaternion.identity;
|
| | | }
|
| | | else
|
| | |
|
| | | // 决定副手逻辑
|
| | | // 如果当前是时装副手, 则装备时装手臂
|
| | | // 如果当前是普通副手, 则卸下手臂
|
| | | if (m_EquipDict.ContainsKey((int)RoleEquipType.retFashionWeapon2))
|
| | | {
|
| | | SwitchHand(true);
|
| | | }
|
| | | else
|
| | | {
|
| | | SwitchHand(false);
|
| | | }
|
| | |
|
| | | // 重新确定当前状态
|
| | |
| | |
|
| | | if (onOrOff)
|
| | | {
|
| | | int _resID = JobSetup.BaseEquip[0] + 2900;
|
| | | EquipInfo _equipInfo;
|
| | | if (m_EquipDict.TryGetValue((int)RoleEquipType.retClothes, out _equipInfo))
|
| | | int _itemID = 7000;
|
| | |
|
| | | if (!m_EquipDict.TryGetValue((int)RoleEquipType.retFashionClothes, out _equipInfo))
|
| | | {
|
| | | var _clothesItem = Config.Instance.Get<ItemConfig>((int)_equipInfo.itemID);
|
| | | if (_clothesItem != null)
|
| | | if (!m_EquipDict.TryGetValue((int)RoleEquipType.retClothes, out _equipInfo))
|
| | | {
|
| | | _resID = _clothesItem.ChangeOrd + 2900;
|
| | | _itemID = 7000;
|
| | | }
|
| | | }
|
| | |
|
| | | if (_equipInfo.itemID != 0)
|
| | | {
|
| | | _itemID = (int)_equipInfo.itemID;
|
| | | }
|
| | |
|
| | | int _resID = 7000;
|
| | | if (_itemID != 7000)
|
| | | {
|
| | | var _itemConfig = Config.Instance.Get<ItemConfig>(_itemID);
|
| | | _resID = ModelResConfig.GetHandByClothesID(_itemConfig.ChangeOrd);
|
| | | }
|
| | |
|
| | | if (m_HandModel)
|
| | |
| | | m_HandModel.transform.SetParent(_secondaryNode);
|
| | | m_HandModel.transform.localPosition = Vector3.zero;
|
| | | m_HandModel.transform.localRotation = Quaternion.identity;
|
| | |
|
| | | HandResID = _resID;
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | m_HandModel = null;
|
| | | HandResID = 0;
|
| | | }
|
| | | }
|
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public static int GetHandByClothesID(int id) |
| | | { |
| | | if (id <= 0) |
| | | { |
| | | id = 4100;// 默认值 |
| | | } |
| | | |
| | | var _config = Config.Instance.Get<ModelResConfig>(id); |
| | | if (_config == null) |
| | | { |
| | | return 7000;// 默认值 |
| | | } |
| | | |
| | | return _config.RelatedPartID; |
| | | } |
| | | } |
| | | } |
| | |
| | | public event Action<float> loadingProgressEvent;
|
| | |
|
| | | bool m_IsServerPreparing = false;
|
| | | public bool isServerPreparing {
|
| | | public bool isServerPreparing
|
| | | {
|
| | | get { return m_IsServerPreparing; }
|
| | | set { m_IsServerPreparing = value; }
|
| | | }
|
| | |
|
| | | bool m_IsCrossServerPreparing = false;
|
| | | public bool isCrossServerPreparing {
|
| | | public bool isCrossServerPreparing
|
| | | {
|
| | | get { return m_IsCrossServerPreparing; }
|
| | | set { m_IsCrossServerPreparing = value; }
|
| | | }
|
| | |
|
| | | public Stage.E_StageType StageType {
|
| | | get {
|
| | | public Stage.E_StageType StageType
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_StageType;
|
| | | }
|
| | | }
|
| | |
|
| | | public Stage CurrentStage {
|
| | | get {
|
| | | public Stage CurrentStage
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_CurrentStage;
|
| | | }
|
| | | }
|
| | |
|
| | | int m_CurrentMapId;
|
| | | public int currentMapId {
|
| | | public int currentMapId
|
| | | {
|
| | | get { return m_CurrentMapId; }
|
| | | private set { m_CurrentMapId = value; }
|
| | | }
|
| | |
|
| | | int m_CurrentMapResID;
|
| | | public int currentMapResId {
|
| | | get {
|
| | | public int currentMapResId
|
| | | {
|
| | | get
|
| | | {
|
| | | return m_CurrentMapResID;
|
| | | }
|
| | | private set { m_CurrentMapResID = value; }
|
| | |
| | |
|
| | |
|
| | | float m_LoadingProgress = 0f;
|
| | | float loadingProgress {
|
| | | float loadingProgress
|
| | | {
|
| | | get { return m_LoadingProgress; }
|
| | | set {
|
| | | set
|
| | | {
|
| | | m_LoadingProgress = value;
|
| | | if (loadingProgressEvent != null)
|
| | | {
|
| | |
| | | WindowCenter.Instance.Close<LoadingWin>();
|
| | | SystemSetting.Instance.SetGameFps(SystemSetting.Instance.GetGameFps());
|
| | |
|
| | | foreach(var _actor in GAMgr.Instance.reAdjustPosList)
|
| | | foreach (var _actor in GAMgr.Instance.reAdjustPosList)
|
| | | {
|
| | | _actor.AdjustPos((ushort)_actor.ActorInfo.serverBornPos.x,(ushort)_actor.ActorInfo.serverBornPos.y);
|
| | | _actor.AdjustPos((ushort)_actor.ActorInfo.serverBornPos.x, (ushort)_actor.ActorInfo.serverBornPos.y);
|
| | | }
|
| | | GAMgr.Instance.reAdjustPosList.Clear();
|
| | | }
|
| | |
| | |
|
| | | private void InitHero()
|
| | | {
|
| | |
|
| | | // 初始化摄像机
|
| | | if (!CameraController.Instance)
|
| | | {
|
| | |
| | |
|
| | | if (_fashion != null)
|
| | | {
|
| | | _hero.SwitchClothes((uint)_fashion.itemInfo.ItemID);
|
| | | _hero.SwitchClothes((uint)_fashion.itemInfo.ItemID, (int)RoleEquipType.retFashionClothes);
|
| | | }
|
| | | else if(_itemModel != null)
|
| | | else if (_itemModel != null)
|
| | | {
|
| | | _hero.SwitchClothes((uint)_itemModel.itemInfo.ItemID);
|
| | | }
|
| | |
| | |
|
| | | if (_fashion != null)
|
| | | {
|
| | | _hero.SwitchWeapon((uint)_fashion.itemInfo.ItemID);
|
| | | _hero.SwitchWeapon((uint)_fashion.itemInfo.ItemID, (int)RoleEquipType.retFashionWeapon);
|
| | | }
|
| | | else if (_itemModel != null)
|
| | | {
|
| | |
| | |
|
| | | if (_fashion != null)
|
| | | {
|
| | | _hero.SwitchSecondary((uint)_fashion.itemInfo.ItemID);
|
| | | _hero.SwitchSecondary((uint)_fashion.itemInfo.ItemID, (int)RoleEquipType.retFashionWeapon2);
|
| | | }
|
| | | else if (_itemModel != null)
|
| | | {
|
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class ActionTypeClassWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(ActionTypeClass); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "TemplateID", _g_get_TemplateID); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "CurTimes", _g_get_CurTimes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "GotTimes", _g_get_GotTimes); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "TemplateID", _s_set_TemplateID); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "CurTimes", _s_set_CurTimes); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "GotTimes", _s_set_GotTimes); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | ActionTypeClass gen_ret = new ActionTypeClass(); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } |
| | | catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return LuaAPI.luaL_error(L, "invalid arguments to ActionTypeClass constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_TemplateID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ActionTypeClass gen_to_be_invoked = (ActionTypeClass)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.TemplateID); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_CurTimes(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ActionTypeClass gen_to_be_invoked = (ActionTypeClass)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.CurTimes); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_GotTimes(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ActionTypeClass gen_to_be_invoked = (ActionTypeClass)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.GotTimes); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_TemplateID(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ActionTypeClass gen_to_be_invoked = (ActionTypeClass)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.TemplateID = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_CurTimes(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ActionTypeClass gen_to_be_invoked = (ActionTypeClass)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.CurTimes = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_GotTimes(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | ActionTypeClass gen_to_be_invoked = (ActionTypeClass)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.GotTimes = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 6b33d65b389421d4ba88c39825ecc81a |
| | | timeCreated: 1547519318 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(FairyJadeInvestmentModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 11, 14, 11); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 12, 16, 13); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "AssignmentType", _m_AssignmentType); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Assignment", _m_Assignment); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetInfoSeriors", _m_GetInfoSeriors); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendInvestment", _m_SendInvestment); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "priorityOpen", _g_get_priorityOpen); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsAdvance", _g_get_IsAdvance); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "FairyJadeInvestmentDic", _g_get_FairyJadeInvestmentDic); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "FairyJadeInvestmentTypeDic", _g_get_FairyJadeInvestmentTypeDic); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "InfoSeriors", _g_get_InfoSeriors); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "InfoSeriorsTwo", _g_get_InfoSeriorsTwo); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "InvestmentAmountDic", _g_get_InvestmentAmountDic); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "InvestGold", _g_get_InvestGold); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "InvestmentGrade", _g_get_InvestmentGrade); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "JumpInedx", _g_get_JumpInedx); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "FairyJadeInvestmentDic", _s_set_FairyJadeInvestmentDic); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "FairyJadeInvestmentTypeDic", _s_set_FairyJadeInvestmentTypeDic); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "InfoSeriors", _s_set_InfoSeriors); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "InfoSeriorsTwo", _s_set_InfoSeriorsTwo); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "InvestmentAmountDic", _s_set_InvestmentAmountDic); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "InvestGold", _s_set_InvestGold); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "InvestmentGrade", _s_set_InvestmentGrade); |
| | |
| | | { |
| | | |
| | | gen_to_be_invoked.UnInit( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_AssignmentType(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | FairyJadeInvestmentModel gen_to_be_invoked = (FairyJadeInvestmentModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.AssignmentType( ); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_FairyJadeInvestmentTypeDic(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | FairyJadeInvestmentModel gen_to_be_invoked = (FairyJadeInvestmentModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.FairyJadeInvestmentTypeDic); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_InfoSeriors(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | FairyJadeInvestmentModel gen_to_be_invoked = (FairyJadeInvestmentModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.InfoSeriors); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_InfoSeriorsTwo(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | FairyJadeInvestmentModel gen_to_be_invoked = (FairyJadeInvestmentModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.InfoSeriorsTwo); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_FairyJadeInvestmentTypeDic(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | FairyJadeInvestmentModel gen_to_be_invoked = (FairyJadeInvestmentModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.FairyJadeInvestmentTypeDic = (System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, FairyJadeInvestmentClass>>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, System.Collections.Generic.Dictionary<int, FairyJadeInvestmentClass>>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_InfoSeriors(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_InfoSeriorsTwo(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | FairyJadeInvestmentModel gen_to_be_invoked = (FairyJadeInvestmentModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.InfoSeriorsTwo = (System.Collections.Generic.Dictionary<int, int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<int, int>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_InvestmentAmountDic(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(PlayerDatas); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 19, 14, 7); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 20, 14, 7); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "InitPlayerData", _m_InitPlayerData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdatePlayerData", _m_UpdatePlayerData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "FightRefreshPlayerHp", _m_FightRefreshPlayerHp); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshPlayerData", _m_RefreshPlayerData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshProperty", _m_RefreshProperty); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdatePlayerData(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | PlayerDatas gen_to_be_invoked = (PlayerDatas)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HA112_tagMCDBPlayer _data = (HA112_tagMCDBPlayer)translator.GetObject(L, 2, typeof(HA112_tagMCDBPlayer)); |
| | | |
| | | gen_to_be_invoked.UpdatePlayerData( _data ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_FightRefreshPlayerHp(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(SDKUtility); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 25, 29, 20); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 26, 29, 20); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "InstallAPK", _m_InstallAPK); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformInit", _m_FreePlatformInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformBindPhone", _m_FreePlatformBindPhone); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformLogin", _m_FreePlatformLogin); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TencentLogin", _m_TencentLogin); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformLoginout", _m_FreePlatformLoginout); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformSwitchAccount", _m_FreePlatformSwitchAccount); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "FreePlatformPay", _m_FreePlatformPay); |
| | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 2, 3, 0); |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 2, 4, 0); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "GetApplicationContext", _m_GetApplicationContext_xlua_st_); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Yj_AppID", _g_get_Yj_AppID); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Yj_SpID", _g_get_Yj_SpID); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Yj_BanHao", _g_get_Yj_BanHao); |
| | | Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "builtinAssetCopyFinished", _g_get_builtinAssetCopyFinished); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TencentLogin(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | SDKUtility gen_to_be_invoked = (SDKUtility)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string _param = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | gen_to_be_invoked.TencentLogin( _param ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_FreePlatformLoginout(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_Yj_BanHao(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | LuaAPI.lua_pushstring(L, SDKUtility.Yj_BanHao); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_InitFinished(RealStatePtr L) |
| | | { |
| | | try { |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class SnxxzUICrossServerBossModelWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.CrossServerBossModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 24, 10, 9); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnMapInitOk", _m_OnMapInitOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestEnter", _m_RequestEnter); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CanEnter", _m_CanEnter); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ProcessEnterError", _m_ProcessEnterError); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestExit", _m_RequestExit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetBossData", _m_TryGetBossData); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNpcIds", _m_GetNpcIds); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBosses", _m_GetBosses); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRecommendNpc", _m_GetRecommendNpc); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRecommendKillElite", _m_GetRecommendKillElite); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsBossUnLocked", _m_IsBossUnLocked); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestBoxAndEliteSurplusInfo", _m_RequestBoxAndEliteSurplusInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestBoxSurplusInfo", _m_RequestBoxSurplusInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RequestEliteSurplusInfo", _m_RequestEliteSurplusInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMonsterSurplusInfo", _m_UpdateMonsterSurplusInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateBoxOrEliteRefreshTime", _m_UpdateBoxOrEliteRefreshTime); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "bossSelectedEvent", _e_bossSelectedEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "bossWearyValueChangeEvent", _e_bossWearyValueChangeEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "bigBoxCollectCountChangeEvent", _e_bigBoxCollectCountChangeEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "boxSurplusChangeEvent", _e_boxSurplusChangeEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "eliteSurplusChangeEvent", _e_eliteSurplusChangeEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectedBoss", _g_get_selectedBoss); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "bigBoxCollectCount", _g_get_bigBoxCollectCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "smallBoxCollectCount", _g_get_smallBoxCollectCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "wearyValue", _g_get_wearyValue); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "bigBoxNpcId", _g_get_bigBoxNpcId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "smallBoxNpcId", _g_get_smallBoxNpcId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "eliteMonsters", _g_get_eliteMonsters); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dogzDungeonBox", _g_get_dogzDungeonBox); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "dogzDungeonElite", _g_get_dogzDungeonElite); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpoint", _g_get_redpoint); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectedBoss", _s_set_selectedBoss); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "bigBoxCollectCount", _s_set_bigBoxCollectCount); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "smallBoxCollectCount", _s_set_smallBoxCollectCount); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "bigBoxNpcId", _s_set_bigBoxNpcId); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "smallBoxNpcId", _s_set_smallBoxNpcId); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "eliteMonsters", _s_set_eliteMonsters); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "dogzDungeonBox", _s_set_dogzDungeonBox); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "dogzDungeonElite", _s_set_dogzDungeonElite); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "redpoint", _s_set_redpoint); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); |
| | | |
| | | |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DATA_MAPID", Snxxz.UI.CrossServerBossModel.DATA_MAPID); |
| | | Utils.RegisterObject(L, translator, Utils.CLS_IDX, "REDPOINT", Snxxz.UI.CrossServerBossModel.REDPOINT); |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_ret = new Snxxz.UI.CrossServerBossModel(); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } |
| | | catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.CrossServerBossModel constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.Init( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UnInit(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.UnInit( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnMapInitOk(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnMapInitOk( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_RequestEnter(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.RequestEnter( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CanEnter(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _error; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.CanEnter( out _error ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _error); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ProcessEnterError(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _error = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.ProcessEnterError( _error ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_RequestExit(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.RequestExit( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetBossData(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _bossId = LuaAPI.xlua_tointeger(L, 2); |
| | | Snxxz.UI.CrossServerBossData _data; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetBossData( _bossId, out _data ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _data); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetNpcIds(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<int> gen_ret = gen_to_be_invoked.GetNpcIds( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetBosses(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<int> gen_ret = gen_to_be_invoked.GetBosses( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetRecommendNpc(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetRecommendNpc( ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetRecommendKillElite(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetRecommendKillElite( ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsBossUnLocked(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int __bossId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsBossUnLocked( __bossId ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_RequestBoxAndEliteSurplusInfo(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.RequestBoxAndEliteSurplusInfo( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_RequestBoxSurplusInfo(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.RequestBoxSurplusInfo( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_RequestEliteSurplusInfo(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.RequestEliteSurplusInfo( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateMonsterSurplusInfo(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HA714_tagMCNPCCntList __npcInfoes = (HA714_tagMCNPCCntList)translator.GetObject(L, 2, typeof(HA714_tagMCNPCCntList)); |
| | | |
| | | gen_to_be_invoked.UpdateMonsterSurplusInfo( __npcInfoes ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateBoxOrEliteRefreshTime(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HA904_tagGCDogzNPCRefreshTime __refreshTimes = (HA904_tagGCDogzNPCRefreshTime)translator.GetObject(L, 2, typeof(HA904_tagGCDogzNPCRefreshTime)); |
| | | |
| | | gen_to_be_invoked.UpdateBoxOrEliteRefreshTime( __refreshTimes ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnPlayerLoginOk(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnPlayerLoginOk( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_selectedBoss(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectedBoss); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_bigBoxCollectCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.bigBoxCollectCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_smallBoxCollectCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.smallBoxCollectCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_wearyValue(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.wearyValue); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_bigBoxNpcId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.bigBoxNpcId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_smallBoxNpcId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.smallBoxNpcId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_eliteMonsters(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.eliteMonsters); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_dogzDungeonBox(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.dogzDungeonBox); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_dogzDungeonElite(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.dogzDungeonElite); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_redpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.redpoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_selectedBoss(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.selectedBoss = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_bigBoxCollectCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.bigBoxCollectCount = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_smallBoxCollectCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.smallBoxCollectCount = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_bigBoxNpcId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.bigBoxNpcId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_smallBoxNpcId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.smallBoxNpcId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_eliteMonsters(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.eliteMonsters = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_dogzDungeonBox(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.dogzDungeonBox = (Snxxz.UI.DogzDungeonBox)translator.GetObject(L, 2, typeof(Snxxz.UI.DogzDungeonBox)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_dogzDungeonElite(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.dogzDungeonElite = (Snxxz.UI.DogzDungeonElite)translator.GetObject(L, 2, typeof(Snxxz.UI.DogzDungeonElite)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_redpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.redpoint = (Snxxz.UI.Redpoint)translator.GetObject(L, 2, typeof(Snxxz.UI.Redpoint)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_bossSelectedEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.bossSelectedEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.bossSelectedEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.CrossServerBossModel.bossSelectedEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_bossWearyValueChangeEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.bossWearyValueChangeEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.bossWearyValueChangeEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.CrossServerBossModel.bossWearyValueChangeEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_bigBoxCollectCountChangeEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.bigBoxCollectCountChangeEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.bigBoxCollectCountChangeEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.CrossServerBossModel.bigBoxCollectCountChangeEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_boxSurplusChangeEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.boxSurplusChangeEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.boxSurplusChangeEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.CrossServerBossModel.boxSurplusChangeEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_eliteSurplusChangeEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.CrossServerBossModel gen_to_be_invoked = (Snxxz.UI.CrossServerBossModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.eliteSurplusChangeEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.eliteSurplusChangeEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.CrossServerBossModel.eliteSurplusChangeEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 8facb82477ba34f4fa26feb912eac0ab |
| | | timeCreated: 1547519318 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.CrossServerOneVsOneModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 27, 21, 10); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 28, 21, 10); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendCrossMatch", _m_SendCrossMatch); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendBuyMatchCount", _m_SendBuyMatchCount); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetMatchTip", _m_TryGetMatchTip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetBuyMatchTimes", _m_TryGetBuyMatchTimes); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnReceivePackage", _m_OnReceivePackage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetOneVsOneHistory", _m_TryGetOneVsOneHistory); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPkInfoLocalSave", _m_SetPkInfoLocalSave); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetBuyMatchTimes(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.CrossServerOneVsOneModel gen_to_be_invoked = (Snxxz.UI.CrossServerOneVsOneModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string _key = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetBuyMatchTimes( _key ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnReceivePackage(RealStatePtr L) |
| | | { |
| | | try { |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class SnxxzUIFashionDecomposeModelWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.FashionDecomposeModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 7, 2, 1); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDecomposeItem", _m_GetDecomposeItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateDecomposeItem", _m_UpdateDecomposeItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetDecomposeItem", _m_TryGetDecomposeItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSumDecomposeExp", _m_GetSumDecomposeExp); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSelectItemlist", _m_GetSelectItemlist); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendDecomposeFashion", _m_SendDecomposeFashion); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateDecomposeExpEvent", _e_UpdateDecomposeExpEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "decomposeItemGuids", _g_get_decomposeItemGuids); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "decomposeItemDict", _g_get_decomposeItemDict); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "decomposeItemDict", _s_set_decomposeItemDict); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | Snxxz.UI.FashionDecomposeModel gen_ret = new Snxxz.UI.FashionDecomposeModel(); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } |
| | | catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FashionDecomposeModel constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetDecomposeItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDecomposeModel gen_to_be_invoked = (Snxxz.UI.FashionDecomposeModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.GetDecomposeItem( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateDecomposeItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDecomposeModel gen_to_be_invoked = (Snxxz.UI.FashionDecomposeModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string _guid = LuaAPI.lua_tostring(L, 2); |
| | | bool __isSelect = LuaAPI.lua_toboolean(L, 3); |
| | | |
| | | gen_to_be_invoked.UpdateDecomposeItem( _guid, __isSelect ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetDecomposeItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDecomposeModel gen_to_be_invoked = (Snxxz.UI.FashionDecomposeModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string _guid = LuaAPI.lua_tostring(L, 2); |
| | | Snxxz.UI.FashionDecomposeModel.DecomposeItem _decomposeItem; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetDecomposeItem( _guid, out _decomposeItem ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _decomposeItem); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetSumDecomposeExp(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDecomposeModel gen_to_be_invoked = (Snxxz.UI.FashionDecomposeModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetSumDecomposeExp( ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetSelectItemlist(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDecomposeModel gen_to_be_invoked = (Snxxz.UI.FashionDecomposeModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | System.Collections.Generic.List<ushort> _indexs; |
| | | System.Collections.Generic.List<uint> _ids; |
| | | |
| | | gen_to_be_invoked.GetSelectItemlist( out _indexs, out _ids ); |
| | | translator.Push(L, _indexs); |
| | | |
| | | translator.Push(L, _ids); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SendDecomposeFashion(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDecomposeModel gen_to_be_invoked = (Snxxz.UI.FashionDecomposeModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.SendDecomposeFashion( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_decomposeItemGuids(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDecomposeModel gen_to_be_invoked = (Snxxz.UI.FashionDecomposeModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.decomposeItemGuids); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_decomposeItemDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDecomposeModel gen_to_be_invoked = (Snxxz.UI.FashionDecomposeModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.decomposeItemDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_decomposeItemDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDecomposeModel gen_to_be_invoked = (Snxxz.UI.FashionDecomposeModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.decomposeItemDict = (System.Collections.Generic.Dictionary<string, Snxxz.UI.FashionDecomposeModel.DecomposeItem>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, Snxxz.UI.FashionDecomposeModel.DecomposeItem>)); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_UpdateDecomposeExpEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.FashionDecomposeModel gen_to_be_invoked = (Snxxz.UI.FashionDecomposeModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.UpdateDecomposeExpEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.UpdateDecomposeExpEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FashionDecomposeModel.UpdateDecomposeExpEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1b6d04792efd33747bebe46912cd551a |
| | | timeCreated: 1547519317 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class SnxxzUIFashionDressModelWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.FashionDressModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 30, 17, 3); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFashionDressLevel", _m_GetFashionDressLevel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetFashionDressEquipId", _m_GetFashionDressEquipId); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSelectFashionDress", _m_GetSelectFashionDress); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVirtualEquipFashionDress", _m_GetVirtualEquipFashionDress); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsFashionDressUnlock", _m_IsFashionDressUnlock); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetFashionDress", _m_TryGetFashionDress); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetFashionDresses", _m_TryGetFashionDresses); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetFashionDressProperty", _m_TryGetFashionDressProperty); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetCabinetProperty", _m_TryGetCabinetProperty); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetSatisfyResolves", _m_TryGetSatisfyResolves); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetActiveFashionDress", _m_TryGetActiveFashionDress); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryLevelUp", _m_TryLevelUp); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "DisplayLevelUpError", _m_DisplayLevelUpError); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetSelectFashionDress", _m_SetSelectFashionDress); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetVirtualEquipFashionDress", _m_SetVirtualEquipFashionDress); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ReceivePackage", _m_ReceivePackage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "HandleFashionDressUnlock", _m_HandleFashionDressUnlock); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendLevelUp", _m_SendLevelUp); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryEquip", _m_TryEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ViewFashionDressDetails", _m_ViewFashionDressDetails); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "selectTypeRefresh", _e_selectTypeRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "selectQualityRefresh", _e_selectQualityRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "cabinetRefresh", _e_cabinetRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "fashionDressRefresh", _e_fashionDressRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "selectFashionDressRefresh", _e_selectFashionDressRefresh); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "virtualEquipRefresh", _e_virtualEquipRefresh); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "cabinetLevel", _g_get_cabinetLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "cabinetExp", _g_get_cabinetExp); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "cabinetMaxLevel", _g_get_cabinetMaxLevel); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "serverInited", _g_get_serverInited); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "jumpFashionDress", _g_get_jumpFashionDress); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fashoinDressCount", _g_get_fashoinDressCount); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fashionDressSelectDict", _g_get_fashionDressSelectDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fashionDressEquipDict", _g_get_fashionDressEquipDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fashionDressLevelUpItems", _g_get_fashionDressLevelUpItems); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fashionDressTypes", _g_get_fashionDressTypes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fashionTypeMapPlaceDict", _g_get_fashionTypeMapPlaceDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectType", _g_get_selectType); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectQuality", _g_get_selectQuality); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "viewFashionDressId", _g_get_viewFashionDressId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fashionDressRedpointId", _g_get_fashionDressRedpointId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpoint", _g_get_redpoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "levelUpRedpoint", _g_get_levelUpRedpoint); |
| | | |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "jumpFashionDress", _s_set_jumpFashionDress); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectType", _s_set_selectType); |
| | | Utils.RegisterFunc(L, Utils.SETTER_IDX, "selectQuality", _s_set_selectQuality); |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | Snxxz.UI.FashionDressModel gen_ret = new Snxxz.UI.FashionDressModel(); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } |
| | | catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FashionDressModel constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.Init( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnBeforePlayerDataInitialize(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnBeforePlayerDataInitialize( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnPlayerLoginOk(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnPlayerLoginOk( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UnInit(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.UnInit( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetFashionDressLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetFashionDressLevel( _id ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetFashionDressEquipId(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetFashionDressEquipId( _type ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetSelectFashionDress(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetSelectFashionDress( _type ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetVirtualEquipFashionDress(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | int gen_ret = gen_to_be_invoked.GetVirtualEquipFashionDress( _type ); |
| | | LuaAPI.xlua_pushinteger(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsFashionDressUnlock(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsFashionDressUnlock( _id ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetFashionDress(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | Snxxz.UI.FashionDress _fashionDress; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetFashionDress( _id, out _fashionDress ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _fashionDress); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetFashionDresses(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | System.Collections.Generic.List<int> _list; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetFashionDresses( _type, out _list ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _list); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | int _quality = LuaAPI.xlua_tointeger(L, 3); |
| | | System.Collections.Generic.List<int> _list; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetFashionDresses( _type, _quality, out _list ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _list); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FashionDressModel.TryGetFashionDresses!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetFashionDressProperty(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | int _level = LuaAPI.xlua_tointeger(L, 3); |
| | | System.Collections.Generic.Dictionary<int, int> _dict; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetFashionDressProperty( _id, _level, out _dict ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _dict); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetCabinetProperty(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _level = LuaAPI.xlua_tointeger(L, 2); |
| | | System.Collections.Generic.Dictionary<int, int> _dict; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetCabinetProperty( _level, out _dict ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _dict); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetSatisfyResolves(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | System.Collections.Generic.List<int> _list = (System.Collections.Generic.List<int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<int>)); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetSatisfyResolves( ref _list ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _list); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetActiveFashionDress(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | System.Collections.Generic.List<int> _list; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetActiveFashionDress( out _list ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _list); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryLevelUp(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | int _error; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryLevelUp( _id, out _error ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _error); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_DisplayLevelUpError(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _error = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.DisplayLevelUpError( _error ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetSelectFashionDress(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | int _id = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | gen_to_be_invoked.SetSelectFashionDress( _type, _id ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SetVirtualEquipFashionDress(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | int _id = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | gen_to_be_invoked.SetVirtualEquipFashionDress( _type, _id ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ReceivePackage(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HB102_tagMCClothesCoatSkinState _package = (HB102_tagMCClothesCoatSkinState)translator.GetObject(L, 2, typeof(HB102_tagMCClothesCoatSkinState)); |
| | | |
| | | gen_to_be_invoked.ReceivePackage( _package ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_HandleFashionDressUnlock(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.HandleFashionDressUnlock( _id ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SendLevelUp(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.SendLevelUp( _id ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryEquip(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.TryEquip( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ViewFashionDressDetails(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.ViewFashionDressDetails( _id ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_cabinetLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cabinetLevel); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_cabinetExp(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cabinetExp); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_cabinetMaxLevel(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.cabinetMaxLevel); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_serverInited(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.serverInited); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_jumpFashionDress(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.jumpFashionDress); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_fashoinDressCount(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fashoinDressCount); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_fashionDressSelectDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.fashionDressSelectDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_fashionDressEquipDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.fashionDressEquipDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_fashionDressLevelUpItems(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.fashionDressLevelUpItems); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_fashionDressTypes(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.fashionDressTypes); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_fashionTypeMapPlaceDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.fashionTypeMapPlaceDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_selectType(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectType); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_selectQuality(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.selectQuality); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_viewFashionDressId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.viewFashionDressId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_fashionDressRedpointId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.fashionDressRedpointId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_redpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.redpoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_levelUpRedpoint(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.levelUpRedpoint); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_jumpFashionDress(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.jumpFashionDress = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_selectType(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.selectType = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _s_set_selectQuality(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | gen_to_be_invoked.selectQuality = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_selectTypeRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.selectTypeRefresh += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.selectTypeRefresh -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FashionDressModel.selectTypeRefresh!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_selectQualityRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.selectQualityRefresh += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.selectQualityRefresh -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FashionDressModel.selectQualityRefresh!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_cabinetRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.cabinetRefresh += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.cabinetRefresh -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FashionDressModel.cabinetRefresh!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_fashionDressRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.fashionDressRefresh += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.fashionDressRefresh -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FashionDressModel.fashionDressRefresh!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_selectFashionDressRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.selectFashionDressRefresh += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.selectFashionDressRefresh -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FashionDressModel.selectFashionDressRefresh!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_virtualEquipRefresh(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.FashionDressModel gen_to_be_invoked = (Snxxz.UI.FashionDressModel)translator.FastGetCSObj(L, 1); |
| | | System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.virtualEquipRefresh += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.virtualEquipRefresh -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.FashionDressModel.virtualEquipRefresh!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 25ff8320136c5eb4b8b41658dbd6a903 |
| | | timeCreated: 1547519317 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.ItemTipsModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 44, 40, 3); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 45, 40, 3); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetFightPowerByItemId", _m_TryGetFightPowerByItemId); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsPeerlessEquip", _m_IsPeerlessEquip); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEquipFightPower", _m_GetEquipFightPower); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetShareNumItemDes", _m_GetShareNumItemDes); |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "equipLegendAttrTypeDict", _g_get_equipLegendAttrTypeDict); |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetShareNumItemDes(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.ItemTipsModel gen_to_be_invoked = (Snxxz.UI.ItemTipsModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | string gen_ret = gen_to_be_invoked.GetShareNumItemDes( _itemId ); |
| | | LuaAPI.lua_pushstring(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.MagicianModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 34, 12, 7); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 37, 13, 7); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetPlayerLevelCondition", _m_TryGetPlayerLevelCondition); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGodWeaponStage", _m_GetGodWeaponStage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetGodWeaponStageRequireLevel", _m_GetGodWeaponStageRequireLevel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetGodWeaponStage", _m_TryGetGodWeaponStage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetGodWeaponStages", _m_TryGetGodWeaponStages); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsGodWeaponMaxLevelByItem", _m_IsGodWeaponMaxLevelByItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetAutoHammerCost", _m_TryGetAutoHammerCost); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetEffectProperty", _m_TryGetEffectProperty); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetEffectFightPower", _m_TryGetEffectFightPower); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEffectPropertyUpper", _m_GetEffectPropertyUpper); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetDisplaySkillLevels", _m_TryGetDisplaySkillLevels); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetEffectSkillIcon", _m_GetEffectSkillIcon); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onSelectUpdate", _e_onSelectUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "godWeaponUpdate", _e_godWeaponUpdate); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "godWeaponTypes", _g_get_godWeaponTypes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "godWeaponEffectTypes", _g_get_godWeaponEffectTypes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "godWeaponIcons", _g_get_godWeaponIcons); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "selectType", _g_get_selectType); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "autoHammerLevel", _g_get_autoHammerLevel); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetGodWeaponStage(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | int _level = LuaAPI.xlua_tointeger(L, 3); |
| | | int _stage; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetGodWeaponStage( _type, _level, out _stage ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | LuaAPI.xlua_pushinteger(L, _stage); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetGodWeaponStages(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetDisplaySkillLevels(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | System.Collections.Generic.List<int> gen_ret = gen_to_be_invoked.TryGetDisplaySkillLevels( _type ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetEffectSkillIcon(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | int _level = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | string gen_ret = gen_to_be_invoked.GetEffectSkillIcon( _type, _level ); |
| | | LuaAPI.lua_pushstring(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_godWeaponEffectTypes(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.MagicianModel gen_to_be_invoked = (Snxxz.UI.MagicianModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.godWeaponEffectTypes); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_godWeaponIcons(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.PackSendQuestMgr); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 22, 5, 2); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 24, 5, 2); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendPutOnQuest", _m_SendPutOnQuest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckEquipUselimit", _m_CheckEquipUselimit); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOfflineMaxNum", _m_GetOfflineMaxNum); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckIsMaxOfflineTime", _m_CheckIsMaxOfflineTime); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMakeUseQuest", _m_SendMakeUseQuest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendMainServerMakeUseItem", _m_SendMainServerMakeUseItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendCrossServerMakeUseItem", _m_SendCrossServerMakeUseItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnClickSplitBtn", _m_OnClickSplitBtn); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendSplitQuest", _m_SendSplitQuest); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendPutAwayQuest", _m_SendPutAwayQuest); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SendMainServerMakeUseItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.PackSendQuestMgr gen_to_be_invoked = (Snxxz.UI.PackSendQuestMgr)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _index = LuaAPI.xlua_tointeger(L, 2); |
| | | int _useCnt = LuaAPI.xlua_tointeger(L, 3); |
| | | int _extra = LuaAPI.xlua_tointeger(L, 4); |
| | | |
| | | gen_to_be_invoked.SendMainServerMakeUseItem( _index, _useCnt, _extra ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_SendCrossServerMakeUseItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.PackSendQuestMgr gen_to_be_invoked = (Snxxz.UI.PackSendQuestMgr)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _index = LuaAPI.xlua_tointeger(L, 2); |
| | | |
| | | gen_to_be_invoked.SendCrossServerMakeUseItem( _index ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnClickSplitBtn(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.PlayerPackModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 96, 38, 8); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 98, 39, 8); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSinglePackModel", _m_GetSinglePackModel); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemModelByGUID", _m_GetItemModelByGUID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemModelByIndex", _m_GetItemModelByIndex); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemModelsById", _m_GetItemModelsById); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemGUIDByID", _m_GetItemGUIDByID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetItemCountByID", _m_GetItemCountByID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CheckBagIsPutNewItem", _m_CheckBagIsPutNewItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetReaminGridCount", _m_GetReaminGridCount); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "TryGetShareNumItem", _m_TryGetShareNumItem); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDayUseCntByID", _m_GetDayUseCntByID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSumUseCntByID", _m_GetSumUseCntByID); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWashAttrPointModel", _m_SetWashAttrPointModel); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "MaxDepotGridCnt", _g_get_MaxDepotGridCnt); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "InitDepotGridCnt", _g_get_InitDepotGridCnt); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "LocalSavePlaceArray", _g_get_LocalSavePlaceArray); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "ShareUseCntItemDict", _g_get_ShareUseCntItemDict); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPlayBetterEquipEffect", _g_get_isPlayBetterEquipEffect); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "showDropItem", _g_get_showDropItem); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "fairyRedPointLvlimt", _g_get_fairyRedPointLvlimt); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetItemModelsById(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.PlayerPackModel gen_to_be_invoked = (Snxxz.UI.PlayerPackModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | PackType _type;translator.Get(L, 2, out _type); |
| | | int _id = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | System.Collections.Generic.List<Snxxz.UI.ItemModel> gen_ret = gen_to_be_invoked.GetItemModelsById( _type, _id ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetItemGUIDByID(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_TryGetShareNumItem(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.PlayerPackModel gen_to_be_invoked = (Snxxz.UI.PlayerPackModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _itemId = LuaAPI.xlua_tointeger(L, 2); |
| | | System.Collections.Generic.List<int> _idlist; |
| | | |
| | | bool gen_ret = gen_to_be_invoked.TryGetShareNumItem( _itemId, out _idlist ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | translator.Push(L, _idlist); |
| | | |
| | | |
| | | |
| | | |
| | | return 2; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_ShareUseCntItemDict(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.PlayerPackModel gen_to_be_invoked = (Snxxz.UI.PlayerPackModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.ShareUseCntItemDict); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_isPlayBetterEquipEffect(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.RealmModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 16, 8); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 17, 8); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "leaderId", _g_get_leaderId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "beforeRealmPoint", _g_get_beforeRealmPoint); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "realmGuardianDisplayTime", _g_get_realmGuardianDisplayTime); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "excuteRealmOpenGuide", _g_get_excuteRealmOpenGuide); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "realmDungeonState", _g_get_realmDungeonState); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "realmHoleLimit", _g_get_realmHoleLimit); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "realmInspireCoolDownTime", _g_get_realmInspireCoolDownTime); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_excuteRealmOpenGuide(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.RealmModel gen_to_be_invoked = (Snxxz.UI.RealmModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.excuteRealmOpenGuide); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_realmDungeonState(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.UI3DModelExhibition); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 11, 3, 3); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 12, 3, 3); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetName", _m_GetName); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowLoginPlayer", _m_ShowLoginPlayer); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowEquipment", _m_ShowEquipment); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowWing", _m_ShowWing); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowNPC", _m_ShowNPC); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ShowGodWeaponEffect", _m_ShowGodWeaponEffect); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "StopShow", _m_StopShow); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ResetCameraColor", _m_ResetCameraColor); |
| | | |
| | |
| | | } |
| | | if(gen_param_count == 4&& translator.Assignable<UnityEngine.UI.RawImage>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<RoleEquipType>(L, 4)) |
| | | { |
| | | UnityEngine.UI.RawImage __rawImage = (UnityEngine.UI.RawImage)translator.GetObject(L, 2, typeof(UnityEngine.UI.RawImage)); |
| | | int __job = LuaAPI.xlua_tointeger(L, 3); |
| | | RoleEquipType __exceptEquip;translator.Get(L, 4, out __exceptEquip); |
| | | UnityEngine.UI.RawImage _rawImage = (UnityEngine.UI.RawImage)translator.GetObject(L, 2, typeof(UnityEngine.UI.RawImage)); |
| | | int _job = LuaAPI.xlua_tointeger(L, 3); |
| | | RoleEquipType _exceptEquip;translator.Get(L, 4, out _exceptEquip); |
| | | |
| | | gen_to_be_invoked.ShowPlayer( __rawImage, __job, __exceptEquip ); |
| | | gen_to_be_invoked.ShowPlayer( _rawImage, _job, _exceptEquip ); |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ShowGodWeaponEffect(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.UI3DModelExhibition gen_to_be_invoked = (Snxxz.UI.UI3DModelExhibition)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int _type = LuaAPI.xlua_tointeger(L, 2); |
| | | int _level = LuaAPI.xlua_tointeger(L, 3); |
| | | UnityEngine.UI.RawImage __rawImage = (UnityEngine.UI.RawImage)translator.GetObject(L, 4, typeof(UnityEngine.UI.RawImage)); |
| | | |
| | | gen_to_be_invoked.ShowGodWeaponEffect( _type, _level, __rawImage ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_StopShow(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | translator.DelayWrapLoader(typeof(SelectEquipModel), SelectEquipModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.CrossServerBossModel), SnxxzUICrossServerBossModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.CrossServerOneVsOneModel), SnxxzUICrossServerOneVsOneModelWrap.__Register); |
| | | |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DogzPackModel), SnxxzUIDogzPackModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DogzDungeonModel), SnxxzUIDogzDungeonModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit2(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DogzDungeonModel), SnxxzUIDogzDungeonModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DungeonAssistModel), SnxxzUIDungeonAssistModelWrap.__Register); |
| | | |
| | |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(FakeDungeonUtility), FakeDungeonUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FashionDecomposeModel), SnxxzUIFashionDecomposeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FashionDressModel), SnxxzUIFashionDressModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BossHomeModel), SnxxzUIBossHomeModelWrap.__Register); |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(ServerListCenter), ServerListCenterWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit3(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.LoginAdModel), SnxxzUILoginAdModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(CoinTaskTipModel), CoinTaskTipModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit3(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(FeatureNoticeModel), FeatureNoticeModelWrap.__Register); |
| | | |
| | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OpenServerActivityNotifyModel), SnxxzUIOpenServerActivityNotifyModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ActionTypeClass), ActionTypeClassWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RedEnvelopeModel), SnxxzUIRedEnvelopeModelWrap.__Register); |
| | | |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.SkillModel), SnxxzUISkillModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TalentModel), SnxxzUITalentModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BuySuccessModel), SnxxzUIBuySuccessModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(StoreModel), StoreModelWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MapModel), SnxxzUIMapModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(WorldMapSkip), WorldMapSkipWrap.__Register); |
| | | |
| | |
| | | |
| | | translator.DelayWrapLoader(typeof(TimeDownMgr), TimeDownMgrWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.UI3DModelExhibition), SnxxzUIUI3DModelExhibitionWrap.__Register); |
| | | |
| | |
| | | <type fullname="VersionUtility" preserve="all"/> |
| | | <type fullname="ComposeWinModel" preserve="all"/> |
| | | <type fullname="SelectEquipModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.CrossServerBossModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.CrossServerOneVsOneModel" preserve="all"/> |
| | | <type fullname="Item_Class" preserve="all"/> |
| | | <type fullname="Snxxz.UI.OpponentInformation" preserve="all"/> |
| | |
| | | <type fullname="UnionTaskModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.FairylandCeremonyModel" preserve="all"/> |
| | | <type fullname="FakeDungeonUtility" preserve="all"/> |
| | | <type fullname="Snxxz.UI.FashionDecomposeModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.FashionDressModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.BossHomeModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.DemonJarModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.ElderGodAreaModel" preserve="all"/> |
| | |
| | | <type fullname="Snxxz.UI.OSGiftModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.OSRedEnvelopeModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.OpenServerActivityNotifyModel" preserve="all"/> |
| | | <type fullname="ActionTypeClass" preserve="all"/> |
| | | <type fullname="Snxxz.UI.RedEnvelopeModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.WishingPoolModel" preserve="all"/> |
| | | <type fullname="PetReinforceModel" preserve="all"/> |
| | |
| | | PlayerPackModel playerPack { get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); } }
|
| | | PackModelInterface modelInterface { get { return ModelCenter.Instance.GetModel<PackModelInterface>(); } }
|
| | | DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | | CrossServerOneVsOneModel crossOneVsOneModel { get { return ModelCenter.Instance.GetModel<CrossServerOneVsOneModel>(); } }
|
| | |
|
| | | public PreciousItem currentShowItem { get; private set; }
|
| | | public event Action showItemRefreshEvent;
|
| | |
| | | {
|
| | | isGetNewItem = false;
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent -= RefreshRealm;
|
| | | CrossServerOneVsOnePlayerInfo.Instance.UpdateMatchNumEvent -= UpdateCrossOneVsOneMatchNum;
|
| | | }
|
| | |
|
| | | public void OnSwitchAccount()
|
| | |
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += RefreshRealm;
|
| | | CrossServerOneVsOnePlayerInfo.Instance.UpdateMatchNumEvent += UpdateCrossOneVsOneMatchNum;
|
| | | }
|
| | |
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private void UpdateCrossOneVsOneMatchNum()
|
| | | {
|
| | | if (!TryRemindMatchTick()) return;
|
| | | |
| | | var itemModels = playerPack.GetItemModelsById(PackType.rptItem,1506);
|
| | | if(itemModels != null && itemModels.Count > 0)
|
| | | {
|
| | | var itemModel = itemModels[0];
|
| | | OnGetPreciousItem(PackType.rptItem,itemModel.itemInfo.ItemGUID);
|
| | | }
|
| | | }
|
| | |
|
| | | private bool TryRemindMatchTick()
|
| | | {
|
| | | if (NewBieCenter.Instance.inGuiding || !CrossServerOneVsOnePKSeason.Instance.isSatisfyMatch) return false;
|
| | | int remainNum = CrossServerOneVsOnePlayerInfo.Instance.GetDayRemainNum();
|
| | | if (remainNum > 0) return false;
|
| | |
|
| | | return true;
|
| | | }
|
| | |
|
| | | private void RefreshRealm(PlayerDataRefresh type)
|
| | | {
|
| | | int realmLv = PlayerDatas.Instance.baseData.realmLevel;
|
| | |
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | if (!IsSatisfyShowChannel(ChatCtrl.Inst.presentChatType))
|
| | | {
|
| | | ChatCtrl.Inst.presentChatType = ChatInfoType.System;
|
| | | }
|
| | |
|
| | | m_ChatSend.parent = this;
|
| | | ChatCtrl.Inst.lockUpdate = false;
|
| | | ChatCtrl.Inst.OnPteChatChangeEvent += OnPteChatChangeEvent;
|
| | |
| | | m_ChannelControl.Refresh();
|
| | | for (int i = 0; i < chatCenter.chatChannels.Count; i++)
|
| | | {
|
| | | m_ChannelControl.AddCell(ScrollerDataType.Normal, (int)chatCenter.chatChannels[i], OnChannelSelect);
|
| | | if (IsSatisfyShowChannel(chatCenter.chatChannels[i]))
|
| | | {
|
| | | m_ChannelControl.AddCell(ScrollerDataType.Normal, (int)chatCenter.chatChannels[i], OnChannelSelect);
|
| | | }
|
| | | }
|
| | | m_ChannelControl.Restart();
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | private bool IsSatisfyShowChannel(ChatInfoType channel)
|
| | | {
|
| | | if (CrossServerUtility.IsCrossServer())
|
| | | {
|
| | | if (channel == ChatInfoType.Team || channel == ChatInfoType.Invite)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | }
|
| | | return true;
|
| | | }
|
| | |
|
| | | private void OnPteChatChangeEvent()
|
| | | {
|
| | | if (ChatCtrl.Inst.presentChatType == ChatInfoType.Friend)
|
| | |
| | | { |
| | | [XLua.Hotfix] |
| | | [XLua.LuaCallCSharp] |
| | | public class CrossServerBossModel : Model |
| | | public class CrossServerBossModel : Model, IMapInitOk |
| | | { |
| | | public const int DATA_MAPID = 32020; |
| | | public const int REDPOINT = 77002; |
| | |
| | | FuncOpen.Instance.OnFuncStateChangeEvent -= OnFunctionStateChange; |
| | | } |
| | | |
| | | public void OnMapInitOk() |
| | | { |
| | | if (PlayerDatas.Instance.baseData.MapID == DATA_MAPID) |
| | | { |
| | | if (selectedBoss != 0) |
| | | { |
| | | MapTransferUtility.Instance.MoveToNPC(selectedBoss); |
| | | } |
| | | } |
| | | } |
| | | |
| | | public void RequestEnter() |
| | | { |
| | | var sendInfo = new CC105_tagCMEnterCrossServer(); |
| | |
| | |
|
| | | private void ClickBuyTimes()
|
| | | {
|
| | | if(!CrossServerOneVsOnePKSeason.Instance.isSatisfyMatch)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("CrossMatching21");
|
| | | return;
|
| | | }
|
| | |
|
| | | int remainNum = CrossServerOneVsOnePlayerInfo.Instance.GetDayRemainNum();
|
| | | if (remainNum >= crossServerModel.freeMaxMatchNum)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("CrossMatching13");
|
| | | return;
|
| | | }
|
| | | if (!crossServerModel.TryGetBuyMatchTimes("CrossMatching21")) return;
|
| | |
|
| | | WindowCenter.Instance.Open<CrossSeverOneVsOneBuyMatchTimesWin>();
|
| | | }
|
| | |
| | | return false;
|
| | |
|
| | | }
|
| | |
|
| | | public bool TryGetBuyMatchTimes(string key)
|
| | | {
|
| | | if (!CrossServerOneVsOnePKSeason.Instance.isSatisfyMatch)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip(key);
|
| | | return false;
|
| | | }
|
| | |
|
| | | int remainNum = CrossServerOneVsOnePlayerInfo.Instance.GetDayRemainNum();
|
| | | if (remainNum >= freeMaxMatchNum)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("CrossMatching13");
|
| | | return false;
|
| | | }
|
| | | return true;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region 历史记录
|
| | |
| | |
|
| | | public int DayBuyCount { get; private set; } // 当日已购买次数
|
| | |
|
| | | public int DayItemAddCount { get; private set; } // 当日物品增加次数
|
| | |
|
| | | private int preDayPkCount;
|
| | | CrossServerOneVsOneModel crossServerModel { get { return ModelCenter.Instance.GetModel<CrossServerOneVsOneModel>(); } }
|
| | | public event Action UpdatePlayerInfoEvent;
|
| | | public event Action UpdateMatchNumEvent;
|
| | |
|
| | | public void InitData()
|
| | | {
|
| | | preDayPkCount = 0;
|
| | | Score = 0;
|
| | | DanLV = 0;
|
| | | PKCount = 0;
|
| | |
| | | this.PKCount = playerInfo.PKCount;
|
| | | this.WinCount = playerInfo.WinCount;
|
| | | this.CWinCount = playerInfo.CWinCount;
|
| | | this.DayPKCount = playerInfo.DayPKCount;
|
| | | this.DayBuyCount = playerInfo.DayBuyCount;
|
| | | this.DayWinCount = playerInfo.DayWinCount;
|
| | | this.DayItemAddCount = playerInfo.DayItemAddCount;
|
| | | this.DayPKCount = playerInfo.DayPKCount;
|
| | |
|
| | | if (this.preDayPkCount != playerInfo.DayPKCount)
|
| | | {
|
| | | this.preDayPkCount = playerInfo.DayPKCount;
|
| | | if (UpdateMatchNumEvent != null)
|
| | | {
|
| | | UpdateMatchNumEvent();
|
| | | }
|
| | | }
|
| | | |
| | | if (UpdatePlayerInfoEvent != null)
|
| | | {
|
| | | UpdatePlayerInfoEvent();
|
| | |
| | |
|
| | | public int GetDayRemainNum()
|
| | | {
|
| | | int remainNum = DayBuyCount + crossServerModel.freeMaxMatchNum - DayPKCount;
|
| | | int remainNum = DayBuyCount + DayItemAddCount + crossServerModel.freeMaxMatchNum - DayPKCount;
|
| | | return remainNum > 0 ? remainNum : 0;
|
| | | }
|
| | |
|
| | |
| | | var nextStageRealm = stageNeedLevels[realNextStage]; |
| | | var nextStageRealmConfig = Config.Instance.Get<RealmConfig>(nextStageRealm); |
| | | m_NextStageRealm.SetSprite(nextStageRealmConfig.Img); |
| | | m_NextStageRealm.SetNativeSize(); |
| | | m_NextStageContainer.gameObject.SetActive(true); |
| | | |
| | | if (model.currentRewardStageIndex == nextRealmStage) |
| | |
| | | break;
|
| | | case 41110:
|
| | | TreasureDungeon treasureDungeon;
|
| | | if (treasureModel.TryGetTreasureDungeon(41110, model.dungeonResult.lineID, out treasureDungeon))
|
| | | if (treasureModel.TryGetTreasureDungeon(41110, model.dungeonResult.lineID, out treasureDungeon)
|
| | | && model.dungeonResult.isPass == 1)
|
| | | {
|
| | | if (!RuneTowerConfirmWin.waitConfirm)
|
| | | {
|
| | |
| | | var realmLv = ModelCenter.Instance.GetModel<RealmModel>().cacheRealmLv;
|
| | | var realmConfig = Config.Instance.Get<RealmConfig>(realmLv);
|
| | | if (model.dungeonResult.leaderID != PlayerDatas.Instance.baseData.PlayerID
|
| | | || realmConfig == null || realmConfig.IsBigRealm != 1)
|
| | | || realmConfig == null || realmConfig.IsBigRealm != 1
|
| | | || model.dungeonResult.isPass != 1)
|
| | | {
|
| | | model.ExitCurrentDungeon();
|
| | | }
|
| | |
| | | {
|
| | | if (this.job == 1)
|
| | | {
|
| | | secondaryResId = clothes + 2900;
|
| | | secondaryResId = ModelResConfig.GetHandByClothesID(clothesResId);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | PutOnSecondary(secondaryResId);
|
| | |
|
| | | var extraSecondaryId = 0;
|
| | | if (data.job == 1 && data.fashionSecondaryId > 0 && data.fashionClothesId == 0)
|
| | | if (data.job == 1)
|
| | | {
|
| | | if (data.clothesId == 0)
|
| | | extraSecondaryId = ModelResConfig.GetHandByClothesID(0);
|
| | | if (data.fashionClothesId > 0)
|
| | | {
|
| | | extraSecondaryId = jobConfig.BaseEquip[0] + 2900;
|
| | | var _item = Config.Instance.Get<ItemConfig>(data.fashionClothesId);
|
| | | if (_item != null)
|
| | | {
|
| | | extraSecondaryId = ModelResConfig.GetHandByClothesID(_item.ChangeOrd);
|
| | | }
|
| | | }
|
| | | else
|
| | | else if (data.clothesId > 0)
|
| | | {
|
| | | var item = Config.Instance.Get<ItemConfig>(data.clothesId);
|
| | | var defaultClothesResId = item == null ? jobConfig.BaseEquip[0] : item.ChangeOrd;
|
| | | extraSecondaryId = defaultClothesResId + 2900;
|
| | | var _item = Config.Instance.Get<ItemConfig>(data.clothesId);
|
| | | if (_item != null)
|
| | | {
|
| | | extraSecondaryId = ModelResConfig.GetHandByClothesID(_item.ChangeOrd);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | PutOnExtraSecondary(job, extraSecondaryId);
|
| | | PutOnExtraSecondary(job, extraSecondaryId);
|
| | | }
|
| | |
|
| | | var wingsResId = 0;
|
| | | if (wingsId != 0)
|
| | |
| | | [SerializeField] Text m_TimeTxt;
|
| | | [SerializeField] Text m_ContributeTxt;
|
| | | [SerializeField] Image m_RealmImg;
|
| | | [SerializeField] Image m_OnlineImg;
|
| | | [SerializeField] Button m_AllotBtn;
|
| | |
|
| | | public override void Refresh(CellView cell)
|
| | |
| | | else {
|
| | | m_RealmImg.gameObject.SetActive(false);
|
| | | }
|
| | | m_OnlineImg.gameObject.SetActive(false);
|
| | | m_LvTxt.text = model.sortFairyMembers[index].LV.ToString();
|
| | | m_DutyTxt.text = Language.Get(string.Format("L102{0}", fairyMember.FamilyLV + 1));
|
| | | m_ContributeTxt.text = fairyMember.FamilyActiveValue.ToString();
|
| | |
| | | if (presentCfg != null)
|
| | | {
|
| | | m_RealmImg.SetSprite(presentCfg.Img);
|
| | | m_RealmImg.SetNativeSize();
|
| | | }
|
| | | }
|
| | | m_FairyLvTxt.text = fakeFairy ? "1" : fairy.FamilyLV.ToString();
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class FashionDressCell : CellView
|
| | | {
|
| | | [SerializeField] ItemBehaviour m_Item;
|
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | [XLua.LuaCallCSharp]
|
| | | public class FashionDressModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | Dictionary<int, FashionDress> fashionDressDict = new Dictionary<int, FashionDress>();
|
| | |
| | | if (isMax)
|
| | | {
|
| | | progress = 1;
|
| | | m_CabinetExp.text = model.cabinetExp.ToString();
|
| | | m_CabinetExp.text = StringUtility.Contact(model.cabinetExp, Language.Get("FashionDressCabinetMaxLevel"));
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class GatherSoulComposeCategoryCell : CellView
|
| | | {
|
| | | [SerializeField] Image m_Bottom;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class GatherSoulDungeonBehaviour : MonoBehaviour
|
| | | {
|
| | | [SerializeField] RectTransform m_GenerateMonsterRemind;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class GatherSoulDungeonWeelCell : CellView
|
| | | {
|
| | | [SerializeField] Text m_Weel;
|
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class GatherSoulPackCell : CellView
|
| | | {
|
| | | [SerializeField] GatherSoulItemBehaviour[] m_GatherSoulItems;
|
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class GatherSoulResolveCell : CellView
|
| | | {
|
| | | [SerializeField] GatherSoulResolveItem[] m_Items;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class GatherSoulResolveItem : MonoBehaviour
|
| | | {
|
| | | [SerializeField] RectTransform m_Container;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | [XLua.Hotfix]
|
| | | public class GatherSoulResolveWin : Window
|
| | | {
|
| | | [SerializeField] int m_LineCount = 6;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class GatherSoulTipBase : MonoBehaviour
|
| | | {
|
| | | [SerializeField] Text m_ItemName;
|
| | |
| | | using UnityEngine.UI; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class GatherSoulTipProperty : MonoBehaviour, IGatherSoulTipScrollPart
|
| | | {
|
| | | [SerializeField] PropertyBehaviour[] m_Propertys;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class GatherSoulTipResolve : MonoBehaviour, IGatherSoulTipScrollPart
|
| | | {
|
| | | [SerializeField] Text m_Title;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | [XLua.Hotfix]
|
| | | public class GatherSoulTotalPropertyWin : Window
|
| | | {
|
| | | [SerializeField] RectTransform m_Content;
|
| | |
| | | public static int fairyLandBuffId { get; private set; } |
| | | public static int achievementEarlierStageLevel { get; private set; } |
| | | public static int DemonJarAutoTime { get; private set; } |
| | | |
| | | public static List<int> CrossUseItemIds { get; private set; } |
| | | public static Dictionary<int, Dictionary<int, GA_NpcFightSgzcZZ.EquipRandomInfo>> SgzzRobotEquipDict { get; private set; } |
| | | public static Dictionary<int, int> SgzcRealm { get; private set; } |
| | | |
| | |
| | | { |
| | | try |
| | | { |
| | | CrossUseItemIds = new List<int>(GetIntArray("CrossUseItem")); |
| | | CompareEquipPlaces = GetIntArray("EquipUpType"); |
| | | greatMasterStartLV = GetInt("GreatMasterStartLV"); |
| | | playerMaxLevel = GetInt("PlayerMaxLV"); |
| | |
| | | mountSkillDict = itemTipsModel.GetMountSkillDict(itemTipsModel.curAttrData.itemConfig.EffectValueA1);
|
| | | modelShow.SetModelShow(horseConfig.Model, ModelShowType.mount, Language.Get("TreasureEffect103"), horseConfig.ShowFightPower);
|
| | | break;
|
| | | case 82:
|
| | | case 83:
|
| | | bgObj.anchoredPosition3D = new Vector3(197, 0, 0);
|
| | | modelShow.gameObject.SetActive(true);
|
| | |
| | | return isReach;
|
| | | }
|
| | | break;
|
| | | case 127:
|
| | | int remainNum = CrossServerOneVsOnePlayerInfo.Instance.GetDayRemainNum();
|
| | | if (!CrossServerOneVsOnePKSeason.Instance.isSatisfyMatch
|
| | | || remainNum > 0)
|
| | | {
|
| | | isReach = false;
|
| | | return isReach;
|
| | | }
|
| | | break;
|
| | | default:
|
| | | break;
|
| | | }
|
| | |
| | | fashionModel.jumpFashionDress = useItemModel.chinItemModel.EffectValueA1;
|
| | | break;
|
| | | }
|
| | | if (useItemModel.itemId == 951)
|
| | | {
|
| | | int startLockIndex = singlePack.openGridCount - playerPack.InitBagGridCnt;
|
| | | int chooseGridCnt = singlePack.openGridCount + GetExtendGridCnt(startLockIndex);
|
| | | modelInterface.OpenGrid(chooseGridCnt, PackType.rptItem);
|
| | | return;
|
| | | }
|
| | |
|
| | | if(playerPack.CheckIsDrugById(useItemModel.itemInfo.ItemID))
|
| | | switch(useItemModel.chinItemModel.ID)
|
| | | {
|
| | | case 951:
|
| | | int startLockIndex = singlePack.openGridCount - playerPack.InitBagGridCnt;
|
| | | int chooseGridCnt = singlePack.openGridCount + GetExtendGridCnt(startLockIndex);
|
| | | modelInterface.OpenGrid(chooseGridCnt, PackType.rptItem);
|
| | | return;
|
| | | case 1506:
|
| | | var crossOneVsOneModel = ModelCenter.Instance.GetModel<CrossServerOneVsOneModel>();
|
| | | if (!crossOneVsOneModel.TryGetBuyMatchTimes("CrossMatching26"))
|
| | | {
|
| | | return;
|
| | | }
|
| | | break;
|
| | | }
|
| | | if (playerPack.CheckIsDrugById(useItemModel.itemInfo.ItemID))
|
| | | {
|
| | | if(CheckItemUselimit(useItemModel.chinItemModel))
|
| | | {
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | |
| | |
|
| | | if(itemModel.chinItemModel.Type == 59)
|
| | | {
|
| | | playerPack.SetWashAttrPointModel(itemModel.itemInfo.ItemGUID);
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | bool isCrossServer = CrossServerUtility.IsCrossServerBoss();
|
| | | bool isCrossUseItem = GeneralDefine.CrossUseItemIds.Contains(itemModel.itemId);
|
| | | if(isCrossServer && isCrossUseItem)
|
| | | {
|
| | | SendCrossServerMakeUseItem(index);
|
| | | }
|
| | | else
|
| | | {
|
| | | SendMainServerMakeUseItem(index,useCnt,extra);
|
| | | }
|
| | | }
|
| | |
|
| | | public void SendMainServerMakeUseItem(int index,int useCnt,int extra)
|
| | | {
|
| | | ItemModel itemModel = playerPack.GetItemModelByIndex(PackType.rptItem, index);
|
| | | if (itemModel == null) return;
|
| | |
|
| | | CA323_tagCMUseItems useItem = new CA323_tagCMUseItems();
|
| | | useItem.ItemIndex = (byte)index;
|
| | | useItem.UseCnt = (ushort)useCnt;
|
| | |
| | | GameNetSystem.Instance.SendInfo(useItem); //使用物品
|
| | | }
|
| | |
|
| | | public void SendCrossServerMakeUseItem(int index)
|
| | | {
|
| | | ItemModel itemModel = playerPack.GetItemModelByIndex(PackType.rptItem, index);
|
| | | if (itemModel == null) return;
|
| | |
|
| | | CC107_tagCMCrossUseItem useItem = new CC107_tagCMCrossUseItem();
|
| | | useItem.ItemID = (uint)itemModel.itemId;
|
| | | GameNetSystem.Instance.SendToCrossServer(useItem);
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region 发送拆分请求
|
| | |
| | | return itemModel;
|
| | | }
|
| | |
|
| | | public List<ItemModel> GetItemModelsById(PackType type, int id)
|
| | | {
|
| | | List<ItemModel> itemModels= null;
|
| | | if (playerPackDict.ContainsKey(type))
|
| | | {
|
| | | var singlePack = playerPackDict[type];
|
| | | singlePack.GetItemCountByID(id,out itemModels);
|
| | | }
|
| | | return itemModels;
|
| | | }
|
| | |
|
| | | public string GetItemGUIDByID(int itemId)
|
| | | {
|
| | | string guid = string.Empty;
|
| | |
| | | {
|
| | | m_RealmLV.SetSprite("NoRealm");
|
| | | }
|
| | | m_RealmLV.SetNativeSize();
|
| | |
|
| | | }
|
| | |
|
| | |
| | | limitedTimePackageItemModel.UpdateLimitedTimePackageItem += UpdateLimitedTimePackageItem;
|
| | | impactRankModel.inImpactRankUpdate += InImpactRankUpdate;
|
| | | OpenServerModel.IsOpenEvent += IsOpenEvent;
|
| | | OpenServerModel.IsPreviewTimeUpdate += IsOpenEvent;
|
| | | }
|
| | |
|
| | | public void Unit()
|
| | |
| | | limitedTimePackageItemModel.UpdateLimitedTimePackageItem -= UpdateLimitedTimePackageItem;
|
| | | impactRankModel.inImpactRankUpdate -= InImpactRankUpdate;
|
| | | OpenServerModel.IsOpenEvent -= IsOpenEvent;
|
| | | OpenServerModel.IsPreviewTimeUpdate -= IsOpenEvent;
|
| | | }
|
| | |
|
| | | private void IsOpenEvent()
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | C0801_tagCNPCTalk _C0801 = new C0801_tagCNPCTalk();
|
| | | _C0801.NPCID = instanceId;
|
| | | _C0801.PosX = (ushort)Posx;
|
| | | _C0801.PosY = (ushort)PosY;
|
| | |
|
| | | if (CrossServerUtility.IsCrossServer())
|
| | | {
|
| | | GameNetSystem.Instance.SendToCrossServer(_C0801);
|
| | | var sendInfo = new CC106_tagCMCrossNPCTalk();
|
| | | sendInfo.ObjID = instanceId;
|
| | | sendInfo.NPCID = (uint)NPcID;
|
| | | sendInfo.PosX = (ushort)Posx;
|
| | | sendInfo.PosY = (ushort)PosY;
|
| | | GameNetSystem.Instance.SendInfo(sendInfo);
|
| | | }
|
| | | else
|
| | | {
|
| | | C0801_tagCNPCTalk _C0801 = new C0801_tagCNPCTalk();
|
| | | _C0801.NPCID = instanceId;
|
| | | _C0801.PosX = (ushort)Posx;
|
| | | _C0801.PosY = (ushort)PosY;
|
| | | GameNetSystem.Instance.SendInfo(_C0801);
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | int ID = cell.index;
|
| | | var config = Config.Instance.Get<WeekPartyConfig>(ID);
|
| | | if (config==null||!model.WeekPartyDayInfoDic.ContainsKey(model.SelectedNow) || !model.WeekPartyActionDic.ContainsKey(ID))
|
| | | if (config==null||/*!model.WeekPartyDayInfoDic.ContainsKey(model.SelectedNow) ||*/ !model.WeekPartyActionDic.ContainsKey(ID))
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | int rewardNum = model.GetRewardNumber(model.SelectedNow, ID);//已领奖次数
|
| | | int carryOutNum = model.GetCarryOutNum(model.SelectedNow, ID);//已完成次数
|
| | | int number = WeekPartyAction.TotalTimes / WeekPartyAction.SingleTimes;
|
| | | if (number - rewardNum > 0)
|
| | | var RemainingNum = 0;
|
| | | if (WeekPartyAction.TotalTimes - rewardNum > 0)
|
| | | {
|
| | | m_TextA.text = Language.Get("OSA_1", (number - rewardNum));
|
| | | RemainingNum = (WeekPartyAction.TotalTimes - rewardNum) / WeekPartyAction.SingleTimes;
|
| | | }
|
| | | if (WeekPartyAction.TotalTimes -carryOutNum> 0)
|
| | | {
|
| | | m_TextA.text = Language.Get("OSA_1", RemainingNum);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_TextA.text = Language.Get("OSA_4");
|
| | | }
|
| | | m_TextB.text = string.Format(config.Description,1);
|
| | | |
| | | if (config.ActionType == 20)
|
| | | {
|
| | | m_TextB.text = string.Format(config.Description,(model.SelectedNow+1));
|
| | | }
|
| | | else
|
| | | {
|
| | | m_TextB.text = string.Format(config.Description, WeekPartyAction.SingleTimes);
|
| | | }
|
| | | m_TextC.text = Language.Get("OSA_2", WeekPartyAction.Point);
|
| | | for (int i = 0; i < m_ItemList.childCount; i++)
|
| | | {
|
| | |
| | | Obj.SetActive(false);
|
| | | }
|
| | | }
|
| | | if (model.SelectedNow != model.DayNow)
|
| | | bool IsOpenPreviewTime = model.IsPreviewTime();
|
| | | if (model.SelectedNow != model.DayNow || IsOpenPreviewTime)
|
| | | {
|
| | | if (model.SelectedNow > model.DayNow)//还未到达的天数
|
| | | if (model.SelectedNow > model.DayNow || IsOpenPreviewTime)//还未到达的天数
|
| | | {
|
| | | m_Btn.gameObject.SetActive(false);
|
| | | m_TextNumber.gameObject.SetActive(false);
|
| | |
| | | m_Draw.SetActive(false);
|
| | | m_Btn.SetListener(() =>
|
| | | {
|
| | | model.SendGetWeekParty(model.SelectedNow, ID);
|
| | | DebugEx.LogError("-----------------------------");
|
| | | if (model.IsOpen)
|
| | | {
|
| | | model.SendGetWeekParty(model.SelectedNow, ID);
|
| | | }
|
| | | else
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("SevenDayOver");
|
| | | }
|
| | | });
|
| | | }
|
| | | else
|
| | |
| | | if (TaypeNumber > 0)//可领
|
| | | {
|
| | | m_TextNumber.gameObject.SetActive(true);
|
| | | m_TextNumber.text = carryOutNum + "/" + number;
|
| | | m_TextNumber.text = SetText(ID);
|
| | | m_Btn.gameObject.SetActive(true);
|
| | | UIEffect uieffect = m_Btn.GetComponent<UIEffect>();
|
| | | uieffect.Play();
|
| | |
| | | m_Draw.SetActive(false);
|
| | | m_Btn.SetListener(() =>
|
| | | {
|
| | | model.SendGetWeekParty(model.SelectedNow, ID);
|
| | | DebugEx.LogError("-----------------------------");
|
| | |
|
| | | if (model.IsOpen)
|
| | | {
|
| | | model.SendGetWeekParty(model.SelectedNow, ID);
|
| | | }
|
| | | else
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("SevenDayOver");
|
| | | } |
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | | if (rewardNum >= number)//已经领完
|
| | | if (rewardNum >= WeekPartyAction.TotalTimes)//已经领完
|
| | | {
|
| | | m_TextNumber.gameObject.SetActive(false);
|
| | | m_Btn.gameObject.SetActive(false);
|
| | |
| | | else//未到达(前往)
|
| | | {
|
| | | m_TextNumber.gameObject.SetActive(true);
|
| | | m_TextNumber.text = carryOutNum + "/" + number;
|
| | | m_TextNumber.text = SetText(ID);
|
| | | m_Btn.gameObject.SetActive(true);
|
| | | m_BtnText.text = Language.Get("RealmPractice108");//前往
|
| | | UIEffect uieffect = m_Btn.GetComponent<UIEffect>();
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | |
| | | }
|
| | | string SetText( int ID)
|
| | | {
|
| | | string str = string.Empty;
|
| | | var WeekPartyAction = model.WeekPartyActionDic[ID];
|
| | | int rewardNum = model.GetRewardNumber(model.SelectedNow, ID);//已领奖次数
|
| | | int carryOutNum = model.GetCarryOutNum(model.SelectedNow, ID);//已完成次数
|
| | | int TaypeNumber = 0;
|
| | | if (carryOutNum - rewardNum > 0)
|
| | | {
|
| | | TaypeNumber = (carryOutNum - rewardNum) / WeekPartyAction.SingleTimes;
|
| | | }
|
| | | if (TaypeNumber > 0)
|
| | | {
|
| | | str = WeekPartyAction.SingleTimes + "/" + WeekPartyAction.SingleTimes;
|
| | | return str;
|
| | | }
|
| | | else
|
| | | {
|
| | | int type = carryOutNum % WeekPartyAction.SingleTimes;
|
| | | str = type + "/" + WeekPartyAction.SingleTimes;
|
| | | }
|
| | | var config = Config.Instance.Get<WeekPartyConfig>(ID);
|
| | | if (config != null && config.ActionType == 13)
|
| | | {
|
| | |
|
| | | if (carryOutNum > 0)
|
| | | {
|
| | | str = "1/1";
|
| | | }
|
| | | else
|
| | | {
|
| | | str = "0/1";
|
| | | }
|
| | | }
|
| | | return str;
|
| | | }
|
| | | } |
| | | |
| | | } |
| | |
| | | public Redpoint redPointStre1 = new Redpoint(214, Redpoint_key1);
|
| | | private int _SelectedNow = 0;
|
| | | private int ResetType = 0;// 重置类型,0-0点重置;1-5点重置
|
| | | public event Action IsOpenEvent;
|
| | | private int AdvanceMinutes = 0;//提前显示分钟
|
| | | private bool isPreviewTime = false;
|
| | | private bool isOpenNow = false;
|
| | | public event Action IsOpenEvent;//功能是否开启
|
| | | public event Action IsPreviewTimeUpdate;//功能是否提前开启
|
| | | private int _JumpIndex = -1;//跳转选中值
|
| | | public int JumpIndex
|
| | | {
|
| | |
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | WeekPartyDayInfoDic.Clear();
|
| | | WeekPartyDayDic.Clear();
|
| | | WeekPartyActionDic.Clear();
|
| | | isOpenNow = false;
|
| | | isPreviewTime = false;
|
| | | }
|
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | GlobalTimeEvent.Instance.secondEvent -= secondEvent;
|
| | | GlobalTimeEvent.Instance.secondEvent += secondEvent;
|
| | | SetRedPoint();
|
| | |
|
| | | }
|
| | |
|
| | | private void secondEvent()
|
| | | {
|
| | | bool _bool = IsPreviewTime();
|
| | | if (_bool && !isPreviewTime)
|
| | | {
|
| | | isPreviewTime = true;
|
| | | _IsOpen = true;
|
| | | if (IsPreviewTimeUpdate != null)
|
| | | {
|
| | | IsPreviewTimeUpdate();
|
| | | }
|
| | | }
|
| | | GetIsOpen();//判断功能是否开启
|
| | | GetDayNow();
|
| | |
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | |
| | | WeekPartyDayInfo.DayIndex = (int)DayInfo.DayIndex;
|
| | | WeekPartyDayInfo.Point = (int)DayInfo.Point;
|
| | | WeekPartyDayInfo.AwardRecord = (int)DayInfo.AwardRecord;
|
| | | WeekPartyDayInfo.ActionType = new ActionTypeClass[DayInfo.ACount];
|
| | | for (int k = 0; k < DayInfo.ACount; k++)
|
| | | {
|
| | | var Task = DayInfo.TaskList[k];
|
| | | ActionTypeClass ActionType = new ActionTypeClass();
|
| | | ActionType.TemplateID = Task.TemplateID;
|
| | | ActionType.CurTimes = Task.CurTimes;
|
| | | ActionType.GotTimes = Task.GotTimes;
|
| | | WeekPartyDayInfo.ActionType[k] = ActionType;
|
| | | }
|
| | | |
| | | if (WeekPartyDayInfoDic.ContainsKey((int)DayInfo.DayIndex))
|
| | | {
|
| | | WeekPartyDayInfoDic[(int)DayInfo.DayIndex] = WeekPartyDayInfo;
|
| | | var dit = WeekPartyDayInfoDic[(int)DayInfo.DayIndex];
|
| | | dit.DayIndex= (int)DayInfo.DayIndex; |
| | | dit.Point = (int)DayInfo.Point; |
| | | dit.AwardRecord= (int)DayInfo.AwardRecord;
|
| | | for (int j = 0; j < dit.ActionType.Length; j++)
|
| | | {
|
| | | if (dit.ActionType[j].TemplateID == DayInfo.TaskList[0].TemplateID)
|
| | | {
|
| | | ActionTypeClass ActionType = new ActionTypeClass();
|
| | | ActionType.TemplateID = DayInfo.TaskList[0].TemplateID;
|
| | | ActionType.CurTimes = DayInfo.TaskList[0].CurTimes;
|
| | | ActionType.GotTimes = DayInfo.TaskList[0].GotTimes;
|
| | | dit.ActionType[j] = ActionType;
|
| | | } |
| | | }
|
| | | WeekPartyDayInfoDic[(int)DayInfo.DayIndex] = dit;
|
| | | }
|
| | | else
|
| | | {
|
| | | WeekPartyDayInfo.ActionType = new ActionTypeClass[DayInfo.ACount];
|
| | | for (int k = 0; k < DayInfo.ACount; k++)
|
| | | {
|
| | | var Task = DayInfo.TaskList[k];
|
| | | ActionTypeClass ActionType = new ActionTypeClass();
|
| | | ActionType.TemplateID = Task.TemplateID;
|
| | | ActionType.CurTimes = Task.CurTimes;
|
| | | ActionType.GotTimes = Task.GotTimes;
|
| | | WeekPartyDayInfo.ActionType[k] = ActionType;
|
| | | }
|
| | | WeekPartyDayInfoDic.Add((int)DayInfo.DayIndex, WeekPartyDayInfo);
|
| | | }
|
| | | }
|
| | |
| | | TimeDayBeginAndOver[1] = TimeDay;
|
| | | }
|
| | | LimitLV = info.LimitLV;
|
| | |
|
| | | AdvanceMinutes = info.AdvanceMinutes;
|
| | | for (int i = 0; i < info.DayCnt; i++)
|
| | | {
|
| | | int Index = i;
|
| | |
| | | }
|
| | | public int GetRewardNumber(int Day, int ID)//获取领奖次数
|
| | | {
|
| | | int Num = -1;
|
| | | int Num =0;
|
| | | if (WeekPartyDayInfoDic.ContainsKey(Day))
|
| | | {
|
| | | var WeekPartyDay = WeekPartyDayInfoDic[Day];
|
| | |
| | | DateTime time2 = new DateTime(TimeUtility.ServerNow.Year, TimeUtility.ServerNow.Month, TimeUtility.ServerNow.Day, TimeUtility.ServerNow.Hour, TimeUtility.ServerNow.Minute, TimeUtility.ServerNow.Second);
|
| | | TimeSpan ts = time2.Subtract(time1);
|
| | | Day = (int)ts.TotalDays;
|
| | | DebugEx.LogError("输出当前的天数" + Day);
|
| | | DayNow = Day;
|
| | | if (Day <= 0)
|
| | | {
|
| | | Day = 0;
|
| | | }
|
| | | // DebugEx.LogError("输出当前的天数" + Day);
|
| | | if (DayNow != Day && Day<7)
|
| | | {
|
| | | DayNow = Day;
|
| | | if (WeekPartyDayInfoUpdate != null)
|
| | | {
|
| | | WeekPartyDayInfoUpdate();
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | public void SendGetWeekParty(int day, int temdayplateID)//领取周狂欢活动奖励
|
| | |
| | | bool IsBool = IsDayReward(day, type);
|
| | | if (point >= item.NeedPoint && !IsBool)
|
| | | {
|
| | | return RedPointState.Simple;
|
| | | return RedPointState.GetReward;
|
| | | }
|
| | | }
|
| | | for (int i = 0; i < WeekPartyDay.TemplateList.Length; i++)
|
| | |
| | | }
|
| | | if (TaypeNumber > 0 && rewardNum< number)
|
| | | {
|
| | | return RedPointState.Simple;
|
| | | return RedPointState.GetReward;
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | DateTime timeEnd = new DateTime(time2.Year, time2.Month, time2.Day, hour, 0, 0);
|
| | | DateTime timeNow= new DateTime(TimeUtility.ServerNow.Year, TimeUtility.ServerNow.Month, TimeUtility.ServerNow.Day, TimeUtility.ServerNow.Hour, TimeUtility.ServerNow.Minute, TimeUtility.ServerNow.Second);
|
| | | int PlayerLv = PlayerDatas.Instance.baseData.LV;
|
| | | if (PlayerLv >= LimitLV && timeNow >= timeStar && timeNow < timeEnd && !_IsOpen)
|
| | | if (PlayerLv >= LimitLV && timeNow >= timeStar && timeNow < timeEnd && !isOpenNow)
|
| | | {
|
| | | isOpenNow = true;
|
| | | _IsOpen = true;
|
| | | if (IsOpenEvent != null)
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | }
|
| | | if (timeNow > timeEnd && _IsOpen)
|
| | | if (timeNow > timeEnd && isOpenNow)
|
| | | {
|
| | | isOpenNow = false;
|
| | | _IsOpen = false;
|
| | | if (IsOpenEvent != null)
|
| | | {
|
| | |
| | | }
|
| | | return Isbool;
|
| | | }
|
| | |
|
| | | public bool IsPreviewTime()//是否再预览时间
|
| | | {
|
| | | bool _bool = false;
|
| | | var time1 = TimeDayBeginAndOver[0];
|
| | | var time2 = TimeDayBeginAndOver[1];
|
| | | if (TimeDayBeginAndOver.Length <= 0 || time1 == null || time2 == null)
|
| | | {
|
| | | return _bool;
|
| | | }
|
| | | int hour = 0;
|
| | | if (ResetType == 0)
|
| | | {
|
| | | hour = 0;
|
| | | }
|
| | | else
|
| | | {
|
| | | hour = 5;
|
| | | }
|
| | | DateTime timeStar = new DateTime(time1.Year, time1.Month, time1.Day, hour, 0, 0);
|
| | | var TimeStar2 = timeStar.AddMinutes(-AdvanceMinutes);
|
| | | DateTime timeNow = new DateTime(TimeUtility.ServerNow.Year, TimeUtility.ServerNow.Month, TimeUtility.ServerNow.Day, TimeUtility.ServerNow.Hour, TimeUtility.ServerNow.Minute, TimeUtility.ServerNow.Second);
|
| | |
|
| | | if (timeNow >= TimeStar2 && timeNow < timeStar)
|
| | | {
|
| | | _bool = true;
|
| | | }
|
| | | return _bool;
|
| | | }
|
| | | } |
| | | |
| | | |
| | |
| | | SetTextIntegral();
|
| | | OnCreateGridLineCell1(m_ScrollerController1);
|
| | | OnCreateGridLineCell2(m_ScrollerController2); |
| | | if (model.SelectedNow >= 5)
|
| | | {
|
| | | m_ScrollerController1.JumpIndex(5);
|
| | | } |
| | | } |
| | | |
| | | protected override void OnAfterOpen() |
| | |
| | | }
|
| | | private void WeekPartyDayInfoUpdate()//列表刷新
|
| | | {
|
| | | GetPointRewardObj();//获取积分领奖信息
|
| | | m_ScrollerController1.m_Scorller.RefreshActiveCellViews();//刷新可见
|
| | | m_ScrollerController2.m_Scorller.RefreshActiveCellViews();//刷新可见
|
| | | }
|
| | |
| | | var config = Config.Instance.Get<WeekPartyConfig>(TemplateId);
|
| | | if (config == null)
|
| | | {
|
| | | return;
|
| | | continue;
|
| | | }
|
| | | if (config.DailyQusetId != 0)
|
| | | {
|
| | |
| | | int number = WeekPartyAction.TotalTimes / WeekPartyAction.SingleTimes;
|
| | | int rewardNum = model.GetRewardNumber(model.SelectedNow, ID);//已领奖次数
|
| | | int carryOutNum = model.GetCarryOutNum(model.SelectedNow, ID);//已完成次数
|
| | | int TaypeNumber = 0;
|
| | | if (carryOutNum - rewardNum > 0)
|
| | | {
|
| | | TaypeNumber = (carryOutNum - rewardNum) / WeekPartyAction.SingleTimes;
|
| | | }
|
| | | if (TaypeNumber <= 0)
|
| | | if (WeekPartyAction.TotalTimes> rewardNum)
|
| | | {
|
| | | Bool = true;
|
| | | }
|
| | | } |
| | | }
|
| | | return Bool;
|
| | | } |
| | |
| | | if (model.WeekPartyActionDic.ContainsKey(ID))
|
| | | {
|
| | | var WeekPartyAction = model.WeekPartyActionDic[ID];
|
| | | int number = WeekPartyAction.TotalTimes / WeekPartyAction.SingleTimes;
|
| | | int rewardNum = model.GetRewardNumber(model.SelectedNow, ID);//已领奖次数
|
| | | int carryOutNum = model.GetCarryOutNum(model.SelectedNow, ID);//已完成次数
|
| | | if (rewardNum > number)
|
| | | if (rewardNum >= WeekPartyAction.TotalTimes)
|
| | | {
|
| | | Bool = true;
|
| | | }
|
| | |
| | | }
|
| | | foreach (var key in model.RedPointDic.Keys)//红点选择可领取的天
|
| | | {
|
| | | if (model.RedPointDic[key].state == RedPointState.Simple)
|
| | | if (model.RedPointDic[key].state == RedPointState.GetReward)
|
| | | {
|
| | | model.SelectedNow = key;
|
| | | return;
|
| | |
| | | int Point = model.GetPoint(day);
|
| | | m_TextPoint.text = Language.Get("OSA_3", item.NeedPoint);
|
| | | bool IsBool = model.IsDayReward(model.SelectedNow, index);
|
| | | |
| | | if (model.SelectedNow > model.DayNow)
|
| | | {
|
| | | m_ReceiveBtn.gameObject.SetActive(false);
|
| | |
| | | m_ReceiveBtn.gameObject.SetActive(true);
|
| | | m_ReceiveBtn.SetListener(() =>
|
| | | {
|
| | | model.SendGetWeekPartyPoint(model.SelectedNow, item.NeedPoint);
|
| | | if (model.IsOpen)
|
| | | {
|
| | | model.SendGetWeekPartyPoint(model.SelectedNow, item.NeedPoint);
|
| | | }
|
| | | else
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("SevenDayOver");
|
| | | } |
| | | });
|
| | | m_IsReachImage.SetActive(false);
|
| | | m_IsDrawImage.SetActive(false);
|
| | |
| | | {
|
| | | if (job == 1)
|
| | | {
|
| | | secondaryResId = clothesId + 2900;
|
| | | secondaryResId = ModelResConfig.GetHandByClothesID(clothesId);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | PutOnSecondary(job, secondaryResId);
|
| | |
|
| | | var extraSecondaryId = 0;
|
| | | if (job == 1 && fashionSecondaryId > 0 && fashionClothesId == 0)
|
| | | if (job == 1)
|
| | | {
|
| | | if (clothesId == 0)
|
| | | extraSecondaryId = ModelResConfig.GetHandByClothesID(0);
|
| | | if (fashionClothesId > 0)
|
| | | {
|
| | | extraSecondaryId = jobConfig.BaseEquip[0] + 2900;
|
| | | var _item = Config.Instance.Get<ItemConfig>(fashionClothesId);
|
| | | if (_item != null)
|
| | | {
|
| | | extraSecondaryId = ModelResConfig.GetHandByClothesID(_item.ChangeOrd);
|
| | | }
|
| | | }
|
| | | else
|
| | | else if (clothesId > 0)
|
| | | {
|
| | | var item = Config.Instance.Get<ItemConfig>(clothesId);
|
| | | var defaultClothesResId = item == null ? jobConfig.BaseEquip[0] : item.ChangeOrd;
|
| | | extraSecondaryId = defaultClothesResId + 2900;
|
| | | var _item = Config.Instance.Get<ItemConfig>(clothesId);
|
| | | if (_item != null)
|
| | | {
|
| | | extraSecondaryId = ModelResConfig.GetHandByClothesID(_item.ChangeOrd);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | PutOnExtraSecondary(job, extraSecondaryId);
|
| | | PutOnExtraSecondary(job, extraSecondaryId);
|
| | | }
|
| | |
|
| | | return clothesModel;
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public static bool IsEquipShowSwitchOn(EquipShowSwitchType type, uint value)
|
| | | {
|
| | | if ((int)type >= (int)EquipShowSwitchType.max)
|
| | | {
|
| | | return false;
|
| | | }
|
| | | return MathUtility.GetBitValue(value, (ushort)type);
|
| | | }
|
| | |
|
| | | public static void SendPackage(uint value)
|
| | | {
|
| | | C032F_tagCRequestEquipShowHide pak = new C032F_tagCRequestEquipShowHide();
|
| | |
| | |
|
| | | namespace EnhancedUI.EnhancedScroller
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class GodWeaponCell : CellView
|
| | | {
|
| | | [SerializeField] Text m_Level;
|
| | |
| | | void Display()
|
| | | {
|
| | | var defaultStage = model.GetGodWeaponStage(selectGodWeaponType);
|
| | | defaultStage = Mathf.Clamp(defaultStage + 1, 1, 3);
|
| | | var level = 0;
|
| | | if (EquipShowSwitch.IsGodWeaponEffectOn(PlayerDatas.Instance.baseData.equipShowSwitch, selectGodWeaponType, out level))
|
| | | {
|
| | | var _stage = 0;
|
| | | if (model.TryGetGodWeaponStage(selectGodWeaponType, level, out _stage))
|
| | | {
|
| | | defaultStage = _stage;
|
| | | }
|
| | | }
|
| | |
|
| | | defaultStage = Mathf.Clamp(defaultStage, 1, 3);
|
| | | OnSelectStage(defaultStage);
|
| | | DisplayEquip();
|
| | | }
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | [XLua.LuaCallCSharp]
|
| | | public class MagicianModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | #region 红点
|
| | | public const int MAGICAIN_REDPOINT = 10104;
|
| | | public const int MAGICAIN_REDPOINT = 10103;
|
| | | public const int MAGICAIN_INTERVAL = 100;
|
| | | public Dictionary<int, Redpoint> redpointDict = new Dictionary<int, Redpoint>();
|
| | | Redpoint magicianPoint = new Redpoint(101, MAGICAIN_REDPOINT);
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class MagicianWin : Window
|
| | | {
|
| | | [SerializeField] ScrollerController m_GodWeaponController;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class PropertyBehaviour : MonoBehaviour
|
| | | {
|
| | | [SerializeField] Text m_PropertyName;
|
| | |
| | | {
|
| | | if (playerPack.GetReaminGridCount(PackType.rptItem) < 5 && modelInterface.isPackResetOk)
|
| | | {
|
| | | if (HangUpSetModel.Instance.GetBool(HangUpAutoBoolType.isAutoSell)
|
| | | && !isStartOneKeySell
|
| | | && modelInterface.GetSellItemList().Count > 0)
|
| | | {
|
| | | modelInterface.SendOneKeySellQuest(modelInterface.GetSellItemList());
|
| | | return;
|
| | | }
|
| | |
|
| | | if (HangUpSetModel.Instance.GetBool(HangUpAutoBoolType.isAutoDevour) && !isStartDecompose)
|
| | | {
|
| | | if(playerPack.IsReachMinDecomposeNum())
|
| | |
| | | playerPack.SendEquipdevourQuest();
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | if (HangUpSetModel.Instance.GetBool(HangUpAutoBoolType.isAutoSell) |
| | | && !isStartOneKeySell
|
| | | && modelInterface.GetSellItemList().Count > 0)
|
| | | {
|
| | | modelInterface.SendOneKeySellQuest(modelInterface.GetSellItemList());
|
| | | return;
|
| | | }
|
| | | }
|
| | | }
|
| New file |
| | |
| | | using System;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | using System.Collections;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class ButtonClickInterval : MonoBehaviour
|
| | | {
|
| | | [SerializeField] float interval = 1f;
|
| | | [SerializeField] Button targetBtn;
|
| | |
|
| | | private void Awake()
|
| | | {
|
| | | targetBtn.AddListener(OnClick);
|
| | | }
|
| | |
|
| | | private void OnClick()
|
| | | {
|
| | | targetBtn.enabled = false;
|
| | | StartCoroutine(DelayClick());
|
| | | }
|
| | |
|
| | | IEnumerator DelayClick()
|
| | | {
|
| | | yield return new WaitForSeconds(interval);
|
| | | targetBtn.enabled = true;
|
| | | }
|
| | | }
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 4761530da641c6b49ae3d21a397bea40 |
| | | timeCreated: 1547433750 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | |
|
| | | public void ShowSitDownPlayer(RawImage _rawImage, int _job)
|
| | | {
|
| | | ShowPlayer(_rawImage, _job);
|
| | | var clothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retClothes);
|
| | | var flashClothes = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionClothes);
|
| | | var clothesId = clothes == null ? 0 : (int)clothes.itemInfo.ItemID;
|
| | | var flashClothesId = flashClothes == null ? 0 : flashClothes.itemInfo.ItemID;
|
| | |
|
| | | var weapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon);
|
| | | var flashWeapon = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon);
|
| | | var weaponId = weapon == null ? 0 : (int)weapon.itemInfo.ItemID;
|
| | | var flashWeaponId = flashWeapon == null ? 0 : flashWeapon.itemInfo.ItemID;
|
| | |
|
| | | var wings = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWing);
|
| | | var wingsId = wings == null ? 0 : (int)wings.itemInfo.ItemID;
|
| | |
|
| | | var flahsSecondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retFashionWeapon2);
|
| | | var secondary = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWeapon2);
|
| | | var secondaryId = secondary == null ? 0 : (int)secondary.itemInfo.ItemID;
|
| | | var flashSecondaryId = flahsSecondary == null ? 0 : flahsSecondary.itemInfo.ItemID;
|
| | |
|
| | | int suitLevel = 0;
|
| | | if (clothes != null)
|
| | | {
|
| | | if (clothes.itemInfo.IsSuite == 1)
|
| | | {
|
| | | if (clothes.GetUseDataModel(30) != null && clothes.GetUseDataModel(30)[0] != 0)
|
| | | {
|
| | | suitLevel = clothes.GetUseDataModel(30)[0];
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | Dictionary<int, int> dict = null;
|
| | | EquipShowSwitch.IsGodWeaponEffectOn(PlayerDatas.Instance.baseData.equipShowSwitch, out dict);
|
| | | if (dict != null && dict.ContainsKey(2))
|
| | | {
|
| | | dict.Remove(2);
|
| | | }
|
| | | var data = new UI3DPlayerExhibitionData
|
| | | {
|
| | | job = _job,
|
| | | fashionClothesId = flashClothesId,
|
| | | fashionWeaponId = flashWeaponId,
|
| | | fashionSecondaryId = flashSecondaryId,
|
| | | clothesId = clothesId,
|
| | | suitLevel = suitLevel,
|
| | | weaponId = weaponId,
|
| | | wingsId = wingsId,
|
| | | secondaryId = secondaryId,
|
| | | isDialogue = false,
|
| | | godWeapons = dict
|
| | | };
|
| | | ShowOtherPlayer(_rawImage, data);
|
| | | if (playerModel != null)
|
| | | {
|
| | | playerModel.SitDown();
|
| | |
| | | {
|
| | | if (this.job == 1)
|
| | | {
|
| | | secondaryResId = this.clothesId + 2900;
|
| | | secondaryResId = ModelResConfig.GetHandByClothesID(clothesId);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | PutOnSecondary(job, secondaryResId);
|
| | |
|
| | | var extraSecondaryId = 0;
|
| | | if (data.job == 1 && data.fashionSecondaryId > 0 && data.fashionClothesId == 0)
|
| | | if (data.job == 1)
|
| | | {
|
| | | if (data.clothesId == 0)
|
| | | extraSecondaryId = ModelResConfig.GetHandByClothesID(0);
|
| | | if (data.fashionClothesId > 0)
|
| | | {
|
| | | extraSecondaryId = jobConfig.BaseEquip[0] + 2900;
|
| | | var _item = Config.Instance.Get<ItemConfig>(data.fashionClothesId);
|
| | | if (_item != null)
|
| | | {
|
| | | extraSecondaryId = ModelResConfig.GetHandByClothesID(_item.ChangeOrd);
|
| | | }
|
| | | }
|
| | | else
|
| | | else if (data.clothesId > 0)
|
| | | {
|
| | | var item = Config.Instance.Get<ItemConfig>(data.clothesId);
|
| | | var defaultClothesResId = item == null ? jobConfig.BaseEquip[0] : item.ChangeOrd;
|
| | | extraSecondaryId = defaultClothesResId + 2900;
|
| | | var _item = Config.Instance.Get<ItemConfig>(data.clothesId);
|
| | | if (_item != null)
|
| | | {
|
| | | extraSecondaryId = ModelResConfig.GetHandByClothesID(_item.ChangeOrd);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | PutOnExtraSecondary(job, extraSecondaryId);
|
| | | PutOnExtraSecondary(job, extraSecondaryId);
|
| | | }
|
| | |
|
| | | var wingsResId = 0;
|
| | | if (wingsId != 0)
|