Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | using UnityEngine;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ResourcesPath : Singleton<ResourcesPath>
|
| | | {
|
| | |
|
| | |
| | | public static readonly string CONFIG_FODLER = ResourcesOutPath + "refdata/Config";
|
| | |
|
| | | public static readonly string AUDIO_SUFFIX = "Audio/";
|
| | | public static readonly string LUA_FODLER = ResourcesOutPath + "Lua";
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class Singleton<T> where T : class, new() { |
| | | |
| | | private static T m_Instance; |
| | |
| | | using UnityEngine;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SingletonMonobehaviour<T> : MonoBehaviour where T : MonoBehaviour
|
| | | {
|
| | |
|
| | |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | |
| | | public class AssetSource
|
| | | [XLua.LuaCallCSharp] |
| | | public class AssetSource |
| | | { |
| | | |
| | | public static bool allFromEditor {
|
| | | get {
|
| | | return audioFromEditor
|
| | | && effectFromEditor
|
| | | && mobFromEditor
|
| | | && refdataFromEditor
|
| | | && sceneFromEditor
|
| | | && shaderFromEditor
|
| | | && uiFromEditor
|
| | | && builtInFromEditor;
|
| | | }
|
| | | set {
|
| | | audioFromEditor = value;
|
| | | effectFromEditor = value;
|
| | | mobFromEditor = value;
|
| | | refdataFromEditor = value;
|
| | | shaderFromEditor = value;
|
| | | sceneFromEditor = value;
|
| | | uiFromEditor = value;
|
| | | builtInFromEditor = value;
|
| | | }
|
| | | }
|
| | |
|
| | | static bool m_AudioFromEditor = false; |
| | | public static bool audioFromEditor {
|
| | | get {
|
| | | #if UNITY_EDITOR
|
| | | return LocalSave.GetBool("Asset_AudioFromEditor", true);
|
| | | #else
|
| | | return false;
|
| | | #endif
|
| | | }
|
| | | set {
|
| | | #if UNITY_EDITOR
|
| | | LocalSave.SetBool("Asset_AudioFromEditor", value);
|
| | | #else
|
| | | m_AudioFromEditor=value;
|
| | | #endif
|
| | | }
|
| | | }
|
| | |
|
| | | static bool m_EffectFromEditor = false; |
| | | public static bool effectFromEditor {
|
| | | get {
|
| | | #if UNITY_EDITOR
|
| | | return LocalSave.GetBool("Asset_EffectFromEditor", true);
|
| | | #else
|
| | | return false;
|
| | | #endif
|
| | | }
|
| | | set {
|
| | | #if UNITY_EDITOR
|
| | | LocalSave.SetBool("Asset_EffectFromEditor", value);
|
| | | #else
|
| | | m_AudioFromEditor=value;
|
| | | #endif
|
| | | }
|
| | | }
|
| | |
|
| | | static bool m_MobFromEditor = false;
|
| | | public static bool mobFromEditor {
|
| | | get {
|
| | | #if UNITY_EDITOR
|
| | | return LocalSave.GetBool("Asset_MobFromEditor", true);
|
| | | #else
|
| | | return false;
|
| | | #endif
|
| | | }
|
| | | set {
|
| | | #if UNITY_EDITOR
|
| | | LocalSave.SetBool("Asset_MobFromEditor", value);
|
| | | #else
|
| | | m_MobFromEditor=value;
|
| | | #endif
|
| | | }
|
| | | }
|
| | |
|
| | | static bool m_RefdataFromEditor = false; |
| | | public static bool refdataFromEditor {
|
| | | get {
|
| | | #if UNITY_EDITOR
|
| | | return LocalSave.GetBool("Asset_RefdataFromEditor", true);
|
| | | #else
|
| | | return false;
|
| | | #endif
|
| | | }
|
| | | set {
|
| | | #if UNITY_EDITOR
|
| | | LocalSave.SetBool("Asset_RefdataFromEditor", value);
|
| | | #else
|
| | | m_RefdataFromEditor=value;
|
| | | #endif
|
| | | }
|
| | | }
|
| | |
|
| | | static bool m_SceneFromEditor = false; |
| | | public static bool sceneFromEditor {
|
| | | get {
|
| | | #if UNITY_EDITOR
|
| | | return LocalSave.GetBool("Asset_SceneFromEditor", true);
|
| | | #else
|
| | | return false;
|
| | | #endif
|
| | | }
|
| | | set {
|
| | | #if UNITY_EDITOR
|
| | | LocalSave.SetBool("Asset_SceneFromEditor", value);
|
| | | #else
|
| | | m_SceneFromEditor=value;
|
| | | #endif
|
| | | }
|
| | | }
|
| | |
|
| | | static bool m_ShaderFromEditor = false;
|
| | | public static bool shaderFromEditor {
|
| | | get {
|
| | | #if UNITY_EDITOR
|
| | | return LocalSave.GetBool("Asset_ShaderFromEditor", true);
|
| | | #else
|
| | | return false;
|
| | | #endif
|
| | | }
|
| | | set {
|
| | | #if UNITY_EDITOR
|
| | | LocalSave.SetBool("Asset_ShaderFromEditor", value);
|
| | | #else
|
| | | m_ShaderFromEditor=value;
|
| | | #endif
|
| | | }
|
| | | }
|
| | |
|
| | | static bool m_UIFromEditor = false;
|
| | | public static bool uiFromEditor {
|
| | | get {
|
| | | #if UNITY_EDITOR
|
| | | return LocalSave.GetBool("Asset_UIFromEditor", true);
|
| | | #else
|
| | | return false;
|
| | | #endif
|
| | | }
|
| | | set {
|
| | | #if UNITY_EDITOR
|
| | | LocalSave.SetBool("Asset_UIFromEditor", value);
|
| | | #else
|
| | | m_UIFromEditor=value;
|
| | | #endif
|
| | | }
|
| | | }
|
| | |
|
| | | static bool m_BuiltInFromEditor = false;
|
| | | public static bool builtInFromEditor {
|
| | | get {
|
| | | #if UNITY_EDITOR
|
| | | return LocalSave.GetBool("Asset_BuiltInFromEditor", true);
|
| | | #else
|
| | | return false;
|
| | | #endif
|
| | | }
|
| | | set {
|
| | | #if UNITY_EDITOR
|
| | | LocalSave.SetBool("Asset_BuiltInFromEditor", value);
|
| | | #else
|
| | | m_BuiltInFromEditor=value;
|
| | | #endif
|
| | | }
|
| | | public static bool allFromEditor { |
| | | get { |
| | | return audioFromEditor |
| | | && effectFromEditor |
| | | && mobFromEditor |
| | | && refdataFromEditor |
| | | && sceneFromEditor |
| | | && shaderFromEditor |
| | | && uiFromEditor |
| | | && builtInFromEditor; |
| | | } |
| | | set { |
| | | audioFromEditor = value; |
| | | effectFromEditor = value; |
| | | mobFromEditor = value; |
| | | refdataFromEditor = value; |
| | | shaderFromEditor = value; |
| | | sceneFromEditor = value; |
| | | uiFromEditor = value; |
| | | builtInFromEditor = value; |
| | | } |
| | | } |
| | | |
| | | static bool m_AudioFromEditor = false; |
| | | public static bool audioFromEditor { |
| | | get { |
| | | #if UNITY_EDITOR |
| | | return LocalSave.GetBool("Asset_AudioFromEditor", true); |
| | | #else |
| | | return false; |
| | | #endif |
| | | } |
| | | set { |
| | | #if UNITY_EDITOR |
| | | LocalSave.SetBool("Asset_AudioFromEditor", value); |
| | | #else |
| | | m_AudioFromEditor=value; |
| | | #endif |
| | | } |
| | | } |
| | | |
| | | static bool m_EffectFromEditor = false; |
| | | public static bool effectFromEditor { |
| | | get { |
| | | #if UNITY_EDITOR |
| | | return LocalSave.GetBool("Asset_EffectFromEditor", true); |
| | | #else |
| | | return false; |
| | | #endif |
| | | } |
| | | set { |
| | | #if UNITY_EDITOR |
| | | LocalSave.SetBool("Asset_EffectFromEditor", value); |
| | | #else |
| | | m_AudioFromEditor=value; |
| | | #endif |
| | | } |
| | | } |
| | | |
| | | static bool m_MobFromEditor = false; |
| | | public static bool mobFromEditor { |
| | | get { |
| | | #if UNITY_EDITOR |
| | | return LocalSave.GetBool("Asset_MobFromEditor", true); |
| | | #else |
| | | return false; |
| | | #endif |
| | | } |
| | | set { |
| | | #if UNITY_EDITOR |
| | | LocalSave.SetBool("Asset_MobFromEditor", value); |
| | | #else |
| | | m_MobFromEditor=value; |
| | | #endif |
| | | } |
| | | } |
| | | |
| | | static bool m_RefdataFromEditor = false; |
| | | public static bool refdataFromEditor { |
| | | get { |
| | | #if UNITY_EDITOR |
| | | return LocalSave.GetBool("Asset_RefdataFromEditor", true); |
| | | #else |
| | | return false; |
| | | #endif |
| | | } |
| | | set { |
| | | #if UNITY_EDITOR |
| | | LocalSave.SetBool("Asset_RefdataFromEditor", value); |
| | | #else |
| | | m_RefdataFromEditor=value; |
| | | #endif |
| | | } |
| | | } |
| | | |
| | | static bool m_SceneFromEditor = false; |
| | | public static bool sceneFromEditor { |
| | | get { |
| | | #if UNITY_EDITOR |
| | | return LocalSave.GetBool("Asset_SceneFromEditor", true); |
| | | #else |
| | | return false; |
| | | #endif |
| | | } |
| | | set { |
| | | #if UNITY_EDITOR |
| | | LocalSave.SetBool("Asset_SceneFromEditor", value); |
| | | #else |
| | | m_SceneFromEditor=value; |
| | | #endif |
| | | } |
| | | } |
| | | |
| | | static bool m_ShaderFromEditor = false; |
| | | public static bool shaderFromEditor { |
| | | get { |
| | | #if UNITY_EDITOR |
| | | return LocalSave.GetBool("Asset_ShaderFromEditor", true); |
| | | #else |
| | | return false; |
| | | #endif |
| | | } |
| | | set { |
| | | #if UNITY_EDITOR |
| | | LocalSave.SetBool("Asset_ShaderFromEditor", value); |
| | | #else |
| | | m_ShaderFromEditor=value; |
| | | #endif |
| | | } |
| | | } |
| | | |
| | | static bool m_UIFromEditor = false; |
| | | public static bool uiFromEditor { |
| | | get { |
| | | #if UNITY_EDITOR |
| | | return LocalSave.GetBool("Asset_UIFromEditor", true); |
| | | #else |
| | | return false; |
| | | #endif |
| | | } |
| | | set { |
| | | #if UNITY_EDITOR |
| | | LocalSave.SetBool("Asset_UIFromEditor", value); |
| | | #else |
| | | m_UIFromEditor=value; |
| | | #endif |
| | | } |
| | | } |
| | | |
| | | static bool m_BuiltInFromEditor = false; |
| | | public static bool builtInFromEditor { |
| | | get { |
| | | #if UNITY_EDITOR |
| | | return LocalSave.GetBool("Asset_BuiltInFromEditor", true); |
| | | #else |
| | | return false; |
| | | #endif |
| | | } |
| | | set { |
| | | #if UNITY_EDITOR |
| | | LocalSave.SetBool("Asset_BuiltInFromEditor", value); |
| | | #else |
| | | m_BuiltInFromEditor=value; |
| | | #endif |
| | | } |
| | | } |
| | | |
| | | static bool m_LuaFromEditor = false; |
| | | public static bool luaFromEditor { |
| | | get { |
| | | #if UNITY_EDITOR |
| | | return LocalSave.GetBool("Asset_LuaFromEditor", true); |
| | | #else |
| | | return false; |
| | | #endif |
| | | } |
| | | set { |
| | | #if UNITY_EDITOR |
| | | LocalSave.SetBool("Asset_LuaFromEditor", value); |
| | | #else |
| | | m_LuaFromEditor=value; |
| | | #endif |
| | | } |
| | | } |
| | | } |
| | |
| | | using System.Text.RegularExpressions; |
| | | using UnityEngine; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class Equation : Singleton<Equation> |
| | | { |
| | | public static readonly List<char> operatorList = new List<char>() { '*', '-', '+', '/', '^', '!', '@', '%', ';', '#', '$', '~', '&' }; |
| | |
| | | try
|
| | | {
|
| | | packToBusinessTable[_package.cmd].Done(_package);
|
| | | CSharpCallLua.OnRecieveCSharpNetPackage(_package.cmd);
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | static byte[] vCmdBytes = new byte[2];
|
| | | /// <summary>
|
| | | /// 转换一个协议包
|
| | | /// </summary>
|
| | | /// <param name="vBytes"></param>
|
| | | /// <returns></returns>
|
| | | public static GameNetPackBasic TransPack(byte[] vBytes)
|
| | | public static GameNetPackBasic TransPack( ushort cmd, byte[] vBytes)
|
| | | {
|
| | | vBytes = GameNetEncode.BaseXorSub(vBytes);
|
| | |
|
| | | #if UNITY_EDITOR
|
| | | int length = vBytes.Length;
|
| | | string vStr = "";
|
| | |
| | | }
|
| | | #endif
|
| | |
|
| | | Array.Copy(vBytes, 0, vCmdBytes, 0, 2);
|
| | | ushort vPackCmd = (ushort)((ushort)(vCmdBytes[0] << 8) + vCmdBytes[1]);
|
| | |
|
| | | if (packageTable.ContainsKey(vPackCmd)) // 存在相应的登记
|
| | | if (packageTable.ContainsKey(cmd)) // 存在相应的登记
|
| | | {
|
| | | var packageType = packageTable[vPackCmd];
|
| | | var packageType = packageTable[cmd];
|
| | | // 实例化并强转为协议包基类
|
| | | var packageInstance = packageType.Assembly.CreateInstance(packageType.Name) as GameNetPackBasic;
|
| | | packageInstance.ReadFromBytes(vBytes);// 解析内容
|
| | |
| | | NetPkgCtl.AddNetPkg(vStr, NetPkgType.Server, packageInstance.ToString(), FieldPrint.PrintFields(packageInstance), FieldPrint.PrintFieldsExpand(packageInstance, true));
|
| | | #endif
|
| | | return packageInstance;
|
| | | }
|
| | | else
|
| | | {
|
| | | #if UNITY_EDITOR
|
| | | NetPkgCtl.AddNetPkg(vStr, NetPkgType.Server, string.Empty, string.Empty, null);
|
| | | DebugEx.LogFormat("C#层收到未登记的解包协议:{0},{1}", vCmdBytes[0].ToString("x2"), vCmdBytes[1].ToString("x2"));
|
| | | #endif
|
| | | }
|
| | | return null;
|
| | | }
|
| | |
| | | StartCoroutine(AssetBundleUtility.Instance.Initialize());
|
| | | }
|
| | |
|
| | | CSharpCallLua.Init();
|
| | | m_CurrentStage = LaunchStage.ConfigLoad;
|
| | | LaunchPostProcess.Instance.Begin();
|
| | |
|
| | |
| | | OperationLogCollect.Instance.RecordLauchEvent(3);
|
| | | OperationLogCollect.Instance.RecordEvent(3);
|
| | |
|
| | | LuaUtility.Instance.Init();
|
| | | ShaderUtility.WarmUpAll();
|
| | | SpeechTranslate.Instance.RequestGetToken();
|
| | |
|
| | |
| | | using TableConfig;
|
| | | using System;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class LaunchPostProcess : SingletonMonobehaviour<LaunchPostProcess>
|
| | | {
|
| | |
|
| | |
| | | using UnityEngine;
|
| | | using System.Threading;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class Config : Singleton<Config>
|
| | | {
|
| | |
|
| | |
| | | /// <summary> |
| | | /// 宝石数据 |
| | | /// </summary> |
| | | [XLua.LuaCallCSharp] |
| | | public class PlayerStoneData : Singleton<PlayerStoneData> |
| | | { |
| | | private Dictionary<int, uint[]> stoneDic = new Dictionary<int, uint[]>(); |
| | |
| | | using TableConfig;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class MarketModel : Model, IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class MarketModel : Model, IBeforePlayerDataInitialize
|
| | | {
|
| | | public override void Init()
|
| | | {
|
| | |
| | | using System;
|
| | | using Snxxz.UI;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PlayerDatas : Singleton<PlayerDatas>
|
| | | {
|
| | | public GA_Hero hero = null;
|
| | |
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class RealmModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class RealmModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize
|
| | | {
|
| | | DungeonModel m_DungeonModel;
|
| | | DungeonModel dungeonModel
|
| | |
| | | using UnityEngine.Events;
|
| | | using UnityEngine;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SnxxzGame : SingletonMonobehaviour<SnxxzGame>
|
| | | {
|
| | | private event UnityAction m_UpdateActions;
|
| | |
| | | try |
| | | { |
| | | if (_writedBytes == null) |
| | | { |
| | | _writedBytes = new byte[0]; |
| | | } |
| | | |
| | | byte[] vCmdAndSubCmd = new byte[2]; |
| | | vCmdAndSubCmd[0] = (byte)((_cmd & 0xFF00) >> 8); |
| | | vCmdAndSubCmd[1] = (byte)(_cmd & 0xFF); |
| | |
| | | var _lengthBytes = BitConverter.GetBytes((ushort)vCmdAndBody.Length); |
| | | vExCmdAndBody[2] = _lengthBytes[0]; |
| | | vExCmdAndBody[3] = _lengthBytes[1]; |
| | | |
| | | Array.Copy(vCmdAndBody, 0, vExCmdAndBody, 4, vCmdAndBody.Length); |
| | | vCmdAndBody = vExCmdAndBody; |
| | | } |
| | |
| | | using System.Collections.Generic;
|
| | | using Snxxz.UI;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class GameNetSystem : Singleton<GameNetSystem>
|
| | | {
|
| | | NetUpdateBehaviour m_NetUpdateBehaviour;
|
| | |
| | | public class ClientSocketController
|
| | | {
|
| | | Socket m_Socket;
|
| | | public Socket socket
|
| | | {
|
| | | public Socket socket {
|
| | | get { return m_Socket; }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | }
|
| | |
|
| | | static byte[] vCmdBytes = new byte[2];
|
| | | /// <summary>
|
| | | /// 阅读信息
|
| | | /// </summary>
|
| | |
| | | vPackBytes = new byte[vBodyLeng];
|
| | | Array.Copy(fixBytes, vReadIndex + 6, vPackBytes, 0, vBodyLeng); // 提取包的字节内容
|
| | | // 完整的包则读包
|
| | | vNetpack = PackageRegedit.TransPack(vPackBytes);
|
| | | if (vNetpack != null)
|
| | | {
|
| | | if (DebugEx.EnableNetLog)
|
| | | {
|
| | | DebugEx.NetLogFormat("收包:{0}", vNetpack.GetType().Name);
|
| | | }
|
| | |
|
| | | GameNetSystem.Instance.PushPackage(vNetpack);
|
| | | vPackBytes = GameNetEncode.BaseXorSub(vPackBytes);
|
| | | Array.Copy(vPackBytes, 0, vCmdBytes, 0, 2);
|
| | | var cmd = (ushort)((ushort)(vCmdBytes[0] << 8) + vCmdBytes[1]);
|
| | | if (PackageRegedit.Contain(cmd))
|
| | | {
|
| | | vNetpack = PackageRegedit.TransPack(cmd, vPackBytes);
|
| | | if (vNetpack != null)
|
| | | {
|
| | | if (DebugEx.EnableNetLog)
|
| | | {
|
| | | DebugEx.NetLogFormat("收包:{0}", vNetpack.GetType().Name);
|
| | | }
|
| | |
|
| | | GameNetSystem.Instance.PushPackage(vNetpack);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | CSharpCallLua.OnRecieveLuaNetPackage(cmd, vPackBytes);
|
| | | }
|
| | |
|
| | | vReadIndex += 6 + vBodyLeng;
|
| | | }
|
| | | }
|
| | |
| | | Array.Copy(vMsgBodyLength, 0, vTotal, 2, vMsgBodyLength.Length);
|
| | | Array.Copy(vBytes, 0, vTotal, 6, vBytes.Length);
|
| | |
|
| | | SendBytes(vBytes);
|
| | | SendBytes(vTotal);
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class AssetBundleUtility : SingletonMonobehaviour<AssetBundleUtility>
|
| | | {
|
| | | private List<AssetBundleInfo> m_AssetBundleInfoList = new List<AssetBundleInfo>();
|
| | |
| | | return audioClip; |
| | | } |
| | | |
| | | public static T LoadScriptableObject<T>(string name) where T : ScriptableObject |
| | | { |
| | | |
| | | T config = null; |
| | | if (AssetSource.builtInFromEditor) |
| | | { |
| | | #if UNITY_EDITOR |
| | | var resourcePath = StringUtility.Contact(ResourcesPath.ResourcesOutAssetPath, |
| | | "BuiltIn/ScriptableObject/", name, ".asset"); |
| | | |
| | | config = UnityEditor.AssetDatabase.LoadAssetAtPath<T>(resourcePath); |
| | | #endif |
| | | } |
| | | else |
| | | { |
| | | var assetInfo = new AssetInfo("builtin/scriptableobject", name); |
| | | config = AssetBundleUtility.Instance.Sync_LoadAsset(assetInfo) as T; |
| | | } |
| | | |
| | | if (config == null) |
| | | { |
| | | Debug.LogErrorFormat("BuiltIn.LoadScriptableObject() => 加载不到资源: {0}.", name); |
| | | } |
| | | |
| | | return config; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | using System;
|
| | | using TableConfig;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class GameObjectPoolManager : SingletonMonobehaviour<GameObjectPoolManager>
|
| | | {
|
| | | #if UNITY_EDITOR
|
| | |
| | | using TableConfig;
|
| | | using System.IO;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class UILoader
|
| | | {
|
| | | readonly static string PREFAB_EXTERSION = ".prefab";
|
| | |
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SDKUtility : SingletonMonobehaviour<SDKUtility>
|
| | | {
|
| | | [System.Runtime.InteropServices.DllImport("__Internal")]
|
| | |
| | | using System;
|
| | | using System.Collections;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SFXPlayUtility : SingletonMonobehaviour<SFXPlayUtility>
|
| | | {
|
| | |
|
| | |
| | | using UnityEngine.Events; |
| | | using System.Collections.Generic; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class AnyCountDownUtility : SingletonMonobehaviour<AnyCountDownUtility> |
| | | { |
| | | private Stack<CDItem> m_FreeStack; |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using TableConfig; |
| | | |
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | | using TableConfig;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class AssetPreLoad : SingletonMonobehaviour<AssetPreLoad>
|
| | | { |
| | | {
|
| | | public void PreLoadNPC(int _mapId)
|
| | | {
|
| | | NpcPreloadConfig _config = Config.Instance.Get<NpcPreloadConfig>(_mapId);
|
| | |
| | | get { return m_Effects ?? (m_Effects = Config.Instance.GetAllValues<EffectConfig>()); }
|
| | | }
|
| | |
|
| | | List<int> loadedJobs = new List<int>(); |
| | | |
| | | List<int> loadedJobs = new List<int>();
|
| | |
|
| | | public void PreLoadJobEffect(int _job)
|
| | | {
|
| | | if (loadedJobs.Contains(_job))
|
| | |
| | | {
|
| | | StartCoroutine(Co_AsyncLoadEffects(preLoadEffects));
|
| | | }
|
| | | } |
| | | |
| | | }
|
| | |
|
| | | IEnumerator Co_AsyncLoadEffects(List<int> _effectIds)
|
| | | {
|
| | | for (int i = 0; i < _effectIds.Count; i++)
|
| | |
| | |
|
| | | yield return null;
|
| | | }
|
| | | } |
| | | |
| | | }
|
| | |
|
| | | private void OnAsyncLoadEffect(bool _ok, Object _object)
|
| | | {
|
| | | if (_ok)
|
| | | {
|
| | | GameObjectPoolManager.Instance.CacheGameObject(_object as GameObject, 1, false);
|
| | | }
|
| | | } |
| | | |
| | | } |
| | | }
|
| | |
|
| | | }
|
| | |
| | | using System.Collections.Generic; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class FlyObjectManager : Singleton<FlyObjectManager> |
| | | |
| | | { |
| | | |
| | | private ObjectPool<IFlyObject> m_FlyObjectPool; |
| | |
| | | /// <summary>
|
| | | /// 对所有技能数据进行处理和缓存的类
|
| | | /// </summary>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SkillHelper : Singleton<SkillHelper>
|
| | | |
| | | {
|
| | | private Dictionary<int, SkillInfo> m_SkillInfoDict;
|
| | | private Dictionary<int, List<SkillInfo>> m_SkillToSpSkill;
|
| | |
| | | using UnityEngine;
|
| | | using UnityEngine.Events;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class StatusMgr : SingletonMonobehaviour<StatusMgr>
|
| | | |
| | | {
|
| | | public static event UnityAction<int> OnGainStatus;
|
| | |
|
| | |
| | | using System; |
| | | using Snxxz.UI; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class BossFakeLineUtility : Singleton<BossFakeLineUtility> |
| | | |
| | | { |
| | | int m_MakeFakeLineTimes = 0; |
| | | public int makeFakeLineTimes { |
| | |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class BattleEffectPlayRule : Singleton<BattleEffectPlayRule> |
| | | |
| | | { |
| | | public List<uint> sortPlayerList = new List<uint>(); |
| | | |
| | |
| | | using TableConfig;
|
| | | using System.Collections;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class GAMgr : SingletonMonobehaviour<GAMgr>
|
| | | |
| | | {
|
| | | private List<BossSkillTip_JudgeSummon> m_BossSkillTipList = new List<BossSkillTip_JudgeSummon>();
|
| | |
|
| | |
| | | using Snxxz.UI;
|
| | | using TableConfig;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class MapTransferUtility : SingletonMonobehaviour<MapTransferUtility>
|
| | | {
|
| | | public static UnityEngine.Events.UnityAction s_OnHeroLeaveFuncNpc;
|
| | |
| | | using System.Collections;
|
| | | using TableConfig;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PreFightMission : Singleton<PreFightMission>
|
| | | |
| | | {
|
| | | private Vector3 m_FirstTrransferStartPos = new Vector3(183.84f, 62.44f, 25.56f);
|
| | | private Vector3 m_FirstTrransferEndPos = new Vector3(161.33f, 51.545f, 34.84f);
|
| | |
| | | using UnityEngine; |
| | | using Snxxz.UI; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class PrepareHandler : Singleton<PrepareHandler> |
| | | |
| | | { |
| | | public struct ClientH0812 |
| | | { |
| | |
| | | using UnityEngine; |
| | | using Snxxz.UI; |
| | | |
| | | public class GuideDialogueModel : Model |
| | | [XLua.LuaCallCSharp] |
| | | public class GuideDialogueModel : Model |
| | | { |
| | | public int dialogID; |
| | | |
| | |
| | | using System.Collections; |
| | | using Snxxz.UI; |
| | | |
| | | public class GuideMessageModel : Model |
| | | [XLua.LuaCallCSharp] |
| | | public class GuideMessageModel : Model |
| | | { |
| | | public string content; |
| | | public float duration; |
| | |
| | | using UnityEngine.Events; |
| | | using Snxxz.UI; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class NewGuideModel : Model |
| | | { |
| | | public string content; |
| | |
| | | using UnityEngine.Events; |
| | | using Snxxz.UI; |
| | | |
| | | public class StoryHintModel : Model |
| | | [XLua.LuaCallCSharp] |
| | | public class StoryHintModel : Model |
| | | { |
| | | public string name; |
| | | public string content; |
| | |
| | | using Snxxz.UI;
|
| | | using TableConfig;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class StageManager : Singleton<StageManager>
|
| | | |
| | | {
|
| | | private Stage m_CurrentStage;
|
| | |
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 721b752538034ae47ba4f5d730c93524 |
| | | folderAsset: yes |
| | | timeCreated: 1533301968 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | namespace XLua.LuaDLL |
| | | { |
| | | using System.Runtime.InteropServices; |
| | | |
| | | public partial class Lua |
| | | { |
| | | [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] |
| | | public static extern int luaopen_rapidjson(System.IntPtr L); |
| | | |
| | | [MonoPInvokeCallback(typeof(LuaDLL.lua_CSFunction))] |
| | | public static int LoadRapidJson(System.IntPtr L) |
| | | { |
| | | return luaopen_rapidjson(L); |
| | | } |
| | | |
| | | [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] |
| | | public static extern int luaopen_lpeg(System.IntPtr L); |
| | | |
| | | [MonoPInvokeCallback(typeof(LuaDLL.lua_CSFunction))] |
| | | public static int LoadLpeg(System.IntPtr L) |
| | | { |
| | | return luaopen_lpeg(L); |
| | | } |
| | | |
| | | [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] |
| | | public static extern int luaopen_pb(System.IntPtr L); |
| | | |
| | | [MonoPInvokeCallback(typeof(LuaDLL.lua_CSFunction))] |
| | | public static int LoadLuaProfobuf(System.IntPtr L) |
| | | { |
| | | return luaopen_pb(L); |
| | | } |
| | | |
| | | [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)] |
| | | public static extern int luaopen_ffi(System.IntPtr L); |
| | | |
| | | [MonoPInvokeCallback(typeof(LuaDLL.lua_CSFunction))] |
| | | public static int LoadFFI(System.IntPtr L) |
| | | { |
| | | return luaopen_ffi(L); |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 98a554915a6754b42910d4f1c6330bc4 |
| | | timeCreated: 1540804487 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using XLua; |
| | | using System; |
| | | |
| | | |
| | | [CSharpCallLua] |
| | | public class CSharpCallLua |
| | | { |
| | | [CSharpCallLua] |
| | | public delegate void LuaNetPackage(ushort cmd, byte[] bytes); |
| | | static LuaNetPackage onRecieveLuaNetPackage; |
| | | |
| | | [CSharpCallLua] |
| | | public delegate void CSharpNetPackage(ushort cmd); |
| | | static CSharpNetPackage onCSharpNetPackage; |
| | | |
| | | [CSharpCallLua] |
| | | public delegate void GeneralDelegate(); |
| | | static GeneralDelegate configInit; |
| | | |
| | | static GeneralDelegate beforePlayerDataInitialize; |
| | | static GeneralDelegate afterPlayerDataInitialize; |
| | | static GeneralDelegate switchAccount; |
| | | static GeneralDelegate playerLoginOk; |
| | | static GeneralDelegate mapInitOk; |
| | | |
| | | [CSharpCallLua] |
| | | public delegate bool boolReturnedValueDelegate(int integer); |
| | | static boolReturnedValueDelegate isLuaDungeonVictoryWin; |
| | | static boolReturnedValueDelegate isLuaDungeonDefeatWin; |
| | | |
| | | static boolReturnedValueDelegate isLuaDailyQuest; |
| | | static boolReturnedValueDelegate gotoLuaDailyQuest; |
| | | |
| | | public static void Init() |
| | | { |
| | | LuaUtility.DoString("protocol.LuaProtocalRegister"); |
| | | onRecieveLuaNetPackage = LuaUtility.Global.Get<LuaNetPackage>("OnRecieveNetPackage"); |
| | | |
| | | LuaUtility.DoString("protocol.CSharpProtocalEvent"); |
| | | onCSharpNetPackage = LuaUtility.Global.Get<CSharpNetPackage>("OnCSharpNetEvent"); |
| | | |
| | | LuaUtility.DoString("event.AfterPlayerDataInitialize"); |
| | | afterPlayerDataInitialize = LuaUtility.Global.Get<GeneralDelegate>("OnAfterPlayerDataInitialize"); |
| | | |
| | | LuaUtility.DoString("event.BeforePlayerDataInitialize"); |
| | | beforePlayerDataInitialize = LuaUtility.Global.Get<GeneralDelegate>("OnBeforePlayerDataInitialize"); |
| | | |
| | | LuaUtility.DoString("event.MapInitOk"); |
| | | mapInitOk = LuaUtility.Global.Get<GeneralDelegate>("OnMapInitOk"); |
| | | |
| | | LuaUtility.DoString("event.SwitchAccount"); |
| | | switchAccount = LuaUtility.Global.Get<GeneralDelegate>("OnSwitchAccount"); |
| | | |
| | | LuaUtility.DoString("event.PlayerLoginOk"); |
| | | playerLoginOk = LuaUtility.Global.Get<GeneralDelegate>("OnPlayerLoginOk"); |
| | | |
| | | LuaUtility.DoString("interface.DungeonInterface"); |
| | | isLuaDungeonVictoryWin = LuaUtility.Global.Get<boolReturnedValueDelegate>("IsLuaDungeonVictoryWin"); |
| | | isLuaDungeonDefeatWin = LuaUtility.Global.Get<boolReturnedValueDelegate>("IsLuaDungeonDefeatWin"); |
| | | |
| | | LuaUtility.DoString("interface.DailyQuestInterface"); |
| | | isLuaDailyQuest = LuaUtility.Global.Get<boolReturnedValueDelegate>("IsLuaDailyQuest"); |
| | | gotoLuaDailyQuest = LuaUtility.Global.Get<boolReturnedValueDelegate>("GotoDailyQuest"); |
| | | |
| | | LuaUtility.DoString("config.ConfigInit"); |
| | | configInit = LuaUtility.Global.Get<GeneralDelegate>("ConfigInit"); |
| | | |
| | | if (configInit != null) |
| | | { |
| | | configInit(); |
| | | } |
| | | } |
| | | |
| | | public static void OnRecieveLuaNetPackage(ushort cmd, byte[] bytes) |
| | | { |
| | | if (onRecieveLuaNetPackage != null) |
| | | { |
| | | onRecieveLuaNetPackage(cmd, bytes); |
| | | } |
| | | } |
| | | |
| | | public static void OnRecieveCSharpNetPackage(ushort cmd) |
| | | { |
| | | if (onCSharpNetPackage != null) |
| | | { |
| | | onCSharpNetPackage(cmd); |
| | | } |
| | | } |
| | | |
| | | public static void OnBeforePlayerDataInitialize() |
| | | { |
| | | if (beforePlayerDataInitialize != null) |
| | | { |
| | | beforePlayerDataInitialize(); |
| | | } |
| | | } |
| | | |
| | | public static void OnAfterPlayerDataInitialize() |
| | | { |
| | | if (afterPlayerDataInitialize != null) |
| | | { |
| | | afterPlayerDataInitialize(); |
| | | } |
| | | } |
| | | |
| | | public static void OnSwitchAccount() |
| | | { |
| | | if (switchAccount != null) |
| | | { |
| | | switchAccount(); |
| | | } |
| | | } |
| | | |
| | | public static void OnPlayerLoginOk() |
| | | { |
| | | if (playerLoginOk != null) |
| | | { |
| | | playerLoginOk(); |
| | | } |
| | | } |
| | | |
| | | public static void OnMapInitOk() |
| | | { |
| | | if (mapInitOk != null) |
| | | { |
| | | mapInitOk(); |
| | | } |
| | | } |
| | | |
| | | public static bool IsLuaDungeonVictoryWin(int dataMapId) |
| | | { |
| | | if (isLuaDungeonVictoryWin != null) |
| | | { |
| | | return isLuaDungeonVictoryWin(dataMapId); |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | |
| | | public static bool IsLuaDungeonDefeatWin(int dataMapId) |
| | | { |
| | | if (isLuaDungeonDefeatWin != null) |
| | | { |
| | | return isLuaDungeonDefeatWin(dataMapId); |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | |
| | | public static bool IsLuaDailyQuest(int dailyQuest) |
| | | { |
| | | if (isLuaDailyQuest != null) |
| | | { |
| | | return isLuaDailyQuest(dailyQuest); |
| | | } |
| | | |
| | | return false; |
| | | } |
| | | |
| | | public static void GotoLuaDailyQuest(int dailyquest) |
| | | { |
| | | if (gotoLuaDailyQuest != null) |
| | | { |
| | | gotoLuaDailyQuest(dailyquest); |
| | | } |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: af00ba7cb648cba4686e8ec2bae4acaf |
| | | timeCreated: 1540557470 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using XLua; |
| | | using System; |
| | | using System.IO; |
| | | |
| | | [LuaCallCSharp] |
| | | public class LuaBehaviour : MonoBehaviour |
| | | { |
| | | [CSharpCallLua] |
| | | public delegate void generalDelegate(); |
| | | |
| | | public string fileName; |
| | | |
| | | private Action luaOnEnable; |
| | | private Action luaStart; |
| | | private Action luaUpdate; |
| | | private Action luaOnDisable; |
| | | private Action luaOnDestroy; |
| | | |
| | | private LuaTable table; |
| | | |
| | | void Awake() |
| | | { |
| | | table = LuaUtility.GetNewTable(); |
| | | var meta = LuaUtility.GetNewTable(); |
| | | meta.Set("__index", LuaUtility.Global); |
| | | table.SetMetaTable(meta); |
| | | meta.Dispose(); |
| | | |
| | | table.Set("this", this); |
| | | LuaUtility.DoString(fileName, "LuaBehaviour", table); |
| | | |
| | | var luaAwake = table.Get<Action>("Awake"); |
| | | table.Get("OnEnable", out luaOnEnable); |
| | | table.Get("Start", out luaStart); |
| | | table.Get("Update", out luaUpdate); |
| | | table.Get("OnDisable", out luaOnDisable); |
| | | table.Get("OnDestroy", out luaOnDestroy); |
| | | |
| | | if (luaAwake != null) |
| | | { |
| | | luaAwake(); |
| | | } |
| | | } |
| | | |
| | | private void OnEnable() |
| | | { |
| | | if (luaOnEnable != null) |
| | | { |
| | | luaOnEnable(); |
| | | } |
| | | } |
| | | |
| | | void Start() |
| | | { |
| | | if (luaStart != null) |
| | | { |
| | | luaStart(); |
| | | } |
| | | } |
| | | |
| | | void Update() |
| | | { |
| | | if (luaUpdate != null) |
| | | { |
| | | luaUpdate(); |
| | | } |
| | | } |
| | | |
| | | private void OnDisable() |
| | | { |
| | | if (luaOnDisable != null) |
| | | { |
| | | luaOnDisable(); |
| | | } |
| | | } |
| | | |
| | | void OnDestroy() |
| | | { |
| | | if (luaOnDestroy != null) |
| | | { |
| | | luaOnDestroy(); |
| | | } |
| | | |
| | | luaOnDisable = null; |
| | | luaOnEnable = null; |
| | | luaOnDestroy = null; |
| | | luaUpdate = null; |
| | | luaStart = null; |
| | | table.Dispose(); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 028ad9d0c327569419d2e22210b67d2d |
| | | timeCreated: 1540173220 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using TableConfig; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public static class ConfigUtil
|
| | | {
|
| | | //这里插入配置表获取方法
|
| | | public static SkillConfig GetSkill(string _key)
|
| | | {
|
| | | return Config.Instance.Get<SkillConfig>(_key);
|
| | | }
|
| | |
|
| | | public static SignInConfig GetSignIn(string _key)
|
| | | {
|
| | | return Config.Instance.Get<SignInConfig>(_key);
|
| | | }
|
| | |
|
| | | public static SceneShadowConfig GetSceneShadow(string _key)
|
| | | {
|
| | | return Config.Instance.Get<SceneShadowConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RuneTowerFloorConfig GetRuneTowerFloor(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RuneTowerFloorConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RuneTowerConfig GetRuneTower(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RuneTowerConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RuneComposeConfig GetRuneCompose(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RuneComposeConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RuneConfig GetRune(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RuneConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RuleConfig GetRule(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RuleConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RoleStrongerConfig GetRoleStronger(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RoleStrongerConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RoleResourceConfig GetRoleResource(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RoleResourceConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RoleEquipStarsConfig GetRoleEquipStars(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RoleEquipStarsConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RichTextMsgReplaceConfig GetRichTextMsgReplace(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RichTextMsgReplaceConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ResourcesBackConfig GetResourcesBack(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ResourcesBackConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RefineStoveConfig GetRefineStove(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RefineStoveConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RedPackConfig GetRedPack(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RedPackConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RealmPracticeConfig GetRealmPractice(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RealmPracticeConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RealmConfig GetRealm(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RealmConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RankListConfig GetRankList(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RankListConfig>(_key);
|
| | | }
|
| | |
|
| | | public static RandomNameConfig GetRandomName(string _key)
|
| | | {
|
| | | return Config.Instance.Get<RandomNameConfig>(_key);
|
| | | }
|
| | |
|
| | | public static QuestionBankConfig GetQuestionBank(string _key)
|
| | | {
|
| | | return Config.Instance.Get<QuestionBankConfig>(_key);
|
| | | }
|
| | |
|
| | | public static PyTaskConfig GetPyTask(string _key)
|
| | | {
|
| | | return Config.Instance.Get<PyTaskConfig>(_key);
|
| | | }
|
| | |
|
| | | public static PlayerPropertyConfig GetPlayerProperty(string _key)
|
| | | {
|
| | | return Config.Instance.Get<PlayerPropertyConfig>(_key);
|
| | | }
|
| | |
|
| | | public static PlayerLVConfig GetPlayerLV(string _key)
|
| | | {
|
| | | return Config.Instance.Get<PlayerLVConfig>(_key);
|
| | | }
|
| | |
|
| | | public static PetInfoConfig GetPetInfo(string _key)
|
| | | {
|
| | | return Config.Instance.Get<PetInfoConfig>(_key);
|
| | | }
|
| | |
|
| | | public static PetEatEquipConfig GetPetEatEquip(string _key)
|
| | | {
|
| | | return Config.Instance.Get<PetEatEquipConfig>(_key);
|
| | | }
|
| | |
|
| | | public static PetClassCostConfig GetPetClassCost(string _key)
|
| | | {
|
| | | return Config.Instance.Get<PetClassCostConfig>(_key);
|
| | | }
|
| | |
|
| | | public static PersonalBossConfig GetPersonalBoss(string _key)
|
| | | {
|
| | | return Config.Instance.Get<PersonalBossConfig>(_key);
|
| | | }
|
| | |
|
| | | public static OSRedAchieveConfig GetOSRedAchieve(string _key)
|
| | | {
|
| | | return Config.Instance.Get<OSRedAchieveConfig>(_key);
|
| | | }
|
| | |
|
| | | public static OSCBillTagAwardConfig GetOSCBillTagAward(string _key)
|
| | | {
|
| | | return Config.Instance.Get<OSCBillTagAwardConfig>(_key);
|
| | | }
|
| | |
|
| | | public static OSCBillRankAwardConfig GetOSCBillRankAward(string _key)
|
| | | {
|
| | | return Config.Instance.Get<OSCBillRankAwardConfig>(_key);
|
| | | }
|
| | |
|
| | | public static OrderInfoConfig GetOrderInfo(string _key)
|
| | | {
|
| | | return Config.Instance.Get<OrderInfoConfig>(_key);
|
| | | }
|
| | |
|
| | | public static OnlineAwardConfig GetOnlineAward(string _key)
|
| | | {
|
| | | return Config.Instance.Get<OnlineAwardConfig>(_key);
|
| | | }
|
| | |
|
| | | public static OccupationNameConfig GetOccupationName(string _key)
|
| | | {
|
| | | return Config.Instance.Get<OccupationNameConfig>(_key);
|
| | | }
|
| | |
|
| | | public static NPCDropItemConfig GetNPCDropItem(string _key)
|
| | | {
|
| | | return Config.Instance.Get<NPCDropItemConfig>(_key);
|
| | | }
|
| | |
|
| | | public static NPCDialogueConfig GetNPCDialogue(string _key)
|
| | | {
|
| | | return Config.Instance.Get<NPCDialogueConfig>(_key);
|
| | | }
|
| | |
|
| | | public static NPCConfig GetNPC(string _key)
|
| | | {
|
| | | return Config.Instance.Get<NPCConfig>(_key);
|
| | | }
|
| | |
|
| | | public static MonsterRefreshPointConfig GetMonsterRefreshPoint(string _key)
|
| | | {
|
| | | return Config.Instance.Get<MonsterRefreshPointConfig>(_key);
|
| | | }
|
| | |
|
| | | public static MonsterNameColorConfig GetMonsterNameColor(string _key)
|
| | | {
|
| | | return Config.Instance.Get<MonsterNameColorConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ModelResConfig GetModelRes(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ModelResConfig>(_key);
|
| | | }
|
| | |
|
| | | public static MarketConfig GetMarket(string _key)
|
| | | {
|
| | | return Config.Instance.Get<MarketConfig>(_key);
|
| | | }
|
| | |
|
| | | public static MapUiControlConfig GetMapUiControl(string _key)
|
| | | {
|
| | | return Config.Instance.Get<MapUiControlConfig>(_key);
|
| | | }
|
| | |
|
| | | public static maptransportConfig Getmaptransport(string _key)
|
| | | {
|
| | | return Config.Instance.Get<maptransportConfig>(_key);
|
| | | }
|
| | |
|
| | | public static MapResourcesConfig GetMapResources(string _key)
|
| | | {
|
| | | return Config.Instance.Get<MapResourcesConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DamageNumConfig GetDamageNum(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DamageNumConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DailyQuestSpecialOpenTimeConfig GetDailyQuestSpecialOpenTime(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DailyQuestSpecialOpenTimeConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DailyQuestOpenTimeConfig GetDailyQuestOpenTime(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DailyQuestOpenTimeConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DailyQuestConfig GetDailyQuest(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DailyQuestConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DailyLivenessRewardConfig GetDailyLivenessReward(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DailyLivenessRewardConfig>(_key);
|
| | | }
|
| | |
|
| | | public static CTGConfig GetCTG(string _key)
|
| | | {
|
| | | return Config.Instance.Get<CTGConfig>(_key);
|
| | | }
|
| | |
|
| | | public static CreateRoleConfig GetCreateRole(string _key)
|
| | | {
|
| | | return Config.Instance.Get<CreateRoleConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ContinueSignInConfig GetContinueSignIn(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ContinueSignInConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ChestsAwardConfig GetChestsAward(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ChestsAwardConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ChestsConfig GetChests(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ChestsConfig>(_key);
|
| | | }
|
| | |
|
| | | public static bossSkillTipsConfig GetbossSkillTips(string _key)
|
| | | {
|
| | | return Config.Instance.Get<bossSkillTipsConfig>(_key);
|
| | | }
|
| | |
|
| | | public static HorseConfig GetHorse(string _key)
|
| | | {
|
| | | return Config.Instance.Get<HorseConfig>(_key);
|
| | | }
|
| | |
|
| | | public static GuideConfig GetGuide(string _key)
|
| | | {
|
| | | return Config.Instance.Get<GuideConfig>(_key);
|
| | | }
|
| | |
|
| | | public static GodWeaponConfig GetGodWeapon(string _key)
|
| | | {
|
| | | return Config.Instance.Get<GodWeaponConfig>(_key);
|
| | | }
|
| | |
|
| | | public static GmCmdConfig GetGmCmd(string _key)
|
| | | {
|
| | | return Config.Instance.Get<GmCmdConfig>(_key);
|
| | | }
|
| | |
|
| | | public static GetItemWaysConfig GetGetItemWays(string _key)
|
| | | {
|
| | | return Config.Instance.Get<GetItemWaysConfig>(_key);
|
| | | }
|
| | |
|
| | | public static FunctionForecastConfig GetFunctionForecast(string _key)
|
| | | {
|
| | | return Config.Instance.Get<FunctionForecastConfig>(_key);
|
| | | }
|
| | |
|
| | | public static FuncOpenLVConfig GetFuncOpenLV(string _key)
|
| | | {
|
| | | return Config.Instance.Get<FuncOpenLVConfig>(_key);
|
| | | }
|
| | |
|
| | | public static FuncConfigConfig GetFuncConfig(string _key)
|
| | | {
|
| | | return Config.Instance.Get<FuncConfigConfig>(_key);
|
| | | }
|
| | |
|
| | | public static FreeGoodsConfig GetFreeGoods(string _key)
|
| | | {
|
| | | return Config.Instance.Get<FreeGoodsConfig>(_key);
|
| | | }
|
| | |
|
| | | public static FightPowerParamConfig GetFightPowerParam(string _key)
|
| | | {
|
| | | return Config.Instance.Get<FightPowerParamConfig>(_key);
|
| | | }
|
| | |
|
| | | public static FamilyTechConfig GetFamilyTech(string _key)
|
| | | {
|
| | | return Config.Instance.Get<FamilyTechConfig>(_key);
|
| | | }
|
| | |
|
| | | public static FamilyConfig GetFamily(string _key)
|
| | | {
|
| | | return Config.Instance.Get<FamilyConfig>(_key);
|
| | | }
|
| | |
|
| | | public static FairyGrabBossConfig GetFairyGrabBoss(string _key)
|
| | | {
|
| | | return Config.Instance.Get<FairyGrabBossConfig>(_key);
|
| | | }
|
| | |
|
| | | public static FaceConfig GetFace(string _key)
|
| | | {
|
| | | return Config.Instance.Get<FaceConfig>(_key);
|
| | | }
|
| | |
|
| | | public static EquipWashSpecConfig GetEquipWashSpec(string _key)
|
| | | {
|
| | | return Config.Instance.Get<EquipWashSpecConfig>(_key);
|
| | | }
|
| | |
|
| | | public static BossRebornConfig GetBossReborn(string _key)
|
| | | {
|
| | | return Config.Instance.Get<BossRebornConfig>(_key);
|
| | | }
|
| | |
|
| | | public static BossInfoConfig GetBossInfo(string _key)
|
| | | {
|
| | | return Config.Instance.Get<BossInfoConfig>(_key);
|
| | | }
|
| | |
|
| | | public static AreaCameraConfig GetAreaCamera(string _key)
|
| | | {
|
| | | return Config.Instance.Get<AreaCameraConfig>(_key);
|
| | | }
|
| | |
|
| | | public static AlchemyConfig GetAlchemy(string _key)
|
| | | {
|
| | | return Config.Instance.Get<AlchemyConfig>(_key);
|
| | | }
|
| | |
|
| | | public static AlchemySpecConfig GetAlchemySpec(string _key)
|
| | | {
|
| | | return Config.Instance.Get<AlchemySpecConfig>(_key);
|
| | | }
|
| | |
|
| | | public static XMZZAchievementConfig GetXMZZAchievement(string _key)
|
| | | {
|
| | | return Config.Instance.Get<XMZZAchievementConfig>(_key);
|
| | | }
|
| | |
|
| | | public static XBGetItemConfig GetXBGetItem(string _key)
|
| | | {
|
| | | return Config.Instance.Get<XBGetItemConfig>(_key);
|
| | | }
|
| | |
|
| | | public static WorldBossConfig GetWorldBoss(string _key)
|
| | | {
|
| | | return Config.Instance.Get<WorldBossConfig>(_key);
|
| | | }
|
| | |
|
| | | public static WingRefineExpConfig GetWingRefineExp(string _key)
|
| | | {
|
| | | return Config.Instance.Get<WingRefineExpConfig>(_key);
|
| | | }
|
| | |
|
| | | public static WingRefineAttrConfig GetWingRefineAttr(string _key)
|
| | | {
|
| | | return Config.Instance.Get<WingRefineAttrConfig>(_key);
|
| | | }
|
| | |
|
| | | public static WindowSearchConfig GetWindowSearch(string _key)
|
| | | {
|
| | | return Config.Instance.Get<WindowSearchConfig>(_key);
|
| | | }
|
| | |
|
| | | public static WHYJRewardConfig GetWHYJReward(string _key)
|
| | | {
|
| | | return Config.Instance.Get<WHYJRewardConfig>(_key);
|
| | | }
|
| | |
|
| | | public static WeatherConfig GetWeather(string _key)
|
| | | {
|
| | | return Config.Instance.Get<WeatherConfig>(_key);
|
| | | }
|
| | |
|
| | | public static VipPrivilegeConfig GetVipPrivilege(string _key)
|
| | | {
|
| | | return Config.Instance.Get<VipPrivilegeConfig>(_key);
|
| | | }
|
| | |
|
| | | public static VIPKillNPCConfig GetVIPKillNPC(string _key)
|
| | | {
|
| | | return Config.Instance.Get<VIPKillNPCConfig>(_key);
|
| | | }
|
| | |
|
| | | public static VIPAwardConfig GetVIPAward(string _key)
|
| | | {
|
| | | return Config.Instance.Get<VIPAwardConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ViewRoleFuncConfig GetViewRoleFunc(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ViewRoleFuncConfig>(_key);
|
| | | }
|
| | |
|
| | | public static UniquenessArriveConfig GetUniquenessArrive(string _key)
|
| | | {
|
| | | return Config.Instance.Get<UniquenessArriveConfig>(_key);
|
| | | }
|
| | |
|
| | | public static UnionLivenConfig GetUnionLiven(string _key)
|
| | | {
|
| | | return Config.Instance.Get<UnionLivenConfig>(_key);
|
| | | }
|
| | |
|
| | | public static TrialRewardsConfig GetTrialRewards(string _key)
|
| | | {
|
| | | return Config.Instance.Get<TrialRewardsConfig>(_key);
|
| | | }
|
| | |
|
| | | public static TrialExchangeConfig GetTrialExchange(string _key)
|
| | | {
|
| | | return Config.Instance.Get<TrialExchangeConfig>(_key);
|
| | | }
|
| | |
|
| | | public static TreasureUpConfig GetTreasureUp(string _key)
|
| | | {
|
| | | return Config.Instance.Get<TreasureUpConfig>(_key);
|
| | | }
|
| | |
|
| | | public static TreasureSkillConfig GetTreasureSkill(string _key)
|
| | | {
|
| | | return Config.Instance.Get<TreasureSkillConfig>(_key);
|
| | | }
|
| | |
|
| | | public static TreasureRefineConfig GetTreasureRefine(string _key)
|
| | | {
|
| | | return Config.Instance.Get<TreasureRefineConfig>(_key);
|
| | | }
|
| | |
|
| | | public static TreasurePrivilegeConfig GetTreasurePrivilege(string _key)
|
| | | {
|
| | | return Config.Instance.Get<TreasurePrivilegeConfig>(_key);
|
| | | }
|
| | |
|
| | | public static TreasureFindHostConfig GetTreasureFindHost(string _key)
|
| | | {
|
| | | return Config.Instance.Get<TreasureFindHostConfig>(_key);
|
| | | }
|
| | |
|
| | | public static TreasureConfig GetTreasure(string _key)
|
| | | {
|
| | | return Config.Instance.Get<TreasureConfig>(_key);
|
| | | }
|
| | |
|
| | | public static TeamTargetConfig GetTeamTarget(string _key)
|
| | | {
|
| | | return Config.Instance.Get<TeamTargetConfig>(_key);
|
| | | }
|
| | |
|
| | | public static TaskListConfig GetTaskList(string _key)
|
| | | {
|
| | | return Config.Instance.Get<TaskListConfig>(_key);
|
| | | }
|
| | |
|
| | | public static TASKINFOConfig GetTASKINFO(string _key)
|
| | | {
|
| | | return Config.Instance.Get<TASKINFOConfig>(_key);
|
| | | }
|
| | |
|
| | | public static TalentConfig GetTalent(string _key)
|
| | | {
|
| | | return Config.Instance.Get<TalentConfig>(_key);
|
| | | }
|
| | |
|
| | | public static SysInfoConfig GetSysInfo(string _key)
|
| | | {
|
| | | return Config.Instance.Get<SysInfoConfig>(_key);
|
| | | }
|
| | |
|
| | | public static SuitEffectConfig GetSuitEffect(string _key)
|
| | | {
|
| | | return Config.Instance.Get<SuitEffectConfig>(_key);
|
| | | }
|
| | |
|
| | | public static SuccessConfig GetSuccess(string _key)
|
| | | {
|
| | | return Config.Instance.Get<SuccessConfig>(_key);
|
| | | }
|
| | |
|
| | | public static StoryMissionsConfig GetStoryMissions(string _key)
|
| | | {
|
| | | return Config.Instance.Get<StoryMissionsConfig>(_key);
|
| | | }
|
| | |
|
| | | public static StoreConfig GetStore(string _key)
|
| | | {
|
| | | return Config.Instance.Get<StoreConfig>(_key);
|
| | | }
|
| | |
|
| | | public static AllPeoplePartyConfig GetAllPeopleParty(string _key)
|
| | | {
|
| | | return Config.Instance.Get<AllPeoplePartyConfig>(_key);
|
| | | }
|
| | |
|
| | | public static AttrFruitConfig GetAttrFruit(string _key)
|
| | | {
|
| | | return Config.Instance.Get<AttrFruitConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ActorShowConfig GetActorShow(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ActorShowConfig>(_key);
|
| | | }
|
| | |
|
| | | public static BossHomeConfig GetBossHome(string _key)
|
| | | {
|
| | | return Config.Instance.Get<BossHomeConfig>(_key);
|
| | | }
|
| | |
|
| | | public static AppointItemConfig GetAppointItem(string _key)
|
| | | {
|
| | | return Config.Instance.Get<AppointItemConfig>(_key);
|
| | | }
|
| | |
|
| | | public static AllPeoplePartyAwardConfig GetAllPeoplePartyAward(string _key)
|
| | | {
|
| | | return Config.Instance.Get<AllPeoplePartyAwardConfig>(_key);
|
| | | }
|
| | |
|
| | | public static EquipWashConfig GetEquipWash(string _key)
|
| | | {
|
| | | return Config.Instance.Get<EquipWashConfig>(_key);
|
| | | }
|
| | |
|
| | | public static EquipSuitCompoundConfig GetEquipSuitCompound(string _key)
|
| | | {
|
| | | return Config.Instance.Get<EquipSuitCompoundConfig>(_key);
|
| | | }
|
| | |
|
| | | public static EquipSuitAttrConfig GetEquipSuitAttr(string _key)
|
| | | {
|
| | | return Config.Instance.Get<EquipSuitAttrConfig>(_key);
|
| | | }
|
| | |
|
| | | public static EquipGSParamConfig GetEquipGSParam(string _key)
|
| | | {
|
| | | return Config.Instance.Get<EquipGSParamConfig>(_key);
|
| | | }
|
| | |
|
| | | public static EquipDeComposeConfig GetEquipDeCompose(string _key)
|
| | | {
|
| | | return Config.Instance.Get<EquipDeComposeConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ElderGodAreaConfig GetElderGodArea(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ElderGodAreaConfig>(_key);
|
| | | }
|
| | |
|
| | | public static EffectConfig GetEffect(string _key)
|
| | | {
|
| | | return Config.Instance.Get<EffectConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DungeonStateTimeConfig GetDungeonStateTime(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DungeonStateTimeConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DungeonSpecialStateTimeConfig GetDungeonSpecialStateTime(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DungeonSpecialStateTimeConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DungeonOpenTimeConfig GetDungeonOpenTime(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DungeonOpenTimeConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DungeonInspireConfig GetDungeonInspire(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DungeonInspireConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DungeonHintConfig GetDungeonHint(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DungeonHintConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DungeonConfig GetDungeon(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DungeonConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DogzEquipPlusConfig GetDogzEquipPlus(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DogzEquipPlusConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DogzDungeonConfig GetDogzDungeon(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DogzDungeonConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DogzConfig GetDogz(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DogzConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DirtyWordConfig GetDirtyWord(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DirtyWordConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DirtyNameConfig GetDirtyName(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DirtyNameConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DienstgradConfig GetDienstgrad(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DienstgradConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DialogConfig GetDialog(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DialogConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DemonRecommondPropertyConfig GetDemonRecommondProperty(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DemonRecommondPropertyConfig>(_key);
|
| | | }
|
| | |
|
| | | public static DemonJarConfig GetDemonJar(string _key)
|
| | | {
|
| | | return Config.Instance.Get<DemonJarConfig>(_key);
|
| | | }
|
| | |
|
| | | public static AudioConfig GetAudio(string _key)
|
| | | {
|
| | | return Config.Instance.Get<AudioConfig>(_key);
|
| | | }
|
| | |
|
| | | public static mapnpcConfig Getmapnpc(string _key)
|
| | | {
|
| | | return Config.Instance.Get<mapnpcConfig>(_key);
|
| | | }
|
| | |
|
| | | public static MapEventPointConfig GetMapEventPoint(string _key)
|
| | | {
|
| | | return Config.Instance.Get<MapEventPointConfig>(_key);
|
| | | }
|
| | |
|
| | | public static mapbornConfig Getmapborn(string _key)
|
| | | {
|
| | | return Config.Instance.Get<mapbornConfig>(_key);
|
| | | }
|
| | |
|
| | | public static mapAreaConfig GetmapArea(string _key)
|
| | | {
|
| | | return Config.Instance.Get<mapAreaConfig>(_key);
|
| | | }
|
| | |
|
| | | public static MapConfig GetMap(string _key)
|
| | | {
|
| | | return Config.Instance.Get<MapConfig>(_key);
|
| | | }
|
| | |
|
| | | public static MailConfig GetMail(string _key)
|
| | | {
|
| | | return Config.Instance.Get<MailConfig>(_key);
|
| | | }
|
| | |
|
| | | public static LVAawrdConfig GetLVAawrd(string _key)
|
| | | {
|
| | | return Config.Instance.Get<LVAawrdConfig>(_key);
|
| | | }
|
| | |
|
| | | public static LoginSeverListConfig GetLoginSeverList(string _key)
|
| | | {
|
| | | return Config.Instance.Get<LoginSeverListConfig>(_key);
|
| | | }
|
| | |
|
| | | public static LoginAdConfig GetLoginAd(string _key)
|
| | | {
|
| | | return Config.Instance.Get<LoginAdConfig>(_key);
|
| | | }
|
| | |
|
| | | public static LoadingTipConfig GetLoadingTip(string _key)
|
| | | {
|
| | | return Config.Instance.Get<LoadingTipConfig>(_key);
|
| | | }
|
| | |
|
| | | public static LoadingFunctionConfig GetLoadingFunction(string _key)
|
| | | {
|
| | | return Config.Instance.Get<LoadingFunctionConfig>(_key);
|
| | | }
|
| | |
|
| | | public static LanguageConfig GetLanguage(string _key)
|
| | | {
|
| | | return Config.Instance.Get<LanguageConfig>(_key);
|
| | | }
|
| | |
|
| | | public static KickOutReasonConfig GetKickOutReason(string _key)
|
| | | {
|
| | | return Config.Instance.Get<KickOutReasonConfig>(_key);
|
| | | }
|
| | |
|
| | | public static JobSetupConfig GetJobSetup(string _key)
|
| | | {
|
| | | return Config.Instance.Get<JobSetupConfig>(_key);
|
| | | }
|
| | |
|
| | | public static JobNameConfig GetJobName(string _key)
|
| | | {
|
| | | return Config.Instance.Get<JobNameConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ItemPlusSumAttrConfig GetItemPlusSumAttr(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ItemPlusSumAttrConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ItemPlusMaxConfig GetItemPlusMax(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ItemPlusMaxConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ItemPlusConfig GetItemPlus(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ItemPlusConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ItemCompoundConfig GetItemCompound(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ItemCompoundConfig>(_key);
|
| | | }
|
| | |
|
| | | public static ItemConfig GetItem(string _key)
|
| | | {
|
| | | return Config.Instance.Get<ItemConfig>(_key);
|
| | | }
|
| | |
|
| | | public static InvestConfig GetInvest(string _key)
|
| | | {
|
| | | return Config.Instance.Get<InvestConfig>(_key);
|
| | | }
|
| | |
|
| | | public static InSevenDaysConfig GetInSevenDays(string _key)
|
| | | {
|
| | | return Config.Instance.Get<InSevenDaysConfig>(_key);
|
| | | }
|
| | |
|
| | | public static IconConfig GetIcon(string _key)
|
| | | {
|
| | | return Config.Instance.Get<IconConfig>(_key);
|
| | | }
|
| | |
|
| | | public static HorseUpConfig GetHorseUp(string _key)
|
| | | {
|
| | | return Config.Instance.Get<HorseUpConfig>(_key);
|
| | | }
|
| | |
|
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 38bf2386a13aae54d83b3765e22cc17a |
| | | timeCreated: 1533313404 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using System; |
| | | using System.Text; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class LuaGameNetPackBase |
| | | { |
| | | public ushort cmd = 0; |
| | | public ushort combineCmd = 0; |
| | | |
| | | List<byte> sendBytes = new List<byte>(); |
| | | Action writeBytesAction; |
| | | |
| | | public void RegistWriteToBytes(Action action) |
| | | { |
| | | writeBytesAction = action; |
| | | } |
| | | |
| | | public void WriteShortBytes(ushort value, LuaGameNetSystem.NetDataType type) |
| | | { |
| | | byte[] bytes; |
| | | switch (type) |
| | | { |
| | | case LuaGameNetSystem.NetDataType.BYTE: |
| | | bytes = new byte[1]; |
| | | bytes[0] = (byte)(value & 0xFF); |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.WORD: |
| | | bytes = BitConverter.GetBytes((short)value); |
| | | break; |
| | | default: |
| | | bytes = BitConverter.GetBytes((int)value); |
| | | break; |
| | | } |
| | | sendBytes.AddRange(bytes); |
| | | } |
| | | |
| | | public void WriteUintsBytes(uint value, LuaGameNetSystem.NetDataType type) |
| | | { |
| | | byte[] bytes; |
| | | switch (type) |
| | | { |
| | | case LuaGameNetSystem.NetDataType.BYTE: |
| | | bytes = new byte[1]; |
| | | bytes[0] = (byte)(value & 0xFF); |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.WORD: |
| | | bytes = BitConverter.GetBytes((short)value); |
| | | break; |
| | | default: |
| | | bytes = BitConverter.GetBytes((int)value); |
| | | break; |
| | | } |
| | | sendBytes.AddRange(bytes); |
| | | } |
| | | |
| | | public void WriteIntsBytes(int value, LuaGameNetSystem.NetDataType type) |
| | | { |
| | | byte[] bytes; |
| | | switch (type) |
| | | { |
| | | case LuaGameNetSystem.NetDataType.BYTE: |
| | | bytes = new byte[1]; |
| | | bytes[0] = (byte)(value & 0xFF); |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.WORD: |
| | | bytes = BitConverter.GetBytes((short)value); |
| | | break; |
| | | default: |
| | | bytes = BitConverter.GetBytes((int)value); |
| | | break; |
| | | } |
| | | sendBytes.AddRange(bytes); |
| | | } |
| | | |
| | | public void WriteStringBytes(string value, LuaGameNetSystem.NetDataType type, int length) |
| | | { |
| | | var bytes = stringEncoding.GetBytes(value); |
| | | if (bytes.Length != length) |
| | | { |
| | | Array.Resize(ref bytes, length); |
| | | } |
| | | |
| | | sendBytes.AddRange(bytes); |
| | | } |
| | | |
| | | public void WriteShortsWriteLenBytes(ushort[] values, LuaGameNetSystem.NetDataType type) |
| | | { |
| | | for (var i = 0; i < values.Length; i++) |
| | | { |
| | | WriteShortBytes(values[i], type); |
| | | } |
| | | } |
| | | |
| | | public void WriteIntsWriteLenBytes(int[] values, LuaGameNetSystem.NetDataType type) |
| | | { |
| | | for (var i = 0; i < values.Length; i++) |
| | | { |
| | | WriteIntsBytes(values[i], type); |
| | | } |
| | | } |
| | | |
| | | public void WriteUintsWriteLenBytes(uint[] values, LuaGameNetSystem.NetDataType type) |
| | | { |
| | | for (var i = 0; i < values.Length; i++) |
| | | { |
| | | WriteUintsBytes(values[i], type); |
| | | } |
| | | } |
| | | |
| | | public void Send() |
| | | { |
| | | sendBytes.Add((byte)((cmd & 0xFF00) >> 8)); |
| | | sendBytes.Add((byte)(cmd & 0xFF)); |
| | | |
| | | if (writeBytesAction != null) |
| | | { |
| | | writeBytesAction(); |
| | | } |
| | | |
| | | if (combineCmd != 0) |
| | | { |
| | | var lengthBytes = BitConverter.GetBytes((ushort)sendBytes.Count); |
| | | sendBytes.Insert(0, lengthBytes[1]); |
| | | sendBytes.Insert(0, lengthBytes[0]); |
| | | sendBytes.Insert(0, (byte)(combineCmd & 0xFF)); |
| | | sendBytes.Insert(0, (byte)((combineCmd & 0xFF00) >> 8)); |
| | | } |
| | | |
| | | GameNetSystem.Instance.SendInfo(sendBytes.ToArray()); |
| | | } |
| | | |
| | | int readIndex = 0; |
| | | public uint TransUintBytes(byte[] value, LuaGameNetSystem.NetDataType type) |
| | | { |
| | | var length = GetBytesLength(type); |
| | | var result = 0u; |
| | | switch (type) |
| | | { |
| | | case LuaGameNetSystem.NetDataType.BYTE: |
| | | result = (uint)value[readIndex]; |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.WORD: |
| | | result = (ushort)BitConverter.ToUInt16(value, readIndex); |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.DWORD: |
| | | result = BitConverter.ToUInt32(value, readIndex); |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.Int: |
| | | result = (uint)BitConverter.ToInt32(value, readIndex); |
| | | break; |
| | | default: |
| | | Debug.LogError("请指定正确的类型。"); |
| | | break; |
| | | } |
| | | |
| | | readIndex += length; |
| | | return result; |
| | | } |
| | | |
| | | public int TransIntBytes(byte[] value, LuaGameNetSystem.NetDataType type) |
| | | { |
| | | var length = GetBytesLength(type); |
| | | var result = 0; |
| | | switch (type) |
| | | { |
| | | case LuaGameNetSystem.NetDataType.BYTE: |
| | | result = (int)value[readIndex]; |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.WORD: |
| | | result = (int)BitConverter.ToUInt16(value, readIndex); |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.DWORD: |
| | | result = (int)BitConverter.ToUInt32(value, readIndex); |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.Int: |
| | | result = BitConverter.ToInt32(value, readIndex); |
| | | break; |
| | | default: |
| | | Debug.LogError("请指定正确的类型。"); |
| | | break; |
| | | } |
| | | |
| | | readIndex += length; |
| | | return result; |
| | | } |
| | | |
| | | public ushort TransUshortBytes(byte[] value, LuaGameNetSystem.NetDataType type) |
| | | { |
| | | var length = GetBytesLength(type); |
| | | var result = (ushort)0; |
| | | switch (type) |
| | | { |
| | | case LuaGameNetSystem.NetDataType.BYTE: |
| | | result = (ushort)value[readIndex]; |
| | | readIndex += length; |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.WORD: |
| | | result = BitConverter.ToUInt16(value, readIndex); |
| | | readIndex += length; |
| | | break; |
| | | default: |
| | | Debug.LogError("请指定正确的类型。"); |
| | | break; |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | |
| | | public byte TransByteBytes(byte[] value, LuaGameNetSystem.NetDataType type) |
| | | { |
| | | var result = value[readIndex]; |
| | | readIndex += GetBytesLength(type); |
| | | return result; |
| | | } |
| | | |
| | | static Encoding stringEncoding = Encoding.UTF8; |
| | | public string TransStringBytes(byte[] value, LuaGameNetSystem.NetDataType type, int length) |
| | | { |
| | | if (value.Length < readIndex + length) |
| | | { |
| | | DebugEx.LogError("封包长度不足。"); |
| | | return string.Empty; |
| | | } |
| | | else |
| | | { |
| | | var result = stringEncoding.GetString(value, readIndex, length); |
| | | readIndex += length; |
| | | return result; |
| | | } |
| | | } |
| | | |
| | | public uint[] TransVShortsBytes(byte[] value, LuaGameNetSystem.NetDataType type, int length) |
| | | { |
| | | var step = GetBytesLength(type); |
| | | var array = new uint[length]; |
| | | for (var i = 0; i < length; i++) |
| | | { |
| | | switch (type) |
| | | { |
| | | case LuaGameNetSystem.NetDataType.BYTE: |
| | | array[i] = TransByteBytes(value, type); |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.WORD: |
| | | array[i] = TransUshortBytes(value, type); |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.Int: |
| | | array[i] = (uint)TransIntBytes(value, type); |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.DWORD: |
| | | array[i] = TransUintBytes(value, type); |
| | | break; |
| | | default: |
| | | Debug.LogError("请指定正确的类型。"); |
| | | break; |
| | | } |
| | | |
| | | readIndex += step; |
| | | } |
| | | |
| | | return array; |
| | | } |
| | | |
| | | static int GetBytesLength(LuaGameNetSystem.NetDataType type) |
| | | { |
| | | var step = 1; |
| | | switch (type) |
| | | { |
| | | case LuaGameNetSystem.NetDataType.BYTE: |
| | | step = 1; |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.WORD: |
| | | step = 2; |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.DWORD: |
| | | step = 4; |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.Int: |
| | | step = 4; |
| | | break; |
| | | case LuaGameNetSystem.NetDataType.Double: |
| | | step = 4; |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | | |
| | | return step; |
| | | } |
| | | } |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class LuaGameNetSystem |
| | | { |
| | | |
| | | public static LuaGameNetPackBase New() |
| | | { |
| | | return new LuaGameNetPackBase(); |
| | | } |
| | | |
| | | public enum NetDataType |
| | | { |
| | | BYTE, |
| | | WORD, |
| | | DWORD, |
| | | Chars, |
| | | Int, |
| | | Double |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 5e300c360f92a7a4a8f55568a5346e98 |
| | | timeCreated: 1540260844 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using System; |
| | | using XLua; |
| | | |
| | | public static class LuaGenEx { |
| | | |
| | | //lua中要使用到C#库的配置,比如C#标准库,或者Unity API,第三方库等。 |
| | | [LuaCallCSharp] |
| | | public static List<Type> LuaCallCSharp = new List<Type>() { |
| | | typeof(System.Object), |
| | | typeof(UnityEngine.Object), |
| | | typeof(Vector2), |
| | | typeof(Vector3), |
| | | typeof(Vector4), |
| | | typeof(Quaternion), |
| | | typeof(Color), |
| | | typeof(Ray), |
| | | typeof(Bounds), |
| | | typeof(Ray2D), |
| | | typeof(Time), |
| | | typeof(GameObject), |
| | | typeof(Component), |
| | | typeof(Behaviour), |
| | | typeof(Transform), |
| | | typeof(Resources), |
| | | typeof(TextAsset), |
| | | typeof(Keyframe), |
| | | typeof(AnimationCurve), |
| | | typeof(AnimationClip), |
| | | typeof(MonoBehaviour), |
| | | typeof(ParticleSystem), |
| | | typeof(SkinnedMeshRenderer), |
| | | typeof(Renderer), |
| | | typeof(WWW), |
| | | typeof(Light), |
| | | typeof(Mathf), |
| | | typeof(System.Collections.Generic.List<int>), |
| | | typeof(Action<string>), |
| | | typeof(UnityEngine.Debug) |
| | | }; |
| | | |
| | | //C#静态调用Lua的配置(包括事件的原型),仅可以配delegate,interface |
| | | [CSharpCallLua] |
| | | public static List<Type> CSharpCallLua = new List<Type>() { |
| | | typeof(Action), |
| | | typeof(Func<double, double, double>), |
| | | typeof(Action<string>), |
| | | typeof(Action<double>), |
| | | typeof(UnityEngine.Events.UnityAction), |
| | | typeof(System.Collections.IEnumerator) |
| | | }; |
| | | |
| | | //黑名单 |
| | | [BlackList] |
| | | public static List<List<string>> BlackList = new List<List<string>>() { |
| | | new List<string>(){"System.Xml.XmlNodeList", "ItemOf"}, |
| | | new List<string>(){"UnityEngine.WWW", "movie"}, |
| | | new List<string>(){ "UnityEngine.UI.Text","OnRebuildRequested"}, |
| | | #if UNITY_WEBGL |
| | | new List<string>(){"UnityEngine.WWW", "threadPriority"}, |
| | | #endif |
| | | new List<string>(){"UnityEngine.Texture2D", "alphaIsTransparency"}, |
| | | new List<string>(){"UnityEngine.Security", "GetChainOfTrustValue"}, |
| | | new List<string>(){"UnityEngine.CanvasRenderer", "onRequestRebuild"}, |
| | | new List<string>(){"UnityEngine.Light", "areaSize"}, |
| | | #if UNITY_2017_1_OR_NEWER |
| | | new List<string>(){"UnityEngine.Light", "lightmapBakeType"}, |
| | | new List<string>(){"UnityEngine.WWW", "MovieTexture"}, |
| | | new List<string>(){"UnityEngine.WWW", "GetMovieTexture"}, |
| | | #endif |
| | | new List<string>(){"UnityEngine.AnimatorOverrideController", "PerformOverrideClipListCleanup"}, |
| | | #if !UNITY_WEBPLAYER |
| | | new List<string>(){"UnityEngine.Application", "ExternalEval"}, |
| | | #endif |
| | | new List<string>(){"UnityEngine.GameObject", "networkView"}, //4.6.2 not support |
| | | new List<string>(){"UnityEngine.Component", "networkView"}, //4.6.2 not support |
| | | new List<string>(){"System.IO.FileInfo", "GetAccessControl", "System.Security.AccessControl.AccessControlSections"}, |
| | | new List<string>(){"System.IO.FileInfo", "SetAccessControl", "System.Security.AccessControl.FileSecurity"}, |
| | | new List<string>(){"System.IO.DirectoryInfo", "GetAccessControl", "System.Security.AccessControl.AccessControlSections"}, |
| | | new List<string>(){"System.IO.DirectoryInfo", "SetAccessControl", "System.Security.AccessControl.DirectorySecurity"}, |
| | | new List<string>(){"System.IO.DirectoryInfo", "CreateSubdirectory", "System.String", "System.Security.AccessControl.DirectorySecurity"}, |
| | | new List<string>(){"System.IO.DirectoryInfo", "Create", "System.Security.AccessControl.DirectorySecurity"}, |
| | | new List<string>(){"UnityEngine.MonoBehaviour", "runInEditMode"}, |
| | | #if !UNITY_5_6_OR_NEWER |
| | | |
| | | #endif |
| | | }; |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 32d66d052e577804b82262f75985c9c8 |
| | | timeCreated: 1540964674 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | |
| | | public class LuaLaunch : MonoBehaviour |
| | | { |
| | | |
| | | void Awake() |
| | | { |
| | | LuaUtility.Instance.Init(); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a1c7a84d58094b247ac2f6da3b5b224f |
| | | timeCreated: 1533283530 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using Snxxz.UI; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class ModelUtility |
| | | { |
| | | |
| | | public static DungeonModel dungeonModel { |
| | | get { |
| | | return ModelCenter.Instance.GetModel<DungeonModel>(); |
| | | } |
| | | } |
| | | |
| | | public static VipModel vipModel { |
| | | get { |
| | | return ModelCenter.Instance.GetModel<VipModel>(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 10b5a3c7eda80df4eafde3d6f8dab159 |
| | | timeCreated: 1540180766 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using XLua; |
| | | using System.IO; |
| | | |
| | | public class LuaUtility : SingletonMonobehaviour<LuaUtility> |
| | | { |
| | | public readonly static LuaEnv env = new LuaEnv(); |
| | | static float lastGCTime = 0; |
| | | const float GCInterval = 1;//1 second |
| | | |
| | | static LuaUtility() |
| | | { |
| | | env.AddLoader(new LuaEnv.CustomLoader(LoadAssetBytes)); |
| | | |
| | | env.AddBuildin("rapidjson", XLua.LuaDLL.Lua.LoadRapidJson); |
| | | env.AddBuildin("lpeg", XLua.LuaDLL.Lua.LoadLpeg); |
| | | env.AddBuildin("pb", XLua.LuaDLL.Lua.LoadLuaProfobuf); |
| | | env.AddBuildin("ffi", XLua.LuaDLL.Lua.LoadFFI); |
| | | } |
| | | |
| | | public static LuaTable GetNewTable() |
| | | { |
| | | return env.NewTable(); |
| | | } |
| | | |
| | | public static LuaTable Global { |
| | | get { return env.Global; } |
| | | } |
| | | |
| | | public void Init() |
| | | { |
| | | Do("global.util"); |
| | | Do("global.logex"); |
| | | Do("global.functions"); |
| | | Do("global.object"); |
| | | Do("global.define"); |
| | | Do("global.stringutil"); |
| | | Do("protocol.LuaProtocalRegister"); |
| | | Do("hotfix.hotfix"); |
| | | |
| | | lastGCTime = 0f; |
| | | } |
| | | |
| | | void Update() |
| | | { |
| | | if (Time.time - lastGCTime > GCInterval) |
| | | { |
| | | env.Tick(); |
| | | lastGCTime = Time.time; |
| | | } |
| | | } |
| | | |
| | | public static void Do(string _file, string chunkName = "chunk", LuaTable _table = null) |
| | | { |
| | | var command = string.Format("require '{0}'", _file); |
| | | env.DoString(command, chunkName, _table); |
| | | } |
| | | |
| | | public static void DoString(string _file, string chunkName = "chunk", LuaTable _table = null) |
| | | { |
| | | var content = LoadAsset(ref _file); |
| | | env.DoString(content, chunkName, _table); |
| | | } |
| | | |
| | | private static string LoadAsset(ref string _fileName) |
| | | { |
| | | _fileName = _fileName.Replace('.', '/'); |
| | | |
| | | var path = string.Empty; |
| | | if (AssetSource.luaFromEditor) |
| | | { |
| | | path = ResourcesPath.LUA_FODLER + "/" + _fileName + ".lua"; |
| | | } |
| | | else |
| | | { |
| | | path = AssetVersionUtility.GetAssetFilePath(StringUtility.Contact("lua/", _fileName, ".lua")); |
| | | } |
| | | |
| | | return File.ReadAllText(path); |
| | | } |
| | | |
| | | private static byte[] LoadAssetBytes(ref string _fileName) |
| | | { |
| | | return System.Text.Encoding.UTF8.GetBytes(LoadAsset(ref _fileName)); |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1cda39260931b2f4690636dbfa36287a |
| | | timeCreated: 1533282695 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using XLua; |
| | | using System; |
| | | using System.IO; |
| | | using Snxxz.UI; |
| | | |
| | | [LuaCallCSharp] |
| | | public class LuaWindow : Window |
| | | { |
| | | |
| | | public string filePath = ""; |
| | | |
| | | Action luaOnDestroy; |
| | | |
| | | Action onBindController; |
| | | Action onAddListeners; |
| | | Action onPreOpen; |
| | | Action onAfterOpen; |
| | | Action onPreClose; |
| | | Action onAfterClose; |
| | | Action onActived; |
| | | Action onLateUpdate; |
| | | |
| | | private LuaTable table; |
| | | |
| | | private void Init() |
| | | { |
| | | table = LuaUtility.GetNewTable(); |
| | | var meta = LuaUtility.GetNewTable(); |
| | | meta.Set("__index", LuaUtility.Global); |
| | | table.SetMetaTable(meta); |
| | | meta.Dispose(); |
| | | |
| | | LuaUtility.Do(filePath, this.gameObject.name, table); |
| | | |
| | | table.Get("BindController", out onBindController); |
| | | table.Get("AddListeners", out onAddListeners); |
| | | table.Get("OnPreOpen", out onPreOpen); |
| | | table.Get("OnAfterOpen", out onAfterOpen); |
| | | table.Get("OnPreClose", out onPreClose); |
| | | table.Get("OnAfterClose", out onAfterClose); |
| | | table.Get("OnActived", out onActived); |
| | | table.Get("LateUpdate", out onLateUpdate); |
| | | |
| | | table.Get("OnDestroy", out luaOnDestroy); |
| | | } |
| | | |
| | | void OnDestroy() |
| | | { |
| | | if (luaOnDestroy != null) |
| | | { |
| | | luaOnDestroy(); |
| | | } |
| | | |
| | | luaOnDestroy = null; |
| | | onBindController = null; ; |
| | | onAddListeners = null; ; |
| | | onPreOpen = null; ; |
| | | onAfterOpen = null; ; |
| | | onPreClose = null; |
| | | onAfterClose = null; ; |
| | | onActived = null; |
| | | onLateUpdate = null; |
| | | |
| | | if (table != null) |
| | | { |
| | | table.Dispose(); |
| | | } |
| | | } |
| | | |
| | | protected override void BindController() |
| | | { |
| | | Init(); |
| | | |
| | | if (onBindController != null) |
| | | { |
| | | onBindController(); |
| | | } |
| | | } |
| | | |
| | | protected override void AddListeners() |
| | | { |
| | | if (onAddListeners != null) |
| | | { |
| | | onAddListeners(); |
| | | } |
| | | } |
| | | |
| | | protected override void OnPreOpen() |
| | | { |
| | | if (onPreOpen != null) |
| | | { |
| | | onPreOpen(); |
| | | } |
| | | } |
| | | |
| | | protected override void OnAfterOpen() |
| | | { |
| | | if (onAfterOpen != null) |
| | | { |
| | | onAfterOpen(); |
| | | } |
| | | } |
| | | |
| | | protected override void OnPreClose() |
| | | { |
| | | if (onPreClose != null) |
| | | { |
| | | onPreClose(); |
| | | } |
| | | } |
| | | |
| | | protected override void OnAfterClose() |
| | | { |
| | | if (onAfterClose != null) |
| | | { |
| | | onAfterClose(); |
| | | } |
| | | } |
| | | |
| | | protected override void OnActived() |
| | | { |
| | | base.OnActived(); |
| | | |
| | | if (onActived != null) |
| | | { |
| | | onActived(); |
| | | } |
| | | } |
| | | |
| | | protected override void LateUpdate() |
| | | { |
| | | base.LateUpdate(); |
| | | |
| | | if (onLateUpdate != null) |
| | | { |
| | | onLateUpdate(); |
| | | } |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f203b48cd7ee2084fa734cc0b287c02d |
| | | timeCreated: 1534318225 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using Snxxz.UI; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class LuaWindowUtility |
| | | { |
| | | public static Window Open(string _name, bool _forceSync = false, int _functionalOrder = 0) |
| | | { |
| | | return WindowCenter.Instance.Open(_name, _forceSync, _functionalOrder); |
| | | } |
| | | |
| | | public static Window OpenWithoutAnimation(string _name) |
| | | { |
| | | return WindowCenter.Instance.OpenWithoutAnimation(_name); |
| | | } |
| | | |
| | | public static Window Get(string _name) |
| | | { |
| | | return WindowCenter.Instance.Get(_name); |
| | | } |
| | | |
| | | public static Window Close(string _name) |
| | | { |
| | | return WindowCenter.Instance.Close(_name); |
| | | } |
| | | |
| | | public static void CloseAll() |
| | | { |
| | | WindowCenter.Instance.CloseAll(); |
| | | |
| | | } |
| | | |
| | | public static void DestroyWin(string _name) |
| | | { |
| | | WindowCenter.Instance.DestroyWin(_name); |
| | | } |
| | | |
| | | public static bool IsOpen(string _name) |
| | | { |
| | | return WindowCenter.Instance.IsOpen(_name); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: d01a9255dd1b980498b7f0296c9d7a4d |
| | | timeCreated: 1534342506 |
| | | licenseType: Free |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class AchievementModel : Model, IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class AchievementModel : Model, IBeforePlayerDataInitialize
|
| | | {
|
| | | public event Action<int> achievementProgressUpdateEvent;
|
| | | public event Action<int> achievementCompletedEvent;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class ActivityModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ActivityModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize
|
| | | {
|
| | | HeavenBattleModel battleModel { get { return ModelCenter.Instance.GetModel<HeavenBattleModel>(); } }
|
| | | FairyModel fairyModel { get { return ModelCenter.Instance.GetModel<FairyModel>(); } }
|
| | |
| | | using System.Threading; |
| | | using TableConfig; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class AssetVersionUtility
|
| | | { |
| | | |
| | |
| | | using Snxxz.UI;
|
| | | using System.Threading;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class DownLoadAndDiscompressTask : Singleton<DownLoadAndDiscompressTask>
|
| | | |
| | | {
|
| | | public const int BYTE_PER_KILOBYTE = 1024;
|
| | | public const int BYTE_PER_MILLIONBYTE = 1048576;
|
| | |
| | | using System.Text.RegularExpressions;
|
| | | using TableConfig;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class InGameDownLoad : SingletonMonobehaviour<InGameDownLoad>
|
| | | |
| | | {
|
| | | public const int BYTE_PER_KILOBYTE = 1024;
|
| | | public const int BYTE_PER_MILLIONBYTE = 1048576;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class BetterEquipGetModel : Model, IBeforePlayerDataInitialize, ISwitchAccount
|
| | | [XLua.LuaCallCSharp]
|
| | | public class BetterEquipGetModel : Model, IBeforePlayerDataInitialize, ISwitchAccount
|
| | | {
|
| | | PlayerPackModel playerPack { get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); } }
|
| | | PackModelInterface modelInterface { get { return ModelCenter.Instance.GetModel<PackModelInterface>(); } }
|
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class ItemUseModel : Model, IBeforePlayerDataInitialize, ISwitchAccount
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ItemUseModel : Model, IBeforePlayerDataInitialize, ISwitchAccount
|
| | | {
|
| | | Dictionary<string, UseItem> itemStack = new Dictionary<string, UseItem>();
|
| | | List<string> itemGuids = new List<string>();
|
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class PreciousItemGetModel : Model, IBeforePlayerDataInitialize,ISwitchAccount,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PreciousItemGetModel : Model, IBeforePlayerDataInitialize,ISwitchAccount,IPlayerLoginOk
|
| | | {
|
| | | Dictionary<string, PreciousItem> itemStack = new Dictionary<string, PreciousItem>();
|
| | | List<string> itemGuids = new List<string>();
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class RealmBetterEquipModel : Model, IBeforePlayerDataInitialize, ISwitchAccount,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class RealmBetterEquipModel : Model, IBeforePlayerDataInitialize, ISwitchAccount,IPlayerLoginOk
|
| | | {
|
| | | PlayerPackModel playerPack { get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); } }
|
| | | PackModelInterface modelInterface { get { return ModelCenter.Instance.GetModel<PackModelInterface>(); } }
|
| | |
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class BlastFurnaceModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public BlastFurnaceFuncTitle funcTitle = BlastFurnaceFuncTitle.MakeDan;
|
| | |
| | | public Action<AlchemySpecConfig> RefreshAddSpecMatEvent;
|
| | |
|
| | | private TreasureModel _model;
|
| | | public TreasureModel sTreasureModel
|
| | | {
|
| | | get
|
| | | {
|
| | | public TreasureModel sTreasureModel {
|
| | | get {
|
| | | return _model ?? (_model = ModelCenter.Instance.GetModel<TreasureModel>());
|
| | | }
|
| | | }
|
| | |
| | | public event Action blastFurnacePromoteUpdate;
|
| | |
|
| | | PlayerPackModel _playerPack;
|
| | | PlayerPackModel playerPack
|
| | | {
|
| | | PlayerPackModel playerPack {
|
| | | get { return _playerPack ?? (_playerPack = ModelCenter.Instance.GetModel<PlayerPackModel>()); }
|
| | | }
|
| | | ItemTipsModel tipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | |
| | |
|
| | | alchemyModellist = Config.Instance.GetAllValues<AlchemyConfig>();
|
| | | FuncConfigConfig alchemyRedPoint = Config.Instance.Get<FuncConfigConfig>("AlchemyRedPoint");
|
| | | int.TryParse(alchemyRedPoint.Numerical1,out makeDrugRedLv);
|
| | | int.TryParse(alchemyRedPoint.Numerical1, out makeDrugRedLv);
|
| | | SetDandrugRedPointlist();
|
| | | GlobalTimeEvent.Instance.secondEvent += SecondUpdate;
|
| | | }
|
| | |
| | |
|
| | | public void OnAfterPlayerDataInitialize()
|
| | | {
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | private void RefreshFuncOpenState(int funcId)
|
| | |
| | | }
|
| | |
|
| | | public bool isMakeDan { get; set; }
|
| | | public bool isFirstGet { get; private set;}
|
| | | public bool isFirstGet { get; private set; }
|
| | | private void SecondUpdate()
|
| | | {
|
| | | if (makerItemID == 0) return;
|
| | |
|
| | | if(isMakeDan)
|
| | | if (isMakeDan)
|
| | | {
|
| | | if(!WindowCenter.Instance.IsOpen<MakerDrugSuccessWin>())
|
| | | if (!WindowCenter.Instance.IsOpen<MakerDrugSuccessWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<MakerDrugSuccessWin>();
|
| | | }
|
| | |
| | | _stoveExp = (int)data.StoveExp;
|
| | | makerItemID = (int)data.ItemID;
|
| | | CheckMakerDandrugCondition();
|
| | | if(!isFirstGet)
|
| | | if (!isFirstGet)
|
| | | {
|
| | | isMakeDan = true;
|
| | | if(preStoveLv < data.StoveLV)
|
| | | if (preStoveLv < data.StoveLV)
|
| | | {
|
| | | preStoveLv = data.StoveLV;
|
| | | StoveIsUpGrade = true;
|
| | |
| | | /// <summary>
|
| | | /// 得到炼丹和铸炼的结果
|
| | | /// </summary>
|
| | | public event Action<MakeType,int> RefreshMakeItemAnswerAct;
|
| | | public event Action<MakeType, int> RefreshMakeItemAnswerAct;
|
| | | public void GetMakerResult(H0721_tagMakeItemAnswer answer)
|
| | | {
|
| | | DebugEx.Log("GetMakerResult" + answer.Result);
|
| | | switch((MakeType)answer.MakeType)
|
| | | switch ((MakeType)answer.MakeType)
|
| | | {
|
| | | case MakeType.Def_mitRefine:
|
| | | if (answer.Result == 1)
|
| | |
| | | }
|
| | | break;
|
| | | }
|
| | | if(RefreshMakeItemAnswerAct != null)
|
| | | if (RefreshMakeItemAnswerAct != null)
|
| | | {
|
| | | RefreshMakeItemAnswerAct((MakeType)answer.MakeType,answer.Result);
|
| | | RefreshMakeItemAnswerAct((MakeType)answer.MakeType, answer.Result);
|
| | | }
|
| | | }
|
| | |
|
| | | #region 丹药筛选
|
| | | public List<int> sortDruglist = new List<int>();
|
| | | public void SetSortDruglist(int lv,bool isAdd,int sumNum)
|
| | | public void SetSortDruglist(int lv, bool isAdd, int sumNum)
|
| | | {
|
| | | if (lv != 0)
|
| | | {
|
| | |
| | | {
|
| | | sortDruglist.Add(lv);
|
| | | }
|
| | | |
| | | if(sortDruglist.Count >= sumNum - 1)
|
| | |
|
| | | if (sortDruglist.Count >= sumNum - 1)
|
| | | {
|
| | | if(!sortDruglist.Contains(0))
|
| | | if (!sortDruglist.Contains(0))
|
| | | {
|
| | | sortDruglist.Add(0);
|
| | | }
|
| | |
| | | sortDruglist.Remove(lv);
|
| | | }
|
| | |
|
| | | if(sortDruglist.Contains(0))
|
| | | if (sortDruglist.Contains(0))
|
| | | {
|
| | | sortDruglist.Remove(0);
|
| | | }
|
| | |
| | | else
|
| | | {
|
| | | sortDruglist.Clear();
|
| | | if(isAdd)
|
| | | if (isAdd)
|
| | | {
|
| | | sortDruglist.Add(lv);
|
| | | }
|
| | |
| | | {
|
| | | for (int i = 0; i < jsonData.Count; i++)
|
| | | {
|
| | | if(jsonData[i].IsArray)
|
| | | if (jsonData[i].IsArray)
|
| | | {
|
| | | int itemId = int.Parse(jsonData[i][0].ToString());
|
| | | if (jsonData[i].Count > 1)
|
| | | {
|
| | | int effectId = int.Parse(jsonData[i][1].ToString());
|
| | | PreviewItemDict.Add(itemId,effectId);
|
| | | PreviewItemDict.Add(itemId, effectId);
|
| | | }
|
| | | else
|
| | | {
|
| | | PreviewItemDict.Add(itemId,0);
|
| | | PreviewItemDict.Add(itemId, 0);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | public int GetEffectIdByItemId(int itemId)
|
| | | {
|
| | | int effectId = 0;
|
| | | PreviewItemDict.TryGetValue(itemId,out effectId);
|
| | | PreviewItemDict.TryGetValue(itemId, out effectId);
|
| | | return effectId;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | private void RefreshItemUsce(int id)
|
| | | {
|
| | | if(playerPack.CheckIsDrugById(id))
|
| | | if (playerPack.CheckIsDrugById(id))
|
| | | {
|
| | | CheckMakerDandrugCondition();
|
| | | CheckRecycleStoreRed();
|
| | |
| | | blastFurnacePromoteUpdate();
|
| | | }
|
| | | }
|
| | | public bool IsMakeDrugWin { get;set; }
|
| | | public void CheckMakeDrugRedPoint(bool isLogin = false,bool isClick = false)
|
| | | public bool IsMakeDrugWin { get; set; }
|
| | | public void CheckMakeDrugRedPoint(bool isLogin = false, bool isClick = false)
|
| | | {
|
| | | bool isCheckRed = false;
|
| | | if(!isClick)
|
| | | if (!isClick)
|
| | | {
|
| | | if(PlayerDatas.Instance.baseData.LV <= makeDrugRedLv)
|
| | | if (PlayerDatas.Instance.baseData.LV <= makeDrugRedLv)
|
| | | {
|
| | | isCheckRed = true;
|
| | | }
|
| | | else if(PlayerDatas.Instance.baseData.LV > makeDrugRedLv && !isLogin && !IsMakeDrugWin)
|
| | | else if (PlayerDatas.Instance.baseData.LV > makeDrugRedLv && !isLogin && !IsMakeDrugWin)
|
| | | {
|
| | | isCheckRed = true;
|
| | | }
|
| | |
|
| | | if(isCheckRed)
|
| | | if (isCheckRed)
|
| | | {
|
| | | List<AttrFruitConfig> list = playerPack.makeDruglist;
|
| | | if (list != null)
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | if(PlayerDatas.Instance.baseData.LV > makeDrugRedLv)
|
| | | if (PlayerDatas.Instance.baseData.LV > makeDrugRedLv)
|
| | | {
|
| | | MakeDrugRedpoint.state = RedPointState.None;
|
| | | }
|
| | |
| | | {
|
| | | if (StoveLV >= alchemyModellist[i].BlastFurnaceLV)
|
| | | {
|
| | | if(!CheckNormalAlchemyIsReachMaxUse(alchemyModellist[i]))
|
| | | if (!CheckNormalAlchemyIsReachMaxUse(alchemyModellist[i]))
|
| | | {
|
| | | if (IsNormalMatEnough(alchemyModellist[i]) && !IsHaveReachFull(alchemyModellist[i]))
|
| | | {
|
| | |
| | | if (alchemyConfig == null) return true;
|
| | |
|
| | | Dictionary<int, List<int>> specDrugDict = null;
|
| | | IsSpecMatEnough(alchemyConfig,out specDrugDict);
|
| | | IsSpecMatEnough(alchemyConfig, out specDrugDict);
|
| | |
|
| | | foreach(var key in specDrugDict.Keys)
|
| | | foreach (var key in specDrugDict.Keys)
|
| | | {
|
| | | List<int> idlist = specDrugDict[key];
|
| | | for (int i = 0; i < idlist.Count; i++)
|
| | |
| | | if (!petmodel._DicPetBack.ContainsKey(petInfo.ID))
|
| | | {
|
| | | return false;
|
| | | } |
| | | }
|
| | | }
|
| | |
|
| | | if (tipsModel.unlockMountDict.ContainsKey(idlist[i]))
|
| | |
| | | return isEnough;
|
| | | }
|
| | |
|
| | | public bool IsSpecMatEnough(AlchemyConfig alchemyConfig,out Dictionary<int,List<int>> specDurgDict)
|
| | | public bool IsSpecMatEnough(AlchemyConfig alchemyConfig, out Dictionary<int, List<int>> specDurgDict)
|
| | | {
|
| | | specDurgDict = new Dictionary<int, List<int>>();
|
| | | if (alchemyConfig == null) return false;
|
| | |
| | | {
|
| | | isEnough = true;
|
| | | List<int> specIdlist = GetPreviewSpecMakeDruglist(specConfig).Keys.ToList();
|
| | | specDurgDict.Add(specConfig.SpecialMaterialD,specIdlist);
|
| | | specDurgDict.Add(specConfig.SpecialMaterialD, specIdlist);
|
| | | }
|
| | | }
|
| | | return isEnough;
|
| | |
| | | {
|
| | | if (alchemyConfig == null) return false;
|
| | | List<int> previewlist = GetPreviewMakeDruglist(alchemyConfig).Keys.ToList();
|
| | | for(int i = 0; i < previewlist.Count; i++)
|
| | | for (int i = 0; i < previewlist.Count; i++)
|
| | | {
|
| | | if(playerPack.CheckIsDrugById(previewlist[i]))
|
| | | if (playerPack.CheckIsDrugById(previewlist[i]))
|
| | | {
|
| | | AttrFruitConfig fruitConfig = Config.Instance.Get<AttrFruitConfig>(previewlist[i]);
|
| | | if(!playerPack.IsReachMaxUseDrug(fruitConfig))
|
| | | if (!playerPack.IsReachMaxUseDrug(fruitConfig))
|
| | | {
|
| | | return false;
|
| | | }
|
| | |
| | | if (alchemyConfig == null) return false;
|
| | |
|
| | | List<int> previewlist = GetPreviewMakeDruglist(alchemyConfig).Keys.ToList();
|
| | | for(int i = 0; i < previewlist.Count; i++)
|
| | | for (int i = 0; i < previewlist.Count; i++)
|
| | | {
|
| | | if(playerPack.CheckIsDrugById(previewlist[i]))
|
| | | if (playerPack.CheckIsDrugById(previewlist[i]))
|
| | | {
|
| | | AttrFruitConfig fruitConfig = Config.Instance.Get<AttrFruitConfig>(previewlist[i]);
|
| | | if(!playerPack.IsReachMaxUseDrug(fruitConfig))
|
| | | if (!playerPack.IsReachMaxUseDrug(fruitConfig))
|
| | | {
|
| | | return false;
|
| | | }
|
| | |
| | | {
|
| | | if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.BlastFurnace)) return;
|
| | |
|
| | | if(IsRecycleDanDrug())
|
| | | if (IsRecycleDanDrug())
|
| | | {
|
| | | recycleBtnRedpoint.state = RedPointState.Simple;
|
| | | }
|
| | |
| | | public bool IsRecycleDanDrug()
|
| | | {
|
| | | List<ItemModel> itemModels = GetRecycleDanlist();
|
| | | if(itemModels != null && itemModels.Count > 0)
|
| | | if (itemModels != null && itemModels.Count > 0)
|
| | | {
|
| | | return true;
|
| | | }
|
| | |
| | |
|
| | | public void PlayRecycleGuid()
|
| | | {
|
| | | if (IsRecycleDanDrug() |
| | | if (IsRecycleDanDrug()
|
| | | && !NewBieCenter.Instance.completeGuidesBuf.Contains(93)
|
| | | && !StoveIsUpGrade)
|
| | | {
|
| | |
| | | /// 回收丹药
|
| | | /// </summary>
|
| | | /// <param name="itemId"></param>
|
| | | public void RecycleDrug(int itemId,int exp)
|
| | | public void RecycleDrug(int itemId, int exp)
|
| | | {
|
| | | ItemConfig itemConfig = Config.Instance.Get<ItemConfig>(itemId);
|
| | | if (isOpenPrompting)
|
| | | {
|
| | | int recycleNum = playerPack.GetItemCountByID(PackType.rptItem,itemId);
|
| | | ConfirmCancel.IconConfirmCancel(Language.Get("Mail101"), Language.Get("BlastFurnace114",recycleNum ,UIHelper.GetTextColorByItemColor(itemConfig.ItemColor, itemConfig.ItemName),exp*recycleNum), itemConfig.ID,
|
| | | playerPack.GetItemCountByID(PackType.rptItem, itemConfig.ID), 0,"", Language.Get("ConfirmCancel102"), (bool isOk, bool isToggle) =>
|
| | | {
|
| | | if (isOk)
|
| | | {
|
| | | int noBindNum = 0;
|
| | | List<int> indexs = null;
|
| | | List<int> nums = null;
|
| | | if(CheckIsNoBindDrug(itemId,out noBindNum,out indexs,out nums))
|
| | | {
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"),Language.Get("BlastFurnace115",noBindNum, UIHelper.GetTextColorByItemColor(itemConfig.ItemColor, itemConfig.ItemName)),
|
| | | (bool isRecycle)=>
|
| | | {
|
| | | if(isRecycle)
|
| | | {
|
| | | SendRecycleDrugQuest(indexs,nums);
|
| | | }
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | | SendRecycleDrugQuest(indexs, nums);
|
| | | }
|
| | | }
|
| | | isOpenPrompting = !isToggle;
|
| | | });
|
| | | int recycleNum = playerPack.GetItemCountByID(PackType.rptItem, itemId);
|
| | | ConfirmCancel.IconConfirmCancel(Language.Get("Mail101"), Language.Get("BlastFurnace114", recycleNum, UIHelper.GetTextColorByItemColor(itemConfig.ItemColor, itemConfig.ItemName), exp * recycleNum), itemConfig.ID,
|
| | | playerPack.GetItemCountByID(PackType.rptItem, itemConfig.ID), 0, "", Language.Get("ConfirmCancel102"), (bool isOk, bool isToggle) =>
|
| | | {
|
| | | if (isOk)
|
| | | {
|
| | | int noBindNum = 0;
|
| | | List<int> indexs = null;
|
| | | List<int> nums = null;
|
| | | if (CheckIsNoBindDrug(itemId, out noBindNum, out indexs, out nums))
|
| | | {
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"), Language.Get("BlastFurnace115", noBindNum, UIHelper.GetTextColorByItemColor(itemConfig.ItemColor, itemConfig.ItemName)),
|
| | | (bool isRecycle) =>
|
| | | {
|
| | | if (isRecycle)
|
| | | {
|
| | | SendRecycleDrugQuest(indexs, nums);
|
| | | }
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | | SendRecycleDrugQuest(indexs, nums);
|
| | | }
|
| | | }
|
| | | isOpenPrompting = !isToggle;
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | |
|
| | | }
|
| | |
|
| | | private bool CheckIsNoBindDrug(int itemId,out int nobindNums,out List<int> indexs,out List<int> nums)
|
| | | private bool CheckIsNoBindDrug(int itemId, out int nobindNums, out List<int> indexs, out List<int> nums)
|
| | | {
|
| | | indexs = new List<int>();
|
| | | nums = new List<int>();
|
| | | nobindNums = 0;
|
| | | SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
|
| | | if (singlePack == null) return false;
|
| | | SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
|
| | | if (singlePack == null) return false;
|
| | |
|
| | | List<ItemModel> items;
|
| | | singlePack.GetItemCountByID(itemId,out items);
|
| | | for(int i = 0; i < items.Count; i++)
|
| | | singlePack.GetItemCountByID(itemId, out items);
|
| | | for (int i = 0; i < items.Count; i++)
|
| | | {
|
| | | indexs.Add(items[i].itemInfo.ItemPlace);
|
| | | nums.Add(items[i].itemInfo.ItemCount);
|
| | |
| | | nobindNums += items[i].itemInfo.ItemCount;
|
| | | }
|
| | | }
|
| | | if(nobindNums > 0)
|
| | | if (nobindNums > 0)
|
| | | {
|
| | | return true;
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | Dictionary<string, List<ItemModel>> lookRecycleDict = new Dictionary<string, List<ItemModel>>();
|
| | | public Dictionary<string,List<ItemModel>> GetLookRecycleDanlist()
|
| | | public Dictionary<string, List<ItemModel>> GetLookRecycleDanlist()
|
| | | {
|
| | | lookRecycleDict.Clear();
|
| | | recycleStrlist.Clear();
|
| | |
| | |
|
| | | itemModels.Sort(CompareByDanBindAndLv);
|
| | |
|
| | | for(int i = 0; i < itemModels.Count; i++)
|
| | | for (int i = 0; i < itemModels.Count; i++)
|
| | | {
|
| | | string key = StringUtility.Contact(itemModels[i].itemId,"IsBind",itemModels[i].itemInfo.IsBind);
|
| | | if(!lookRecycleDict.ContainsKey(key))
|
| | | string key = StringUtility.Contact(itemModels[i].itemId, "IsBind", itemModels[i].itemInfo.IsBind);
|
| | | if (!lookRecycleDict.ContainsKey(key))
|
| | | {
|
| | | List<ItemModel> modellist = new List<ItemModel>();
|
| | | modellist.Add(itemModels[i]);
|
| | | lookRecycleDict.Add(key,modellist);
|
| | | if(itemModels[i].itemInfo.IsBind == 1)
|
| | | lookRecycleDict.Add(key, modellist);
|
| | | if (itemModels[i].itemInfo.IsBind == 1)
|
| | | {
|
| | | AddSelectRecycleDan(itemModels[i]);
|
| | | }
|
| | |
| | | return lookRecycleDict;
|
| | | }
|
| | |
|
| | | private int CompareByDanBindAndLv(ItemModel start,ItemModel end)
|
| | | private int CompareByDanBindAndLv(ItemModel start, ItemModel end)
|
| | | {
|
| | | bool isBindStart = start.itemInfo.IsBind == 1 ? true : false;
|
| | | bool isBindEnd = end.itemInfo.IsBind == 1 ? true : false;
|
| | |
| | | public void AddSelectRecycleDan(ItemModel itemModel)
|
| | | {
|
| | | string key = StringUtility.Contact(itemModel.itemId, "IsBind", itemModel.itemInfo.IsBind);
|
| | | if(!recycleStrlist.Contains(key))
|
| | | if (!recycleStrlist.Contains(key))
|
| | | {
|
| | | recycleStrlist.Add(key);
|
| | | }
|
| | |
|
| | | if(RefreshSelectRecycleAct != null)
|
| | | if (RefreshSelectRecycleAct != null)
|
| | | {
|
| | | RefreshSelectRecycleAct();
|
| | | }
|
| | |
| | | public int GetRecycleMoney()
|
| | | {
|
| | | int money = 0;
|
| | | foreach(var key in lookRecycleDict.Keys)
|
| | | foreach (var key in lookRecycleDict.Keys)
|
| | | {
|
| | | if(recycleStrlist.Contains(key))
|
| | | if (recycleStrlist.Contains(key))
|
| | | {
|
| | | List<ItemModel> itemModels = lookRecycleDict[key];
|
| | | for(int i = 0; i < itemModels.Count; i++)
|
| | | for (int i = 0; i < itemModels.Count; i++)
|
| | | {
|
| | | AttrFruitConfig fruitConfig = Config.Instance.Get<AttrFruitConfig>(itemModels[i].itemId);
|
| | | money = money + fruitConfig.RecycleExp * itemModels[i].itemInfo.ItemCount;
|
| | |
| | |
|
| | | public void SetSelectRecycleDan()
|
| | | {
|
| | | if(recycleStrlist.Count < 1)
|
| | | if (recycleStrlist.Count < 1)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("AlchemyRecycling");
|
| | | return;
|
| | |
| | | for (int i = 0; i < recycleStrlist.Count; i++)
|
| | | {
|
| | | List<ItemModel> modellist = null;
|
| | | lookRecycleDict.TryGetValue(recycleStrlist[i],out modellist);
|
| | | if(modellist != null)
|
| | | lookRecycleDict.TryGetValue(recycleStrlist[i], out modellist);
|
| | | if (modellist != null)
|
| | | {
|
| | | for(int j = 0; j < modellist.Count; j++)
|
| | | for (int j = 0; j < modellist.Count; j++)
|
| | | {
|
| | | sumCnt += modellist[j].itemInfo.ItemCount;
|
| | | if(modellist[j].itemInfo.IsBind == 0)
|
| | | if (modellist[j].itemInfo.IsBind == 0)
|
| | | {
|
| | | unBindCnt += modellist[j].itemInfo.ItemCount;
|
| | | }
|
| | |
|
| | | if(playerPack.CheckIsDrugById(modellist[j].itemId))
|
| | | if (playerPack.CheckIsDrugById(modellist[j].itemId))
|
| | | {
|
| | | AttrFruitConfig fruitConfig = Config.Instance.Get<AttrFruitConfig>(modellist[j].itemId);
|
| | | getMoney = getMoney + fruitConfig.RecycleExp * modellist[j].itemInfo.ItemCount;
|
| | | }
|
| | |
|
| | | if(!recycleDanDict.ContainsKey(modellist[j].itemInfo.ItemPlace))
|
| | | if (!recycleDanDict.ContainsKey(modellist[j].itemInfo.ItemPlace))
|
| | | {
|
| | | recycleDanDict.Add(modellist[j].itemInfo.ItemPlace,modellist[j].itemInfo.ItemCount);
|
| | | recycleDanDict.Add(modellist[j].itemInfo.ItemPlace, modellist[j].itemInfo.ItemCount);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | |
|
| | | }
|
| | |
|
| | | public void SendRecycleDrugQuest(List<int> indexs,List<int> nums)
|
| | | public void SendRecycleDrugQuest(List<int> indexs, List<int> nums)
|
| | | {
|
| | | CA32A_tagCMRecycleAttrFruit recycleAttrFruit = new CA32A_tagCMRecycleAttrFruit();
|
| | | recycleAttrFruit.IndexCount = (byte)indexs.Count;
|
| | |
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | |
|
| | | public class GetItemPathModel : Model
|
| | | [XLua.LuaCallCSharp]
|
| | | public class GetItemPathModel : Model
|
| | | {
|
| | | public ItemConfig chinItemModel { get; private set; }
|
| | | public int isBind { get; private set;}
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class PrayForDurgModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PrayForDurgModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | BlastFurnaceModel blastModel { get { return ModelCenter.Instance.GetModel<BlastFurnaceModel>(); } }
|
| | | PlayerPackModel playerPack { get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); } }
|
| | |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | public class BossRebornModel : Model, IOpenServerActivity |
| | | [XLua.LuaCallCSharp] |
| | | public class BossRebornModel : Model, IOpenServerActivity |
| | | { |
| | | int m_BossRebornIntegral = 0; |
| | | public int bossRebornIntegral { |
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class BossShowModel : Singleton<BossShowModel>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class BossShowModel : Singleton<BossShowModel>
|
| | | |
| | | {
|
| | | public BossShowModel()
|
| | | {
|
| | |
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ChatCenter : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, ISwitchAccount
|
| | | {
|
| | | RealmModel realmModel { get { return ModelCenter.Instance.GetModel<RealmModel>(); } }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public bool IsChatBanned
|
| | | {
|
| | | get
|
| | | {
|
| | | public bool IsChatBanned {
|
| | | get {
|
| | | var value = PlayerDatas.Instance.extersion.forbidenTalk;
|
| | | var serverBanned = value == 1;
|
| | | return serverBanned;
|
| | |
| | | using System.Text;
|
| | | using UnityEngine; |
| | | |
| | | [XLua.LuaCallCSharp]
|
| | | public class VoiceHttpRequest : SingletonMonobehaviour<VoiceHttpRequest>
|
| | | |
| | | { |
| | | const string uploadUrl = "http://{0}.voice.2460web.com:53001/voice/upload";
|
| | | const string downloadUrl = "http://{0}.voice.2460web.com:53001/voice/download"; |
| | |
| | | using Snxxz.UI;
|
| | | using System.Text;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class VersionUtility : Singleton<VersionUtility>
|
| | | |
| | | {
|
| | | public static readonly string[] VERSION_URL = new string[] { "http://pub.game.2460web.com:11000/appversion/?" ,
|
| | | "http://111.230.234.252:11000/appversion/?"};
|
| | |
| | | using TableConfig;
|
| | | using LitJson;
|
| | |
|
| | | public class ComposeWinModel : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ComposeWinModel : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | |
|
| | | public event Action ResetModelEvent;
|
| | |
| | | using TableConfig;
|
| | | using UnityEngine;
|
| | |
|
| | | public class SelectEquipModel : Model
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SelectEquipModel : Model
|
| | | {
|
| | | ComposeWinModel _composeWinModel;
|
| | | ComposeWinModel composeWinModel
|
| | |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | public class DailyQuestActionTimer : SingletonMonobehaviour<DailyQuestActionTimer> |
| | | [XLua.LuaCallCSharp] |
| | | public class DailyQuestActionTimer : SingletonMonobehaviour<DailyQuestActionTimer> |
| | | |
| | | { |
| | | DailyQuestModel model { get { return ModelCenter.Instance.GetModel<DailyQuestModel>(); } } |
| | | public event Action RefreshDailyQuestState; |
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class DailyQuestModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize, IMapInitOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class DailyQuestModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize, IMapInitOk
|
| | | {
|
| | |
|
| | | const int DAILYQUEST_REDPOINTID = 78000;
|
| | |
| | |
|
| | | public void GotoDailyQuest(int _id)
|
| | | {
|
| | | bool inDungeon = IsDungeon();
|
| | | switch ((DailyQuestType)_id)
|
| | | {
|
| | | case DailyQuestType.FairyLand:
|
| | |
| | | break;
|
| | | case DailyQuestType.BountyMission:
|
| | | WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.BountyInterface);
|
| | | //GotoBountyMission();
|
| | | break;
|
| | | case DailyQuestType.Demon:
|
| | | GotoChaosDemon(_id);
|
| | |
| | | break;
|
| | | case DailyQuestType.FairyTask:
|
| | | WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.UnionTask);
|
| | | // GotoFairyTask();
|
| | | break;
|
| | | case DailyQuestType.FairyLeague:
|
| | | WindowCenter.Instance.CloseImmediately<DailyQuestWin>();
|
| | |
| | | WindowCenter.Instance.Open<LocalMapWin>();
|
| | | break;
|
| | | default:
|
| | | CSharpCallLua.GotoLuaDailyQuest(_id);
|
| | | break;
|
| | | }
|
| | |
|
| | |
| | | item,
|
| | | sp,
|
| | | }
|
| | | public class ResourcesBackModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ResourcesBackModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | |
|
| | | public Dictionary<int, ResourcesBackClass> ResourcesBackDic = new Dictionary<int, ResourcesBackClass>();
|
| | |
| | | using LitJson;
|
| | | using System.IO;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class DebugUtility : Singleton<DebugUtility>
|
| | | {
|
| | | const string url = "http://pub.game.2460web.com:11000/dbg_player/?";
|
| | |
| | | GameObject debugRoot;
|
| | |
|
| | | bool m_DebugAccount = false;
|
| | | public bool debugAccount
|
| | | {
|
| | | public bool debugAccount {
|
| | | get { return m_DebugAccount; }
|
| | | private set
|
| | | {
|
| | | private set {
|
| | | if (m_DebugAccount != value)
|
| | | {
|
| | | m_DebugAccount = value;
|
| | |
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class DogzModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class DogzModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | PlayerPackModel playerPack { get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); } }
|
| | | GodBeastModel beastModel { get { return ModelCenter.Instance.GetModel<GodBeastModel>(); } }
|
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI |
| | | { |
| | | public class DogzPackModel : Model |
| | | [XLua.LuaCallCSharp] |
| | | public class DogzPackModel : Model |
| | | { |
| | | PlayerPackModel m_PlayerPackModel |
| | | { |
| | |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | public class DogzDungeonModel : Model, IPlayerLoginOk |
| | | [XLua.LuaCallCSharp] |
| | | public class DogzDungeonModel : Model, IPlayerLoginOk |
| | | { |
| | | |
| | | public const int DOGZDUNGEON_REDPOINT = 77002; |
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public struct Dungeon
|
| | | {
|
| | | public int mapId;
|
| | |
| | | using TableConfig;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class DungeonLiquidModel : Model
|
| | | [XLua.LuaCallCSharp]
|
| | | public class DungeonLiquidModel : Model
|
| | | {
|
| | | public Dictionary<int, Dictionary<int, StoreConfig>> liquidStoreDict = new Dictionary<int, Dictionary<int, StoreConfig>>();
|
| | | public List<ItemModel> liquidItemList = new List<ItemModel>();
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class DungeonModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class DungeonModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize
|
| | | {
|
| | | Dictionary<int, Dictionary<int, int>> dungeonMap = new Dictionary<int, Dictionary<int, int>>();//mapid,lineId,DungeonId;
|
| | | Dictionary<int, Dictionary<int, int>> dungeonHintMap = new Dictionary<int, Dictionary<int, int>>();
|
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class TrialDungeonModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class TrialDungeonModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | Dictionary<int, List<TrialExchangeConfig>> trialTokenExchangeDict = new Dictionary<int, List<TrialExchangeConfig>>();
|
| | | Dictionary<int, int> lineToTokenClassDict;
|
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI |
| | | { |
| | | public class FairyBossModel : Model |
| | | [XLua.LuaCallCSharp] |
| | | public class FairyBossModel : Model |
| | | { |
| | | public override void Init() |
| | | { |
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class FairyGrabBossModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class FairyGrabBossModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | {
|
| | | public List<int> bosses { get; private set; }
|
| | | Dictionary<int, List<Item>> dropItemDict = new Dictionary<int, List<Item>>();
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class FairyLeagueModel : Model, IAfterPlayerDataInitialize, IBeforePlayerDataInitialize, IPlayerLoginOk,IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class FairyLeagueModel : Model, IAfterPlayerDataInitialize, IBeforePlayerDataInitialize, IPlayerLoginOk,IOpenServerActivity
|
| | | {
|
| | | public event Action OnRefreshFairyLeagueEvent;
|
| | |
|
| | |
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class FairyModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class FairyModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | | public override void Init()
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class KingFairyModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class KingFairyModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public override void Init()
|
| | | {
|
| | |
| | | using System.Collections.Generic;
|
| | | using TableConfig;
|
| | |
|
| | | public class UnionTaskModel : Model,IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class UnionTaskModel : Model,IBeforePlayerDataInitialize
|
| | | {
|
| | | private FuncConfigConfig _tagFuncModel;
|
| | | public Action RefreshLivenScoreEvent;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class FairylandCeremonyModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class FairylandCeremonyModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | public ReceiveState receiveState { get; private set; }
|
| | | Dictionary<CeremonyType, Dictionary<int, List<int>>> typeLvDict = new Dictionary<CeremonyType, Dictionary<int, List<int>>>();
|
| | |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class FakeDungeonUtility : Singleton<FakeDungeonUtility> |
| | | |
| | | { |
| | | |
| | | int m_TureMapId = -1; |
| | |
| | | |
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class BossHomeModel : Model, IMapInitOk
|
| | | [XLua.LuaCallCSharp] |
| | | public class BossHomeModel : Model, IMapInitOk
|
| | | {
|
| | | public const int BOSSHOME_MAPID = 31020;
|
| | |
|
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class DemonJarModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, ISwitchAccount, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class DemonJarModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, ISwitchAccount, IPlayerLoginOk
|
| | | {
|
| | | public const int TOTALTIME_LIMIT = 5;
|
| | |
|
| | |
| | | |
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class ElderGodAreaModel : Model, IMapInitOk
|
| | | [XLua.LuaCallCSharp] |
| | | public class ElderGodAreaModel : Model, IMapInitOk
|
| | | {
|
| | |
|
| | | public const int ELDERGODAREA_MAPID = 31150;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class FindPreciousModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk, IMapInitOk, ISwitchAccount
|
| | | [XLua.LuaCallCSharp]
|
| | | public class FindPreciousModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk, IMapInitOk, ISwitchAccount
|
| | | {
|
| | | public const int PREPOSE_SECONDS = 300;
|
| | | public const int FINDPRECIOUS_REDPOINTID = 76000;
|
| | |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | public class FindPreciousTimer : SingletonMonobehaviour<FindPreciousTimer> |
| | | [XLua.LuaCallCSharp] |
| | | public class FindPreciousTimer : SingletonMonobehaviour<FindPreciousTimer> |
| | | |
| | | { |
| | | FindPreciousModel model { get { return ModelCenter.Instance.GetModel<FindPreciousModel>(); } } |
| | | Dictionary<int, BossRebornClock> clocks = new Dictionary<int, BossRebornClock>(); |
| | |
| | | { |
| | | |
| | | [SerializeField] FunctionButtonGroup m_FunctionGroup; |
| | | [SerializeField] FunctionButton m_DemonJar;
|
| | | [SerializeField] FunctionButton m_DemonJar; |
| | | [SerializeField] FunctionButton m_FairyGrabBoss; |
| | | [SerializeField] FunctionButton m_DogzDungeon; |
| | | |
| | |
| | | protected override void AddListeners() |
| | | { |
| | | m_DemonJar.AddListener(ShowDemonJar); |
| | | m_DogzDungeon.AddListener(ShowDogzDungeon);
|
| | | m_DogzDungeon.AddListener(ShowDogzDungeon); |
| | | m_FairyGrabBoss.AddListener(FairyGrabBoss); |
| | | m_Left.AddListener(ShowLastFunction); |
| | | m_Right.AddListener(ShowNextFunction);
|
| | | m_Right.AddListener(ShowNextFunction); |
| | | m_Close.AddListener(CloseClick); |
| | | } |
| | | |
| | |
| | | |
| | | private void FairyGrabBoss() |
| | | { |
| | | CloseSubWindows();
|
| | | WindowCenter.Instance.Open<FairyGrabBossWin>();
|
| | | CloseSubWindows(); |
| | | WindowCenter.Instance.Open<FairyGrabBossWin>(); |
| | | functionOrder = m_FairyGrabBoss.order; |
| | | } |
| | | |
| | |
| | | |
| | | private void CloseSubWindows() |
| | | { |
| | | WindowCenter.Instance.CloseImmediately<DemonJarWin>(); |
| | | WindowCenter.Instance.CloseImmediately<DogzDungeonWin>(); |
| | | WindowCenter.Instance.CloseImmediately<FairyGrabBossWin>(); |
| | | var children = WindowConfig.Get().FindChildWindows("LootPreciousFrameWin"); |
| | | foreach (var window in children) |
| | | { |
| | | WindowCenter.Instance.Close(window); |
| | | } |
| | | } |
| | | |
| | | private void ShowLastFunction() |
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class PersonalBossModel : Model, IMapInitOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PersonalBossModel : Model, IMapInitOk
|
| | | {
|
| | | public const int PERSONALBOSS_MAPID = 31240;
|
| | | public const int PERSONAL_REDPOINTID = 76003;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class RewardPreviewGroup : MonoBehaviour
|
| | | {
|
| | | [SerializeField]
|
| | |
| | | Display(items);
|
| | | }
|
| | |
|
| | | public void LuaDisplay(int[] itemIds, int[] itemCounts)
|
| | | {
|
| | | if (itemIds == null || itemCounts == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | var items = new List<Item>();
|
| | | var min = Mathf.Min(itemIds.Length, itemCounts.Length);
|
| | | for (int i = 0; i < min; i++)
|
| | | {
|
| | | items.Add(new Item(itemIds[i], itemCounts[i]));
|
| | | }
|
| | |
|
| | | Display(items);
|
| | | }
|
| | |
|
| | | public void LuaDisplay(int[] itemIds)
|
| | | {
|
| | | if (itemIds == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | var items = new List<Item>();
|
| | | for (int i = 0; i < itemIds.Length; i++)
|
| | | {
|
| | | items.Add(new Item(itemIds[i], 0));
|
| | | }
|
| | |
|
| | | Display(items);
|
| | | }
|
| | |
|
| | | public void Hide()
|
| | | {
|
| | | for (int i = 0; i < m_ItemBehaviours.Length; i++)
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class WorldBossModel : Model
|
| | | [XLua.LuaCallCSharp]
|
| | | public class WorldBossModel : Model
|
| | | {
|
| | |
|
| | | public const int WORLDBOSS_REDPOINT = 76001;
|
| | |
| | | None,
|
| | | }
|
| | |
|
| | | public class FriendsModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class FriendsModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize
|
| | | {
|
| | | TeamModel _teamModel;
|
| | | public TeamModel TeamModel
|
| | |
| | | using System.Text; |
| | | using System; |
| | | |
| | | public class GMCmdModel : Model |
| | | [XLua.LuaCallCSharp] |
| | | public class GMCmdModel : Model |
| | | { |
| | | public const string Record_CmdKey = "Record_CmdKey"; |
| | | private List<string> recordCmdlist = new List<string>(); |
| | |
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class GuardModel : Model, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class GuardModel : Model, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | List<int> fairyLandGuardItems = new List<int>();
|
| | |
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class HappyXBModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class HappyXBModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | private Dictionary<string, XBGetItemConfig> xbGetItemDict = new Dictionary<string, XBGetItemConfig>();
|
| | | private Dictionary<int, List<XBGetItemConfig>> xbTypeItemDict = new Dictionary<int, List<XBGetItemConfig>>();
|
| | |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | public class HeavenBattleInfo : Singleton<HeavenBattleInfo> |
| | | [XLua.LuaCallCSharp] |
| | | public class HeavenBattleInfo : Singleton<HeavenBattleInfo> |
| | | |
| | | { |
| | | public HeavenBattleInfo() |
| | | { |
| | |
| | | using System.Collections;
|
| | | using System.Linq;
|
| | |
|
| | | public class HeavenBattleModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class HeavenBattleModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | public const int HEAVEBATTLE_MAPID = 31010;
|
| | | public const int HEAVEBATTLE_TargetID = 38;
|
| | |
| | | using System.Text;
|
| | | using UnityEngine; |
| | | |
| | | public class HttpRequest : SingletonMonobehaviour<HttpRequest>
|
| | | [XLua.LuaCallCSharp] |
| | | public class HttpRequest : SingletonMonobehaviour<HttpRequest> |
| | | |
| | | {
|
| | | public const string defaultHttpContentType = "application/x-www-form-urlencoded";
|
| | | public const string jsonHttpContentType = "application/json ; charset=utf-8";
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class KnapsackTimeCDMgr : SingletonMonobehaviour<KnapsackTimeCDMgr>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class KnapsackTimeCDMgr : SingletonMonobehaviour<KnapsackTimeCDMgr>
|
| | | |
| | | {
|
| | | private List<ItemCDCool> itemCDList = new List<ItemCDCool>();
|
| | | private List<NormalCDCool> normalCDList = new List<NormalCDCool>();
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class BoxGetItemModel : Model,IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class BoxGetItemModel : Model,IBeforePlayerDataInitialize
|
| | | {
|
| | | public string guid { get; private set; }
|
| | | public int itemId { get; private set;}
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class ItemOverdueModel : Model,IBeforePlayerDataInitialize,IPlayerLoginOk, ISwitchAccount
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ItemOverdueModel : Model,IBeforePlayerDataInitialize,IPlayerLoginOk, ISwitchAccount
|
| | | {
|
| | | private List<ItemModel> overdueGuardPushlist = new List<ItemModel>();
|
| | | private Dictionary<int, List<int>> itemOverdueDict;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class ItemTipsModel : Model, IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ItemTipsModel : Model, IBeforePlayerDataInitialize
|
| | | {
|
| | |
|
| | | FuncConfigConfig exhaustedFunc;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class PackModelInterface : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PackModelInterface : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | private ItemConfig tagChinModel;
|
| | | private FuncConfigConfig _equipGSFormula;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class PackSendQuestMgr : Singleton<PackSendQuestMgr>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PackSendQuestMgr : Singleton<PackSendQuestMgr>
|
| | | |
| | | {
|
| | | PlayerPackModel _playerPack;
|
| | | PlayerPackModel playerPack
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class PlayerPackModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PlayerPackModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | |
|
| | | public Dictionary<int, int> DrugToDungeonDict { get; private set; } //key 丹药ID,value副本ID
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class TreasureEffectModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class TreasureEffectModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | public List<int> treasureAddAtklist { get; private set; }
|
| | | public List<string> treasureIdlist { get; private set; }
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class BatchUseModel : Singleton<BatchUseModel>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class BatchUseModel : Singleton<BatchUseModel>
|
| | | |
| | | {
|
| | | #region 批量使用数据
|
| | | public string guid { get; private set; }
|
| | |
| | | using UnityEngine;
|
| | | using Snxxz.UI;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class KnapSackEventMgr : Singleton<KnapSackEventMgr>
|
| | | |
| | | {
|
| | | public Action<GameObject> AddEquipWinTempObjEvent;
|
| | |
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class LoginModel : Model
|
| | | [XLua.LuaCallCSharp]
|
| | | public class LoginModel : Model
|
| | | {
|
| | | public const uint DwVersionNo = 153518004;
|
| | | public readonly static string USER_ACCOUNT = Application.dataPath + "UserAccount";
|
| | |
| | | using Snxxz.UI;
|
| | | using TableConfig;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ServerListCenter : Singleton<ServerListCenter>
|
| | | |
| | | {
|
| | | public static readonly string[] JUMP_URL = new string[] { "http://pub.game.2460web.com:11000/server_list/?"
|
| | | ,"http://111.230.234.252:11000/server_list/?"};
|
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class LoginAdModel : Model, IPlayerLoginOk,IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class LoginAdModel : Model, IPlayerLoginOk,IBeforePlayerDataInitialize
|
| | | {
|
| | | FairyJadeInvestmentModel moneyInvestModel { get { return ModelCenter.Instance.GetModel<FairyJadeInvestmentModel>(); } }
|
| | | VipInvestModel vipInvestModel { get { return ModelCenter.Instance.GetModel<VipInvestModel>(); } }
|
| | |
| | | using TableConfig;
|
| | | using System.Collections.Generic;
|
| | | //用于获得法宝技能的战斗力延迟
|
| | | public class CapacityDelayModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class CapacityDelayModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | TreasureModel m_treasureModel;
|
| | | TreasureModel treasureModel { get { return m_treasureModel ?? (m_treasureModel = ModelCenter.Instance.GetModel<TreasureModel>()); } }
|
| | |
| | | using Snxxz.UI;
|
| | | using System;
|
| | |
|
| | | public class CoinTaskTipModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class CoinTaskTipModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | |
|
| | | public bool IsPopup = false;//赏金
|
| | |
| | | using Snxxz.UI;
|
| | |
|
| | | //功能预告红点
|
| | | public class FeatureNoticeModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp] |
| | | public class FeatureNoticeModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public List<FunctionForecastConfig> FunctionList = new List<FunctionForecastConfig>();
|
| | | public Dictionary<int, ImpactRankModel.RankAwardItem> DicAwardItem = new Dictionary<int, ImpactRankModel.RankAwardItem>();//奖励物品
|
| | |
| | |
|
| | | namespace Snxxz.UI {
|
| | |
|
| | | public class MainRedDot : Singleton<MainRedDot> {
|
| | | [XLua.LuaCallCSharp]
|
| | | public class MainRedDot : Singleton<MainRedDot> {
|
| | | |
| | |
|
| | | public const int RedPoint_key = 1;
|
| | | public const int FAIRY_REDPOINT_KEY1 = 107;
|
| | |
| | | }
|
| | |
|
| | |
|
| | | public class OffLineOnHookModel : Model, IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class OffLineOnHookModel : Model, IBeforePlayerDataInitialize
|
| | | {
|
| | | public MCTJGInfoClass mCTJGInfoClass = new MCTJGInfoClass();
|
| | | public Dictionary<int, int> DicItem = new Dictionary<int, int>();
|
| | |
| | | namespace Snxxz.UI { |
| | | |
| | | |
| | | public class PKModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize |
| | | [XLua.LuaCallCSharp] |
| | | public class PKModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize |
| | | { |
| | | PlayerBuffDatas m_BuffModel; |
| | | PlayerBuffDatas Buffmodel |
| | |
| | | public int TaskID; |
| | | public int TaskType;//(0,未完成,1,正在进行中) |
| | | } |
| | | public class StoryMissionsModel : Model, IBeforePlayerDataInitialize |
| | | [XLua.LuaCallCSharp] |
| | | public class StoryMissionsModel : Model, IBeforePlayerDataInitialize |
| | | { |
| | | public Dictionary<int, int> StoryMissionsDic = new Dictionary<int, int>();//(value,0未完成,1完成) |
| | | public Dictionary<int, List<TaskListConfig>> TaskCfgDict = new Dictionary<int, List<TaskListConfig>>(); |
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class TaskAllocation : Singleton<TaskAllocation>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class TaskAllocation : Singleton<TaskAllocation>
|
| | | |
| | | {
|
| | |
|
| | | private static StringBuilder textBuilder = new StringBuilder();
|
| | |
| | | {
|
| | | //用于主界面的Tip的引导结束后出现
|
| | |
|
| | | public class TipPanel : Singleton<TipPanel>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class TipPanel : Singleton<TipPanel>
|
| | | |
| | | {
|
| | | PlayerMainDate m_MainModel;
|
| | | PlayerMainDate mainModel { get { return m_MainModel ?? (m_MainModel = ModelCenter.Instance.GetModel<PlayerMainDate>()); } }
|
| | |
| | | using UnityEngine; |
| | | using Snxxz.UI; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class PutawayData:Singleton<PutawayData> { |
| | | |
| | | public byte priceType = 0; |
| | | public uint priceCnt = 0;//出售价格 |
| | | public string pwd = string.Empty;//交易密码 |
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class BattleHint : Singleton<BattleHint>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class BattleHint : Singleton<BattleHint>
|
| | | |
| | | {
|
| | | DungeonModel dungeonModel { get { return ModelCenter.Instance.GetModel<DungeonModel>(); } }
|
| | |
|
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class GMNotify : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class GMNotify : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | |
|
| | | public override void Init()
|
| | |
| | | using TableConfig;
|
| | | using UnityEngine.UI;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SysNotifyMgr : SingletonMonobehaviour<SysNotifyMgr>
|
| | | |
| | | {
|
| | | /// <summary>
|
| | | /// 服务端下发的数据
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class FunctionalGuideCenter : Singleton<FunctionalGuideCenter>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class FunctionalGuideCenter : Singleton<FunctionalGuideCenter>
|
| | | |
| | | {
|
| | | public event Action<int> beginGuideEvent;
|
| | | public event Action<int> finishGuideEevent;
|
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class NewBieCenter : Singleton<NewBieCenter>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class NewBieCenter : Singleton<NewBieCenter>
|
| | | |
| | | {
|
| | |
|
| | | int m_CurrentGuide = 0;
|
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class OffLineTimeLackModel : Model, ISwitchAccount, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class OffLineTimeLackModel : Model, ISwitchAccount, IPlayerLoginOk
|
| | | {
|
| | | public bool hasRemindOffLineTimeLack { get; set; }
|
| | |
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class FlashRushToBuyModel : Model,IBeforePlayerDataInitialize,IPlayerLoginOk,IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class FlashRushToBuyModel : Model,IBeforePlayerDataInitialize,IPlayerLoginOk,IOpenServerActivity
|
| | | {
|
| | | StoreModel storeModel { get { return ModelCenter.Instance.GetModel<StoreModel>(); } }
|
| | | HeavenBattleModel battleModel { get { return ModelCenter.Instance.GetModel<HeavenBattleModel>(); } }
|
| | |
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class FlashSaleModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize, IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class FlashSaleModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize, IOpenServerActivity
|
| | | {
|
| | | StoreModel storeModel { get { return ModelCenter.Instance.GetModel<StoreModel>(); } }
|
| | | public override void Init()
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class ImpactRankModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ImpactRankModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | {
|
| | | public override void Init()
|
| | | {
|
| | |
| | | #endregion
|
| | | }
|
| | |
|
| | | public class OpenServerActivityCenter : Singleton<OpenServerActivityCenter>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class OpenServerActivityCenter : Singleton<OpenServerActivityCenter>
|
| | | |
| | | {
|
| | | public event Action openServerActivityStateChange;
|
| | |
|
| | |
| | | public int Money;//奖励价值
|
| | | }
|
| | |
|
| | | public class InSevenDayModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class InSevenDayModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | |
|
| | | public static event Action AwardMessageUpdate;
|
| | |
| | | public int NeedLv;//需要等级 |
| | | public MonthlyInvestmentModel.MonthlyInvestmentItem monthlyInvestmentItem;//奖励 |
| | | } |
| | | public class MonthlyInvestmentModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk |
| | | [XLua.LuaCallCSharp] |
| | | public class MonthlyInvestmentModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk |
| | | { |
| | | public Dictionary<int, MonthlyInvestmentClass> MonthlyInvestmentDic = new Dictionary<int, MonthlyInvestmentClass>(); |
| | | public Dictionary<int, int> InfoSeriors = new Dictionary<int, int>();//奖励领取信息 |
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class OSGiftModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize, IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class OSGiftModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize, IOpenServerActivity
|
| | | {
|
| | | public override void Init()
|
| | | {
|
| | |
| | | using TableConfig;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class OSRedEnvelopeModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class OSRedEnvelopeModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | {
|
| | | AchievementModel m_AchievementModel;
|
| | | AchievementModel achieveModel
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class OpenServerActivityNotifyModel : Model,IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class OpenServerActivityNotifyModel : Model,IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | |
|
| | | public override void Init()
|
| | |
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class RedEnvelopeModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class RedEnvelopeModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | PlayerRedPacketDatas redPackdata { get { return ModelCenter.Instance.GetModel<PlayerRedPacketDatas>(); } }
|
| | | OSRedEnvelopeModel envelopeModel { get { return ModelCenter.Instance.GetModel<OSRedEnvelopeModel>(); } }
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.LuaCallCSharp]
|
| | | public class WishingPoolModel : Model,IBeforePlayerDataInitialize,IPlayerLoginOk,IOpenServerActivity
|
| | | {
|
| | | public event Action<int> UpdateWishingDataEvent;
|
| | |
| | | using System.Text; |
| | | |
| | | |
| | | public class PetReinforceModel:Singleton<PetReinforceModel> |
| | | [XLua.LuaCallCSharp] |
| | | public class PetReinforceModel:Singleton<PetReinforceModel> |
| | | |
| | | { |
| | | |
| | | public PetReinforceTitle PetTitle = PetReinforceTitle.EvolveTrain; |
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class RidingAndPetActivationModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class RidingAndPetActivationModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | |
|
| | | public RidingAndPetActivation RidingAndPetActivation1;
|
| | |
| | | using System.Collections;
|
| | | using System.Text;
|
| | |
|
| | | public class PlayerDeadModel : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PlayerDeadModel : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | public int[]dungeonKillArray { get; private set; }
|
| | | public override void Init()
|
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI |
| | | { |
| | | public class RankModel : Model |
| | | [XLua.LuaCallCSharp] |
| | | public class RankModel : Model |
| | | { |
| | | private int m_RankType = 0; |
| | | public int rankType { |
| | |
| | | using UnityEngine; |
| | | using System.Text; |
| | | |
| | | public class RealmPracticeModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk |
| | | [XLua.LuaCallCSharp] |
| | | public class RealmPracticeModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk |
| | | { |
| | | private Dictionary<int, Dictionary<int, List<RealmPracticeConfig>>> OpenRealmPraDict = new Dictionary<int, Dictionary<int, List<RealmPracticeConfig>>>(); |
| | | private SuccessConfig _tagAchievementModel = null; |
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.LuaCallCSharp]
|
| | | public class Redpoint
|
| | | {
|
| | | int m_Id = 0;
|
| | |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | [XLua.LuaCallCSharp] |
| | | public class RedpointCenter : Singleton<RedpointCenter> |
| | | { |
| | | public event Action<int> redpointValueChangeEvent; |
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class MagicianModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class MagicianModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | PlayerPackModel _playerPack;
|
| | | PlayerPackModel playerPack
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class RoleModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class RoleModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | FriendsModel friendsModel { get { return ModelCenter.Instance.GetModel<FriendsModel>(); } }
|
| | | public string RecordPlayerNameKey;
|
| | |
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class TitleModel : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class TitleModel : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | const string TITLEKEY = "Title";
|
| | |
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class RoleParticularModel : Model
|
| | | [XLua.LuaCallCSharp]
|
| | | public class RoleParticularModel : Model
|
| | | {
|
| | |
|
| | | public override void Init()
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class RolePromoteModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class RolePromoteModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | PlayerPackModel _playerPack;
|
| | | PlayerPackModel playerPack
|
| | |
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class RuneComposeModel : Model, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class RuneComposeModel : Model, IPlayerLoginOk
|
| | | {
|
| | | public override void Init()
|
| | | {
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class RuneModel : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class RuneModel : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | RuneComposeModel m_RuneComposeModel;
|
| | | RuneComposeModel runeComposeModel {
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class RuneTowerModel : Model, IMapInitOk, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class RuneTowerModel : Model, IMapInitOk, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public const int RUNETOWER_MAPID = 31130;
|
| | |
|
| | |
| | | /// <summary> |
| | | /// 服务端Setting配置,存储一些快捷设置,目前长度为100 |
| | | /// </summary> |
| | | [XLua.LuaCallCSharp] |
| | | public class QuickSetting : Singleton<QuickSetting> |
| | | |
| | | { |
| | | public QuickSetting() |
| | | { |
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class SkillModel : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SkillModel : Model, IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | public override void Init()
|
| | | {
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class TalentModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp] |
| | | public class TalentModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize
|
| | | {
|
| | | Dictionary<int, TalentSkill> talentSkills = new Dictionary<int, TalentSkill>();
|
| | | Dictionary<int, TalentTree> talentTreeDict = new Dictionary<int, TalentTree>();
|
| | |
| | | using Snxxz.UI;
|
| | | using System.Linq;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class CoroutineMgr : SingletonMonobehaviour<CoroutineMgr>
|
| | | |
| | | {
|
| | | public event Action MainHighTipCdTimeEvent;//主界面上层切换CD时间
|
| | |
|
| | |
| | | using System.Text;
|
| | | using TableConfig;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class BuyItemPopModel : Singleton<BuyItemPopModel>
|
| | | |
| | | {
|
| | | public StoreConfig storeConfig { get; private set; }
|
| | |
|
| | |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | public class BuySuccessModel : Singleton<BuySuccessModel> |
| | | [XLua.LuaCallCSharp] |
| | | public class BuySuccessModel : Singleton<BuySuccessModel> |
| | | |
| | | { |
| | | public int ItemID { get; private set; } |
| | | public int itemCnt { get; private set; } |
| | |
| | | }
|
| | | }
|
| | |
|
| | | public class StoreModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class StoreModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | public int[] normalBuyCoinsTypes { get; private set; }
|
| | | public string UNIONSTORESAVE_KEY { get; private set; }
|
| | |
| | | using System.Linq; |
| | | using System.Text; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class EquipReinforceModel : Singleton<EquipReinforceModel> |
| | | |
| | | { |
| | | public EquipReinforceFuncTitle funcTitle = EquipReinforceFuncTitle.Strength; |
| | | |
| | |
| | | HighSuit = 2, //强化套装
|
| | | }
|
| | |
|
| | | public class PlayerSuitModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PlayerSuitModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public List<int> suitPartlist { get; private set; }
|
| | | private Dictionary<int, Dictionary<int, int>> suitMaxLvDict = new Dictionary<int, Dictionary<int, int>>();
|
| | |
| | | public WashProValue[] proValuelist = null; // 属性列表,索引0的代表属性1,依次递增
|
| | | }
|
| | |
|
| | | public class EquipWashModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class EquipWashModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | |
|
| | | public delegate void OnRefreshWashModel();
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class GemModel : Model, IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class GemModel : Model, IBeforePlayerDataInitialize
|
| | | {
|
| | | PlayerPackModel _playerPack;
|
| | | PlayerPackModel playerPack
|
| | |
| | | using UnityEngine;
|
| | |
|
| | | // 关于神兽强化
|
| | | public class GodBeastModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp] |
| | | public class GodBeastModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public Dictionary<int, int> Absorption_Dic = new Dictionary<int, int>();//获取选择的物品
|
| | | public event Action AbsorbEvent;
|
| | |
| | | using Snxxz.UI; |
| | | |
| | | public class HowToPlayModel : Model |
| | | [XLua.LuaCallCSharp] |
| | | public class HowToPlayModel : Model |
| | | { |
| | | public override void Init() |
| | | { |
| | |
| | | using System.Collections.Generic;
|
| | | using TableConfig;
|
| | |
|
| | | public class WashProModel : Model
|
| | | [XLua.LuaCallCSharp]
|
| | | public class WashProModel : Model
|
| | | {
|
| | | EquipWashModel _equipWashModel;
|
| | | public EquipWashModel equipWashModel
|
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class WingsRedDot : Model, IPlayerLoginOk, IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class WingsRedDot : Model, IPlayerLoginOk, IBeforePlayerDataInitialize
|
| | | {
|
| | | private const int Redpoint_key = 10603;
|
| | | public Redpoint redPointStre = new Redpoint(MainRedDot.RedPoint_key1, Redpoint_key);
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class ActivitiesPushMgr : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ActivitiesPushMgr : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | public const int WholePeopleRankStart = 2091000; //全民冲榜开始
|
| | | public const int WholePeopleRankEnd = 20910000; //全民冲榜截止
|
| | |
| | | //AllianceVoice4G, //同盟语音4G
|
| | | }
|
| | |
|
| | | public class ChatSetting : Singleton<ChatSetting>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ChatSetting : Singleton<ChatSetting>
|
| | | |
| | | {
|
| | | const string ChatBoolSet_Key = "ChatBoolSet";
|
| | |
|
| | |
| | | isAutoReborn,//是否自动买活
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class HangUpSetModel : Singleton<HangUpSetModel>
|
| | | |
| | | {
|
| | | const string HpSet_Key = "HpSet";
|
| | | const string HangUpBoolSet_Key = "HangUpBoolSet";
|
| | |
| | | |
| | | } |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class PrivateRemind : Singleton<HangUpSetModel> |
| | | |
| | | { |
| | | //const string |
| | | const string BoolSet_Key = "BoolSet"; |
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class SetPrivateModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SetPrivateModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | DailyQuestModel dailyModel { get { return ModelCenter.Instance.GetModel<DailyQuestModel>(); } }
|
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModel<VipModel>(); } }
|
| | |
| | | using TableConfig;
|
| | | using System.Collections;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SettingEffectMgr : SingletonMonobehaviour<SettingEffectMgr>
|
| | | |
| | | {
|
| | | private bool _isAutoHangUp = false;
|
| | | private ItemConfig _tagItemModel;
|
| | |
| | | using System.Text;
|
| | | using UnityEngine;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SettingMgr : Singleton<SettingMgr>
|
| | | |
| | | {
|
| | |
|
| | | public string accountKey = "";
|
| | |
| | | using Snxxz.UI;
|
| | | using System.Collections;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SystemSetting : Singleton<SystemSetting>
|
| | | |
| | | {
|
| | | const string QUALITY_LEVEL_KEY = "GameQualityLevel";
|
| | | const string SOUND_VOLUME_KEY = "SoundRatioKey"; //音乐
|
| | |
| | | using UnityEngine;
|
| | | using System.Collections.Generic;
|
| | |
|
| | | public class TaiChiModel : Model,IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class TaiChiModel : Model,IBeforePlayerDataInitialize
|
| | | {
|
| | | //日常活动
|
| | | DailyQuestModel _dailyQuestModel;
|
| | |
| | | |
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class GroupDungeonChallengeProcessor : SingletonMonobehaviour<GroupDungeonChallengeProcessor>
|
| | | [XLua.LuaCallCSharp] |
| | | public class GroupDungeonChallengeProcessor : SingletonMonobehaviour<GroupDungeonChallengeProcessor> |
| | | |
| | | {
|
| | | int mapId = 0;
|
| | | int lineId = 0;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class TeamModel : Model, IAfterPlayerDataInitialize, ISwitchAccount, IPlayerLoginOk, IMapInitOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class TeamModel : Model, IAfterPlayerDataInitialize, ISwitchAccount, IPlayerLoginOk, IMapInitOk
|
| | | {
|
| | | public const int NONE_MISSION = 0;
|
| | | public const int CURRENTMAP_MISSION = 1;
|
| | |
| | | using System.Collections; |
| | | using System; |
| | | |
| | | |
| | | namespace Snxxz.UI { |
| | | |
| | | [XLua.Hotfix] |
| | | public class TestWin:Window { |
| | | |
| | | TestModel m_Model; |
| | |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class PwdKeyboard : Singleton<PwdKeyboard> { |
| | | |
| | | public string pwd = string.Empty; |
| | | } |
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class TreasureModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class TreasureModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public const int TREASURE_DATAMAPID = 41110;
|
| | | public const int TREASURE_MAPID = 41110;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class TreasureSoulModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp] |
| | | public class TreasureSoulModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public const int TREASURE_SOUL_ID = 115;
|
| | | Redpoint treasureSoulRedpoint = new Redpoint(1, TREASURE_SOUL_ID);
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class TreasureFindHostModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class TreasureFindHostModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | private Dictionary<int, List<FindTreasureInfo>> findTreasureDict = new Dictionary<int, List<FindTreasureInfo>>();
|
| | | PlayerPackModel playerPack { get { return ModelCenter.Instance.GetModel<PlayerPackModel>(); } }
|
| | |
| | | public int NeedLv;//需要等级
|
| | | public MonthlyInvestmentModel.MonthlyInvestmentItem FairyJadeInvestmentItem;//奖励
|
| | | }
|
| | | public class FairyJadeInvestmentModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class FairyJadeInvestmentModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | {
|
| | | public Dictionary<int, FairyJadeInvestmentClass> FairyJadeInvestmentDic = new Dictionary<int, FairyJadeInvestmentClass>();//等级
|
| | | public Dictionary<int, int> InfoSeriors = new Dictionary<int, int>();//奖励领取信息//key为索引,Value(0,未领,其他值未领的钱数)
|
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class FirstTimeRechargeModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class FirstTimeRechargeModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | |
|
| | | public bool IsOk = false;
|
| | |
| | | using TableConfig;
|
| | | using UnityEngine;
|
| | |
|
| | | public class LimitedTimePackageItemClassModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class LimitedTimePackageItemClassModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | {
|
| | | public Dictionary<int, int> DicBuyPackage = new Dictionary<int, int>();
|
| | | public event Action UpdateLimitedTimePackageItem;
|
| | |
| | | public DateTime dateTime;
|
| | | }
|
| | |
|
| | | public class NeedForWhiteModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class NeedForWhiteModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | public Dictionary<int, NeedForWhiteClass> NeedForWhiteDic = new Dictionary<int, NeedForWhiteClass>();
|
| | | public Dictionary<int, BuySateClass> BuySate = new Dictionary<int, BuySateClass>();//领奖信息0-未购买,1-已领取,其他time值-购买时间
|
| | |
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class OSTimeLimitGiftModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize, IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class OSTimeLimitGiftModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize, IOpenServerActivity
|
| | | {
|
| | | Dictionary<int, List<StoreConfig>> m_OSTimeLimitGifts = new Dictionary<int, List<StoreConfig>>();
|
| | |
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class VipInvestModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class VipInvestModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | {
|
| | | private Dictionary<string, Dictionary<string, List<InvestReward>>> vipInvestDict = new Dictionary<string, Dictionary<string, List<InvestReward>>>();
|
| | | private Dictionary<int, List<InvestConfig>> investCycleDict = new Dictionary<int, List<InvestConfig>>(); //每周期数据
|
| | |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class WheelOfFortuneModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity |
| | | { |
| | | public class AngleClass |
| | |
| | | public float AngleSave = 0f;//角度记录 |
| | | public Dictionary<int, AngleClass> AngleDic = new Dictionary<int, AngleClass>(); |
| | | private double[][] AngleList; |
| | | public event Action<float> WheelOfFortuneUpdate;
|
| | | public event Action<int> onStateUpate;
|
| | |
|
| | | public event Action<float> WheelOfFortuneUpdate; |
| | | public event Action<int> onStateUpate; |
| | | |
| | | private string StrKey = string.Empty; |
| | | private bool IsOk = false; |
| | | private const int Redpoint_key1 = 20916;//幸运转盘红点 |
| | | public Redpoint redPointStre1 = new Redpoint(209, Redpoint_key1); |
| | | VipModel m_Vipmodel; |
| | | VipModel vipmodel { get { return m_Vipmodel ?? (m_Vipmodel = ModelCenter.Instance.GetModel<VipModel>()); } }
|
| | |
|
| | | public bool IsOpen
|
| | | {
|
| | | get
|
| | | {
|
| | | return FuncOpen.Instance.IsFuncOpen(144);
|
| | | }
|
| | | }
|
| | |
|
| | | public bool IsAdvance
|
| | | {
|
| | | get
|
| | | {
|
| | | return false;
|
| | | }
|
| | | }
|
| | |
|
| | | public bool priorityOpen
|
| | | {
|
| | | get
|
| | | {
|
| | | if (redPointStre1.state == RedPointState.Simple)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | else
|
| | | {
|
| | | return false;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | VipModel vipmodel { get { return m_Vipmodel ?? (m_Vipmodel = ModelCenter.Instance.GetModel<VipModel>()); } } |
| | | |
| | | public bool IsOpen |
| | | { |
| | | get |
| | | { |
| | | return FuncOpen.Instance.IsFuncOpen(144); |
| | | } |
| | | } |
| | | |
| | | public bool IsAdvance |
| | | { |
| | | get |
| | | { |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | public bool priorityOpen |
| | | { |
| | | get |
| | | { |
| | | if (redPointStre1.state == RedPointState.Simple) |
| | | { |
| | | return true; |
| | | } |
| | | else |
| | | { |
| | | return false; |
| | | } |
| | | } |
| | | } |
| | | |
| | | public override void Init() |
| | | {
|
| | | { |
| | | OpenServerActivityCenter.Instance.Register(16, this); |
| | | var BindJadewheel = Config.Instance.Get<FuncConfigConfig>("BindJadeWheelCfg"); |
| | | NeedJade = int.Parse(BindJadewheel.Numerical1); |
| | | AngleList = JsonMapper.ToObject<double[][]>(BindJadewheel.Numerical5); |
| | | if (AngleDic.Count <= 0)
|
| | | {
|
| | | for (int i = 0; i < AngleList.Length; i++)
|
| | | {
|
| | | int Type = i + 1;
|
| | | AngleClass angleClass = new AngleClass();
|
| | | angleClass.AngleStart = (float)AngleList[i][0];
|
| | | angleClass.AngleEnd = (float)AngleList[i][1];
|
| | | AngleDic.Add(Type, angleClass);
|
| | | }
|
| | | }
|
| | | if (AngleDic.Count <= 0) |
| | | { |
| | | for (int i = 0; i < AngleList.Length; i++) |
| | | { |
| | | int Type = i + 1; |
| | | AngleClass angleClass = new AngleClass(); |
| | | angleClass.AngleStart = (float)AngleList[i][0]; |
| | | angleClass.AngleEnd = (float)AngleList[i][1]; |
| | | AngleDic.Add(Type, angleClass); |
| | | } |
| | | } |
| | | } |
| | | |
| | | public override void UnInit() |
| | |
| | | |
| | | public void OnBeforePlayerDataInitialize() |
| | | { |
| | | IsOk = false;
|
| | |
|
| | | IsOk = false; |
| | | |
| | | } |
| | | |
| | | public void OnPlayerLoginOk() |
| | |
| | | StrKey = "IsOpenFiaryJadeRedPoint" + PlayerDatas.Instance.baseData.PlayerID; |
| | | AngleSave = LocalSave.GetFloat(StrKey); |
| | | RedPoint(); |
| | | }
|
| | |
|
| | |
|
| | |
|
| | | } |
| | | |
| | | |
| | | |
| | | private void OnFuncStateChangeEvent(int obj) |
| | | { |
| | | if (obj == 144) |
| | | { |
| | | if (onStateUpate != null)
|
| | | {
|
| | | onStateUpate(16);
|
| | | if (onStateUpate != null) |
| | | { |
| | | onStateUpate(16); |
| | | } |
| | | RedPoint(); |
| | | } |
| | |
| | | { |
| | | if (AngleDic.ContainsKey(Lattice)) |
| | | { |
| | | float flo = UnityEngine.Random.Range(AngleDic[Lattice].AngleStart + 1f, AngleDic[Lattice].AngleEnd - 1f);
|
| | | float flo = UnityEngine.Random.Range(AngleDic[Lattice].AngleStart + 1f, AngleDic[Lattice].AngleEnd - 1f); |
| | | flo = (float)Math.Round((double)flo, 2); |
| | | if (flo > 360f) |
| | | { |
| | | flo = flo - 360f; |
| | | } |
| | | if (Math.Abs(flo- AngleSave)<=0.2)
|
| | | {
|
| | | if ((flo + 1f )> (AngleDic[Lattice].AngleStart + 1f) && (flo + 1f) < (AngleDic[Lattice].AngleEnd - 1f))
|
| | | {
|
| | | flo += 1;
|
| | | }
|
| | | else if ((flo - 1f) > (AngleDic[Lattice].AngleStart + 1f) && (flo - 1f) < (AngleDic[Lattice].AngleEnd - 1f))
|
| | | {
|
| | | flo -= 1;
|
| | | }
|
| | | if (Math.Abs(flo- AngleSave)<=0.2) |
| | | { |
| | | if ((flo + 1f )> (AngleDic[Lattice].AngleStart + 1f) && (flo + 1f) < (AngleDic[Lattice].AngleEnd - 1f)) |
| | | { |
| | | flo += 1; |
| | | } |
| | | else if ((flo - 1f) > (AngleDic[Lattice].AngleStart + 1f) && (flo - 1f) < (AngleDic[Lattice].AngleEnd - 1f)) |
| | | { |
| | | flo -= 1; |
| | | } |
| | | } |
| | | LocalSave.SetFloat(StrKey, flo); |
| | | AngleSave = LocalSave.GetFloat(StrKey); |
| | |
| | | WheelOfFortuneUpdate(AngleSave); |
| | | } |
| | | RedPoint(); |
| | | }
|
| | | } |
| | | } |
| | | public void StartTheDraw()//开始抽奖 |
| | | { |
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class VipModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class VipModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | {
|
| | | private Dictionary<int, VipGiftData> vipGiftDics = new Dictionary<int, VipGiftData>();
|
| | | private Dictionary<int, int> vipExpDic = null;
|
| | |
| | | using UnityEngine;
|
| | | using System.Collections.Generic;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SpeechTranslate : Singleton<SpeechTranslate>
|
| | | |
| | | {
|
| | | public const int AUDIO_TIMELIMIT = 8;//秒
|
| | |
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class AwardExchangeModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class AwardExchangeModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | public MailItemModel[] getItems { get; private set; }
|
| | |
|
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class ConsumeRebateModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize, IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ConsumeRebateModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize, IOpenServerActivity
|
| | | {
|
| | | public event Action consumeRebateUpdateEvent;
|
| | | public event Action<int> onStateUpate;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class LevelGiftModel : Model,IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class LevelGiftModel : Model,IBeforePlayerDataInitialize,IPlayerLoginOk
|
| | | {
|
| | | public override void Init()
|
| | | {
|
| | |
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class MultipleExpModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize, IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class MultipleExpModel : Model, IPlayerLoginOk, IBeforePlayerDataInitialize, IOpenServerActivity
|
| | | {
|
| | | private bool showTip = false;
|
| | | private bool todayRemind = false;
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class MultipleRealmPointModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | [XLua.LuaCallCSharp]
|
| | | public class MultipleRealmPointModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | {
|
| | | public Redpoint multipleRed = new Redpoint(MainRedDot.REDPOINT_OPENSERVER, 20908);
|
| | | public string LocalRecord_Key;
|
| | |
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.LuaCallCSharp]
|
| | | public class OperationTimeHepler : Singleton<OperationTimeHepler>
|
| | | {
|
| | | private Dictionary<Operation, OperationBase> operationDict = new Dictionary<Operation, OperationBase>();
|
| | |
| | | operationBase.startDate = ParseOperationDate(package.StartDate);
|
| | | operationBase.endDate = ParseOperationDate(package.EndtDate);
|
| | | operationBase.resetType = package.ResetType;
|
| | | ModelCenter.Instance.GetModel<BossRebornModel>().UpdateTaskBaseInfos(package.TaskInfo); |
| | | ModelCenter.Instance.GetModel<BossRebornModel>().UpdateTaskBaseInfos(package.TaskInfo);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class PrayerModel : Model
|
| | | [XLua.LuaCallCSharp]
|
| | | public class PrayerModel : Model
|
| | | {
|
| | | public event Action OnCoinPrayerEvent;
|
| | | public event Action OnExpPrayerEvent;
|
| | |
| | | using TableConfig;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class SignInModel : Model, IBeforePlayerDataInitialize
|
| | | [XLua.LuaCallCSharp]
|
| | | public class SignInModel : Model, IBeforePlayerDataInitialize
|
| | | {
|
| | | private void OnFuncStateChangeEvent(int func)
|
| | | {
|
| | |
| | | using UnityEngine; |
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class WelfareCenter : Singleton<WelfareCenter>
|
| | | [XLua.LuaCallCSharp] |
| | | public class WelfareCenter : Singleton<WelfareCenter> |
| | | |
| | | {
|
| | | SignInModel signInModel { get { return ModelCenter.Instance.GetModel<SignInModel>(); } }
|
| | |
|
| | |
| | | void OnSwitchAccount();
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ModelCenter : Singleton<ModelCenter>
|
| | | {
|
| | | bool inited = false;
|
| | |
|
| | | Dictionary<int, Model> models = new Dictionary<int, Model>();
|
| | | Dictionary<string, Model> nameToModels = new Dictionary<string, Model>();
|
| | |
|
| | | public ModelCenter()
|
| | | {
|
| | |
| | | return model;
|
| | | }
|
| | |
|
| | | public Model GetModel(string name)
|
| | | {
|
| | | if (nameToModels.ContainsKey(name))
|
| | | {
|
| | | return nameToModels[name];
|
| | | }
|
| | |
|
| | | return null;
|
| | | }
|
| | |
|
| | | T RegisterModel<T>() where T : Model, new()
|
| | | {
|
| | | T model = null;
|
| | | var token = typeof(T).MetadataToken;
|
| | | var name = typeof(T).Name;
|
| | |
|
| | | if (!models.ContainsKey(token))
|
| | | {
|
| | | model = new T();
|
| | | models[token] = model;
|
| | | nameToModels[name] = model;
|
| | | model.Init();
|
| | | }
|
| | |
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class WindowCenter : Singleton<WindowCenter>
|
| | | [XLua.LuaCallCSharp]
|
| | | public class WindowCenter : Singleton<WindowCenter>
|
| | |
|
| | | {
|
| | | public event Action<Window> windowBeforeOpenEvent;
|
| | | public event Action<Window> windowAfterOpenEvent;
|
| | |
| | | public void OpenFromLocal<T>() where T : Window
|
| | | {
|
| | | var windowName = typeof(T).Name;
|
| | | T win = null;
|
| | | if (TryGetWindow(out win))
|
| | | OpenFromLocal(windowName);
|
| | | }
|
| | |
|
| | | public void OpenFromLocal(string _name)
|
| | | {
|
| | | Window win = null;
|
| | | if (TryGetWindow(_name, out win))
|
| | | {
|
| | | if (win.windowState == Window.WindowState.Closed)
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DebugEx.LogFormat("{0} 窗口已经打开!", typeof(T));
|
| | | DebugEx.LogFormat("{0} 窗口已经打开!", _name);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | win = GetWindowInstance<T>(true);
|
| | | win = GetWindowInstance(_name, true);
|
| | | if (win != null)
|
| | | {
|
| | | win.functionOrder = 0;
|
| | |
| | |
|
| | | public T Open<T>(bool _forceSync = false, int _functionalOrder = 0) where T : Window
|
| | | {
|
| | | var name = typeof(T).Name;
|
| | | var window = Open(name, _forceSync, _functionalOrder);
|
| | | if (window != null)
|
| | | {
|
| | | return window as T;
|
| | | }
|
| | | else
|
| | | {
|
| | | return null;
|
| | | }
|
| | | }
|
| | |
|
| | | public Window Open(string _name, bool _forceSync = false, int _functionalOrder = 0)
|
| | | {
|
| | | if (VersionConfig.Get().isBanShu)
|
| | | {
|
| | | if (typeof(T) == typeof(VipRechargeWin))
|
| | | if (_name == "VipRechargeWin")
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("FuncNoOpen_VIP");
|
| | | return null;
|
| | | }
|
| | | }
|
| | |
|
| | | var windowName = typeof(T).Name;
|
| | | string childWindow = string.Empty;
|
| | | var childWindow = string.Empty;
|
| | | if (_forceSync || AssetSource.uiFromEditor)
|
| | | {
|
| | | return OpenSingleWindow<T>(_forceSync, _functionalOrder);
|
| | | return OpenSingleWindow(_name, _forceSync, _functionalOrder);
|
| | | }
|
| | | else
|
| | | {
|
| | | if (WindowConfig.Get().FindChildWindow(windowName, _functionalOrder, out childWindow))
|
| | | if (WindowConfig.Get().FindChildWindow(_name, _functionalOrder, out childWindow))
|
| | | {
|
| | | WindowTrim(childWindow);
|
| | | if (!windows.ContainsKey(childWindow))
|
| | |
| | | {
|
| | | if (_ok)
|
| | | {
|
| | | OpenSingleWindow<T>(_forceSync, _functionalOrder);
|
| | | OpenSingleWindow(_name, _forceSync, _functionalOrder);
|
| | | }
|
| | | });
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | return OpenSingleWindow<T>(_forceSync, _functionalOrder);
|
| | | return OpenSingleWindow(_name, _forceSync, _functionalOrder);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | return OpenSingleWindow<T>(_forceSync, _functionalOrder);
|
| | | return OpenSingleWindow(_name, _forceSync, _functionalOrder);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public T OpenWithoutAnimation<T>() where T : Window
|
| | | {
|
| | | T win = null;
|
| | | if (TryGetWindow(out win))
|
| | | var name = typeof(T).Name;
|
| | | var window = OpenWithoutAnimation(name);
|
| | | if (window != null)
|
| | | {
|
| | | return window as T;
|
| | | }
|
| | | else
|
| | | {
|
| | | return null;
|
| | | }
|
| | | }
|
| | |
|
| | | public Window OpenWithoutAnimation(string _name)
|
| | | {
|
| | | Window win = null;
|
| | | if (TryGetWindow(_name, out win))
|
| | | {
|
| | | if (win.windowState == Window.WindowState.Closed)
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DebugEx.LogFormat("{0} 窗口已经打开!", typeof(T));
|
| | | DebugEx.LogFormat("{0} 窗口已经打开!", _name);
|
| | | }
|
| | |
|
| | | return (T)win;
|
| | | return win;
|
| | | }
|
| | |
|
| | | win = GetWindowInstance<T>(false);
|
| | | win = GetWindowInstance(_name, false);
|
| | | if (win != null)
|
| | | {
|
| | | win.functionOrder = 0;
|
| | |
| | | win.Open();
|
| | | }
|
| | |
|
| | | return (T)win;
|
| | | return win;
|
| | | }
|
| | |
|
| | | public T Get<T>() where T : Window
|
| | |
| | | }
|
| | |
|
| | | return win;
|
| | | }
|
| | |
|
| | | public Window Close(string _name)
|
| | | {
|
| | | if (windows.ContainsKey(_name))
|
| | | {
|
| | | var window = windows[_name];
|
| | | if (window.windowState != Window.WindowState.Closed)
|
| | | {
|
| | | window.CloseImmediately();
|
| | | }
|
| | | else
|
| | | {
|
| | | DebugEx.LogFormat("{0} 窗口已经关闭!", _name);
|
| | | }
|
| | |
|
| | | return window;
|
| | | }
|
| | | else
|
| | | {
|
| | | asyncLoad.StopTask(_name);
|
| | | DebugEx.LogFormat("{0} 窗口无法获得!", _name);
|
| | | return null;
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | public T CloseImmediately<T>() where T : Window
|
| | |
| | | }
|
| | |
|
| | | asyncLoad.StopAllTasks();
|
| | |
|
| | | }
|
| | |
|
| | | public void CloseOthers(List<string> _windowNames, CloseAllIgnoreType _ignoreType)
|
| | |
| | |
|
| | | public void DestroyWin<T>() where T : Window
|
| | | {
|
| | | T win = null;
|
| | | if (TryGetWindow<T>(out win))
|
| | | DestroyWin(typeof(T).Name);
|
| | | }
|
| | |
|
| | | public void DestroyWin(string _name)
|
| | | {
|
| | | if (windows.ContainsKey(_name))
|
| | | {
|
| | | var win = windows[_name];
|
| | | win.CloseImmediately();
|
| | | GameObject.Destroy(win.gameObject);
|
| | | MonoBehaviour.Destroy(win);
|
| | |
|
| | | var name = typeof(T).Name;
|
| | | windows[name] = null;
|
| | | windows.Remove(typeof(T).Name);
|
| | | windows[_name] = null;
|
| | | windows.Remove(_name);
|
| | | }
|
| | | else
|
| | | {
|
| | | DebugEx.LogFormat("{0} 窗口无法获得!", typeof(T));
|
| | | DebugEx.LogFormat("{0} 窗口无法获得!", _name);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | public bool IsOpen(string _windowName)
|
| | | public bool IsOpen(string _name)
|
| | | {
|
| | | if (windows.ContainsKey(_windowName) && windows[_windowName] != null)
|
| | | if (windows.ContainsKey(_name) && windows[_name] != null)
|
| | | {
|
| | | var window = windows[_windowName];
|
| | | var window = windows[_name];
|
| | | return window.windowState == Window.WindowState.Opened || window.windowState == Window.WindowState.Opening;
|
| | | }
|
| | | else
|
| | |
| | |
|
| | | private T OpenSingleWindow<T>(bool _forceSync, int _functionalOrder) where T : Window
|
| | | {
|
| | | T win = null;
|
| | | if (TryGetWindow(out win))
|
| | | var name = typeof(T).Name;
|
| | | var window = OpenSingleWindow(name, _forceSync, _functionalOrder);
|
| | | if (window != null)
|
| | | {
|
| | | return window as T;
|
| | | }
|
| | | else
|
| | | {
|
| | | return null;
|
| | | }
|
| | | }
|
| | |
|
| | | private Window OpenSingleWindow(string _name, bool _forceSync, int _functionalOrder)
|
| | | {
|
| | | Window win = null;
|
| | | if (TryGetWindow(_name, out win))
|
| | | {
|
| | | if (win.windowState == Window.WindowState.Closed)
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DebugEx.LogFormat("{0} 窗口已经打开!", typeof(T));
|
| | | DebugEx.LogFormat("{0} 窗口已经打开!", _name);
|
| | | }
|
| | |
|
| | | return (T)win;
|
| | | return win;
|
| | | }
|
| | |
|
| | | if (_forceSync || AssetSource.uiFromEditor)
|
| | | {
|
| | | win = GetWindowInstance<T>(false);
|
| | | win = GetWindowInstance(_name, false);
|
| | | if (win != null)
|
| | | {
|
| | | win.functionOrder = _functionalOrder;
|
| | |
| | | win.Open();
|
| | | }
|
| | |
|
| | | return (T)win;
|
| | | return win;
|
| | | }
|
| | | else
|
| | | {
|
| | | GetWindowInstanceAsync<T>(
|
| | | GetWindowInstanceAsync(_name,
|
| | | (bool ok, UnityEngine.Object _object) =>
|
| | | {
|
| | | if (TryGetWindow(out win))
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | DebugEx.LogFormat("{0} 窗口已经打开!", typeof(T));
|
| | | DebugEx.Log(string.Format("{0} 窗口已经打开!", _name));
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | private bool TryGetWindow<T>(out T _win) where T : Window
|
| | | {
|
| | | var windowName = typeof(T).Name;
|
| | | WindowTrim(windowName);
|
| | |
|
| | | if (windows.ContainsKey(windowName))
|
| | | var name = typeof(T).Name;
|
| | | Window window = null;
|
| | | if (TryGetWindow(name, out window))
|
| | | {
|
| | | _win = (T)windows[windowName];
|
| | | _win = window as T;
|
| | | return true;
|
| | | }
|
| | | else
|
| | | {
|
| | | _win = null;
|
| | | return false;
|
| | | }
|
| | | }
|
| | |
|
| | | private bool TryGetWindow(string _name, out Window _win)
|
| | | {
|
| | | WindowTrim(_name);
|
| | | if (windows.ContainsKey(_name))
|
| | | {
|
| | | _win = windows[_name];
|
| | | return true;
|
| | | }
|
| | | else
|
| | |
| | | private T GetWindowInstance<T>(bool _fromLocal) where T : Window
|
| | | {
|
| | | var prefabName = typeof(T).Name;
|
| | |
|
| | | if (windows.ContainsKey(prefabName))
|
| | | var window = GetWindowInstance(prefabName, _fromLocal);
|
| | | if (window != null)
|
| | | {
|
| | | return windows[prefabName] as T;
|
| | | return window as T;
|
| | | }
|
| | | else
|
| | | {
|
| | | var prefab = _fromLocal ? BuiltInLoader.LoadPrefab(prefabName) : UILoader.LoadWindow(prefabName);
|
| | | return null;
|
| | | }
|
| | | }
|
| | |
|
| | | private Window GetWindowInstance(string _name, bool _fromLocal)
|
| | | {
|
| | | if (windows.ContainsKey(_name))
|
| | | {
|
| | | return windows[_name];
|
| | | }
|
| | | else
|
| | | {
|
| | | var prefab = _fromLocal ? BuiltInLoader.LoadPrefab(_name) : UILoader.LoadWindow(_name);
|
| | | prefab.SetActive(false);
|
| | | var instance = GameObject.Instantiate(prefab);
|
| | | instance.name = _name;
|
| | | if (AssetSource.uiFromEditor)
|
| | | {
|
| | | prefab.SetActive(true);
|
| | |
| | |
|
| | | if (_fromLocal)
|
| | | {
|
| | | BuiltInLoader.UnLoadPrefab(prefabName);
|
| | | BuiltInLoader.UnLoadPrefab(_name);
|
| | | }
|
| | | else
|
| | | {
|
| | | UILoader.UnLoadWindowAsset(prefabName);
|
| | | UILoader.UnLoadWindowAsset(_name);
|
| | | }
|
| | |
|
| | | instance.name = prefabName;
|
| | | var window = instance.GetComponent<T>();
|
| | | var window = instance.GetComponent<Window>();
|
| | | if (window != null)
|
| | | {
|
| | | var windowName = typeof(T).Name;
|
| | | windows[windowName] = window;
|
| | | windows[_name] = window;
|
| | | }
|
| | | else
|
| | | {
|
| | | DebugEx.LogFormat("无法获得 {0} 的资源!", prefabName);
|
| | | DebugEx.LogFormat("无法获得 {0} 的资源!", _name);
|
| | | }
|
| | |
|
| | | return window;
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | private void GetWindowInstanceAsync<T>(Action<bool, UnityEngine.Object> _callBack) where T : Window
|
| | |
| | | GetWindowInstanceAsync(typeof(T).Name, _callBack);
|
| | | }
|
| | |
|
| | | private void GetWindowInstanceAsync(string _windowName, Action<bool, UnityEngine.Object> _callBack)
|
| | | private void GetWindowInstanceAsync(string _name, Action<bool, UnityEngine.Object> _callBack)
|
| | | {
|
| | | Action<bool, UnityEngine.Object> addAction = (bool _ok, UnityEngine.Object _object) =>
|
| | | {
|
| | | var prefabName = _windowName;
|
| | | var prefabName = _name;
|
| | | Window window = null;
|
| | | if (!windows.ContainsKey(_windowName))
|
| | | if (!windows.ContainsKey(_name))
|
| | | {
|
| | | var prefab = _object as GameObject;
|
| | | prefab.SetActive(false);
|
| | |
| | | }
|
| | |
|
| | | UILoader.UnLoadWindowAsset(prefabName);
|
| | | instance.name = _windowName;
|
| | | window = (Window)instance.GetComponent(_windowName);
|
| | | instance.name = _name;
|
| | | window = (Window)instance.GetComponent(_name);
|
| | | if (window != null)
|
| | | {
|
| | | windows[_windowName] = (Window)window;
|
| | | windows[_name] = (Window)window;
|
| | | }
|
| | | else
|
| | | {
|
| | | Debug.LogFormat("无法获得 {0} 的资源!", _windowName);
|
| | | Debug.LogFormat("无法获得 {0} 的资源!", _name);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | };
|
| | |
|
| | | asyncLoad.PushTask(new WindowAsyncLoad.Task(_windowName, addAction));
|
| | | asyncLoad.PushTask(new WindowAsyncLoad.Task(_name, addAction));
|
| | | }
|
| | |
|
| | | public enum WindowStage
|
| | |
| | | using TableConfig;
|
| | | using Snxxz.UI;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class WindowJumpMgr : Singleton<WindowJumpMgr>
|
| | | {
|
| | | private FuncConfigConfig funcOpenBagItem = null;
|
| | |
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class MapModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk, IMapInitOk
|
| | | [XLua.LuaCallCSharp]
|
| | | public class MapModel : Model, IBeforePlayerDataInitialize, IAfterPlayerDataInitialize, IPlayerLoginOk, IMapInitOk
|
| | | {
|
| | | Dictionary<int, WorldMapArea> worldMapAreas = new Dictionary<int, WorldMapArea>();
|
| | | Dictionary<int, bool> worldMapUnLockStates = new Dictionary<int, bool>();
|
| | |
| | | using UnityEngine; |
| | | using TableConfig; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class WorldMapSkip : SingletonMonobehaviour<WorldMapSkip> |
| | | |
| | | { |
| | | |
| | | Action onSceneLoadCompleted; |
| | |
| | | namespace Snxxz.UI |
| | | { |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class FunctionButton : Button |
| | | { |
| | | [SerializeField] int m_Order = 0; |
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class ItemBehaviour : MonoBehaviour
|
| | | {
|
| | | ItemTipsModel itemTipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | |
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class TimeDownMgr : SingletonMonobehaviour<TimeDownMgr> {
|
| | | |
| | |
|
| | | public enum CoolTimeType
|
| | | {
|
| | |
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class UI3DModelExhibition : MonoBehaviour
|
| | | {
|
| | | [SerializeField] Transform m_PlayerShowPoint;
|
| | |
| | | DontDestroyOnLoad(gameObject);
|
| | | }
|
| | |
|
| | | public string GetName()
|
| | | {
|
| | | return this.name;
|
| | | }
|
| | |
|
| | | public void ShowLoginPlayer(RawImage _rawImage, int _job)
|
| | | {
|
| | | var clothesItemId = 0;
|
| | |
| | | {
|
| | | if (config == null)
|
| | | {
|
| | | config = Resources.Load<WindowConfig>("ScriptableObject/Config/WindowConfig");
|
| | | config = BuiltInLoader.LoadScriptableObject<WindowConfig>("WindowConfig");
|
| | | for (int i = 0; i < config.windows.Length; i++)
|
| | | {
|
| | | var table = config.windows[i];
|
| | |
| | | using UnityEngine.EventSystems; |
| | | using System; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class ButtonEx : Button |
| | | { |
| | | |
| | |
| | | using Snxxz.UI;
|
| | | using UnityEngine;
|
| | | [XLua.LuaCallCSharp]
|
| | | public class EffectMgr : SingletonMonobehaviour<EffectMgr>
|
| | | |
| | | {
|
| | | public UIEffectBehaviour GetUIEffect(int id, bool _destroy = false)
|
| | | {
|
| | |
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class TimeMgr : SingletonMonobehaviour<TimeMgr>
|
| | | |
| | | {
|
| | | private Dictionary<Component, TimeItem> timeItems = new Dictionary<Component, TimeItem>();
|
| | | private List<TimeItem> timeItemList = new List<TimeItem>();
|
| | |
| | | #if UNITY_EDITOR
|
| | | using UnityEditor;
|
| | | #endif
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class UIEffect : MonoBehaviour
|
| | | {
|
| | | public int renderQueue = 3000;
|
| | |
| | | return RetrospectWindow(parent.parent);
|
| | | }
|
| | | }
|
| | | #if UNITY_EDITOR
|
| | |
|
| | | private const string EDITOR_EFFECT_PATH = "Assets/ResourcesOut/Effect/UI/";
|
| | | private const string EFFECT_EXTENAL = ".prefab";
|
| | | public void Preview(string _name)
|
| | | {
|
| | | #if UNITY_EDITOR
|
| | | if (target != null)
|
| | | {
|
| | | DestroyImmediate(target);
|
| | |
| | | target.transform.localEulerAngles = Vector3.zero;
|
| | | target.transform.localScale = Vector3.one;
|
| | | Selection.activeGameObject = target.gameObject;
|
| | | }
|
| | | #endif
|
| | | }
|
| | |
|
| | | }
|
| | | #if UNITY_EDITOR
|
| | | [CustomEditor(typeof(UIEffect))]
|
| | |
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | using UnityEngine.Events;
|
| | | using System;
|
| | | using TableConfig;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static class ComponentExtersion
|
| | | {
|
| | |
|
| | | public static Component FindComponent(this Component _component, string _type, string _path)
|
| | | {
|
| | | try
|
| | | {
|
| | | if (_component == null)
|
| | | {
|
| | | return null;
|
| | | }
|
| | |
|
| | | var transform = _component.transform.Find(_path);
|
| | | if (transform == null)
|
| | | {
|
| | | return null;
|
| | | }
|
| | |
|
| | | return transform.GetComponent(_type);
|
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | return null;
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | public static T AddMissingComponent<T>(this Component _compoent) where T : Component
|
| | | {
|
| | |
| | | return component;
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static void AddListener(this Button _button, UnityAction _action)
|
| | | {
|
| | | if (_button == null)
|
| | |
| | | _button.onClick.AddListener(_action);
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static void RemoveAllListeners(this Button _button)
|
| | | {
|
| | | if (_button == null)
|
| | |
| | | _button.onClick.RemoveAllListeners();
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static void SetListener(this Button button, UnityAction action)
|
| | | {
|
| | | if (button == null)
|
| | |
| | | _toggle.onValueChanged.AddListener(_action);
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static void SetListener(this Toggle toggle, UnityAction<bool> action)
|
| | | {
|
| | | if (toggle == null)
|
| | |
| | | _toggle.onValueChanged.RemoveAllListeners();
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static void AddListener(this Slider _slider, UnityAction<float> _action)
|
| | | {
|
| | | if (_slider == null)
|
| | |
| | | _slider.onValueChanged.AddListener(_action);
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static void SetListener(this Slider slider, UnityAction<float> action)
|
| | | {
|
| | | if (slider == null)
|
| | |
| | | _slider.onValueChanged.RemoveAllListeners();
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static void AddListener(this InputField _inputField, UnityAction<string> _action)
|
| | | {
|
| | | if (_inputField == null)
|
| | |
| | | inputField.onValueChanged.AddListener(action);
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static void RemoveAllListeners(this InputField _inputField)
|
| | | {
|
| | | if (_inputField == null)
|
| | |
| | | _inputField.onValueChanged.RemoveAllListeners();
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static void SetEnable(this Button _btn, Text _btnTxt, bool _enable, EnableButtonConfig.EnableButtonType _type =
|
| | | EnableButtonConfig.EnableButtonType.Default)
|
| | | {
|
| | | EnableButtonConfig.SetEnable(_btn, _btnTxt, _enable, _type);
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static void SetInteractable(this Button _btn, Text _btnText, bool _interactable)
|
| | | {
|
| | | if (_btn != null)
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static void SetSprite(this Image _image, string _id)
|
| | | {
|
| | | if (_image == null)
|
| | |
| | | _image.overrideSprite = sprite;
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static void SetSprite(this TextImage _textImage, string _id)
|
| | | {
|
| | | if (_textImage == null)
|
| | |
| | | using UnityEngine.iOS; |
| | | #endif |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class DeviceUtility
|
| | | { |
| | | |
| | |
| | | using System.Security.Cryptography; |
| | | using System.Text; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public class FileExtersion
|
| | | {
|
| | | public readonly static string lineSplit = "\r\n"; //行间隔体 |
| | |
| | | throw new Exception("GetMD5HashFromFile() fail,error:" + ex.Message);
|
| | | }
|
| | | }
|
| | |
|
| | | public static LuaConfigData ReadFileAllLines(string path)
|
| | | {
|
| | | var lines = File.ReadAllLines(path);
|
| | | return new LuaConfigData() { length = lines.Length, lines = lines };
|
| | | }
|
| | |
|
| | | public struct LuaConfigData
|
| | | {
|
| | | public int length;
|
| | | public string[] lines;
|
| | | }
|
| | |
|
| | | } |
| | |
| | | using Snxxz.UI;
|
| | | using LitJson;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class GMCommand : SingletonMonobehaviour<GMCommand>
|
| | | |
| | | {
|
| | |
|
| | | public void Begin()
|
| | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | public class GlobalTimeEvent : SingletonMonobehaviour<GlobalTimeEvent>
|
| | | [XLua.LuaCallCSharp] |
| | | public class GlobalTimeEvent : SingletonMonobehaviour<GlobalTimeEvent> |
| | | |
| | | { |
| | | public event Action secondEvent; |
| | | public event Action minuteEvent; |
| | |
| | | using System.Text.RegularExpressions;
|
| | | using UnityEngine; |
| | | |
| | | [XLua.LuaCallCSharp]
|
| | | public class LanguageVerify : Singleton<LanguageVerify>
|
| | | |
| | | { |
| | | const string Sercret = "c345a165b566d1c421afd8a748373d7f"; |
| | | bool requireVerify
|
| | |
| | | using System.Collections; |
| | | using System; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public static class LayerUtility |
| | | { |
| | | public static readonly int DefaultLayer = LayerMask.NameToLayer("Default"); |
| | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public static class MaterialUtility |
| | | { |
| | | |
| | |
| | | using Snxxz.UI;
|
| | | using LitJson;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class OperationLogCollect : Singleton<OperationLogCollect>
|
| | | |
| | | {
|
| | | const string url = "http://pub.game.2460web.com:11000/event_receiver?";
|
| | |
|
| | |
| | | using System.IO; |
| | | using System.Threading; |
| | | |
| | | public class RunTimeExceptionUtility : Singleton<RunTimeExceptionUtility>
|
| | | [XLua.LuaCallCSharp] |
| | | public class RunTimeExceptionUtility : Singleton<RunTimeExceptionUtility> |
| | | |
| | | {
|
| | |
|
| | | List<string> logWriteToFileTemp = new List<string>();
|
| | |
| | | using System.Text;
|
| | | using UnityEngine;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static class TimeUtility
|
| | | {
|
| | | private static DateTime s_ServerTime = DateTime.Now;
|
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public static class TransformExtension |
| | | { |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public static void SetParentEx(this Transform transform, Transform parent, Vector3 localPosition, Quaternion rotation, Vector3 scale) |
| | | { |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public static void SetParentEx(this Transform transform, Transform parent, Vector3 localPosition, Vector3 eulerAngles, Vector3 scale) |
| | | { |
| | | if (transform != null && parent != null) |
| | |
| | | transform.localScale = scale; |
| | | } |
| | | } |
| | | |
| | | |
| | | public static T[] GetComponentsInChildren<T>(this Transform transform, bool includeInactive, bool includeSelf) where T : Component |
| | | { |
| | |
| | | |
| | | } |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public static Transform GetChildTransformDeeply(this Transform transform, string childName, bool includeSelf = false) |
| | | { |
| | | |
| | |
| | | /// </summary> |
| | | /// <param name="_child"></param> |
| | | /// <param name="_parent"></param> |
| | | [XLua.LuaCallCSharp] |
| | | public static void MatchWhith(this RectTransform _child, RectTransform _parent) |
| | | { |
| | | |
| | |
| | | _child.localScale = Vector3.one; |
| | | } |
| | | |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public static bool ContainWorldPosition(this RectTransform _rectTransform, Vector3 _worldPosition) |
| | | { |
| | | var worldCorners = new Vector3[4]; |
| | |
| | | return false; |
| | | } |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public static bool RectTransformContain(this RectTransform _rectTransform, RectTransform _target) |
| | | { |
| | | var targetWorldCorners = new Vector3[4]; |
| | |
| | | return false; |
| | | } |
| | | |
| | | [XLua.LuaCallCSharp] |
| | | public static void SetPosition(this Transform transform, float x, float y, float z, bool isLocal = false) |
| | | { |
| | | if (transform == null) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | if (isLocal) |
| | | { |
| | | transform.localPosition = new Vector3(x, y, z); |
| | | } |
| | | else |
| | | { |
| | | transform.position = new Vector3(x, y, z); |
| | | } |
| | | } |
| | | |
| | | public static Transform GetRoot(this Transform transform) |
| | | { |
| | |
| | | /// <summary>
|
| | | /// UI辅助类
|
| | | /// </summary>
|
| | | [XLua.LuaCallCSharp]
|
| | | public static class UIHelper
|
| | | {
|
| | | #region UI通用
|
| | |
| | | public static readonly Color s_NavyYellow = new Color32(255, 239, 71, 255);
|
| | | public static readonly Color s_LightGreen = new Color32(141, 220, 17, 255);
|
| | | public static readonly Color s_LightYellow = new Color32(255, 244, 205, 255); //fff4cd
|
| | |
|
| | | public static Color GetUIColor(int itemColor, bool bright = false)
|
| | | {
|
| | | switch (itemColor)
|
| | |
| | | }
|
| | | return GetUIColor(TextColType.White, bright);
|
| | | }
|
| | |
|
| | | public static Color GetUIColor(TextColType type, bool bright = false)
|
| | | {
|
| | | switch (type)
|
| | |
| | | using UnityEngine.EventSystems;
|
| | | using Snxxz.UI;
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public static class UIUtility
|
| | | {
|
| | |
|