Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | StatusMgr.Instance.Init();
|
| | | GAMgr.Instance.Init();
|
| | | FlyObjectManager.Instance.Initialize();
|
| | | SFXPlayUtility.Instance.Initialize();
|
| | | AnyCountDownUtility.Instance.Initialize();
|
| | | MapTransferUtility.Instance.Initialize();
|
| | | NewBieCenter.Instance.Init();
|
| | |
|
| | |
| | | public class SFXPlayUtility : SingletonMonobehaviour<SFXPlayUtility>
|
| | | {
|
| | |
|
| | | private Dictionary<int, ObjectPool<SFXController>> m_PoolDict;
|
| | |
|
| | | public void Initialize()
|
| | | {
|
| | | m_PoolDict = new Dictionary<int, ObjectPool<SFXController>>();
|
| | | }
|
| | | private Dictionary<int, ObjectPool<SFXController>> m_PoolDict=new Dictionary<int, ObjectPool<SFXController>>();
|
| | |
|
| | | public SFXController PlayEffectAsync(int id, Transform parent, float scale = 1)
|
| | | {
|
| | |
| | | [XLua.LuaCallCSharp] |
| | | public class AnyCountDownUtility : SingletonMonobehaviour<AnyCountDownUtility> |
| | | { |
| | | private Stack<CDItem> m_FreeStack; |
| | | public List<CDItem> m_ActiveList; |
| | | public List<CDItem> m_CacheRemoveList; |
| | | |
| | | public void Initialize() |
| | | { |
| | | m_FreeStack = new Stack<CDItem>(); |
| | | m_ActiveList = new List<CDItem>(); |
| | | m_CacheRemoveList = new List<CDItem>(); |
| | | } |
| | | private Stack<CDItem> m_FreeStack = new Stack<CDItem>(); |
| | | public List<CDItem> m_ActiveList = new List<CDItem>(); |
| | | public List<CDItem> m_CacheRemoveList = new List<CDItem>(); |
| | | |
| | | public void Create(float cd, GActor target, UnityAction callback) |
| | | { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(AnyCountDownUtility); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 2, 2, 2); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 2); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Create", _m_Create); |
| | | |
| | | |
| | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Initialize(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | AnyCountDownUtility gen_to_be_invoked = (AnyCountDownUtility)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.Initialize( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Create(RealStatePtr L) |
| | |
| | | fileFormatVersion: 2 |
| | | guid: a5f402668aaaf4c4caf03164f94504d7 |
| | | timeCreated: 1550120584 |
| | | timeCreated: 1551681032 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(SFXPlayUtility); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 9, 0, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 8, 0, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayEffectAsync", _m_PlayEffectAsync); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayBattleEffect", _m_PlayBattleEffect); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); |
| | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Initialize(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | SFXPlayUtility gen_to_be_invoked = (SFXPlayUtility)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.Initialize( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_PlayEffectAsync(RealStatePtr L) |
| | |
| | | fileFormatVersion: 2 |
| | | guid: d46860da64feb064193f6a4aee052f55 |
| | | timeCreated: 1550120587 |
| | | timeCreated: 1551681032 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | fileFormatVersion: 2 |
| | | guid: ff2dde43802d1d14795873c131842a1e |
| | | timeCreated: 1551323946 |
| | | timeCreated: 1551681032 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | && CreateRoleConfig.inited |
| | | && JobSetupConfig.inited |
| | | && ModelResConfig.inited |
| | | && GodWeaponConfig.inited; |
| | | && GodWeaponConfig.inited |
| | | && GodWeaponEffectConfig.inited; |
| | | } |
| | | } |
| | | |
| | |
| | | priorTasks.Add(new ConfigInitTask("CreateRoleConfig", () => { CreateRoleConfig.Init(); }, () => { return CreateRoleConfig.inited; })); |
| | | priorTasks.Add(new ConfigInitTask("JobSetupConfig", () => { JobSetupConfig.Init(); }, () => { return JobSetupConfig.inited; })); |
| | | priorTasks.Add(new ConfigInitTask("ModelResConfig", () => { ModelResConfig.Init(); }, () => { return ModelResConfig.inited; }));
|
| | | priorTasks.Add(new ConfigInitTask("GodWeaponConfig", () => { GodWeaponConfig.Init(); }, () => { return GodWeaponConfig.inited; })); |
| | | priorTasks.Add(new ConfigInitTask("GodWeaponConfig", () => { GodWeaponConfig.Init(); }, () => { return GodWeaponConfig.inited; }));
|
| | | priorTasks.Add(new ConfigInitTask("GodWeaponEffectConfig", () => { GodWeaponEffectConfig.Init(); }, () => { return GodWeaponEffectConfig.inited; })); |
| | | priorTasks.Add(new ConfigInitTask("TASKINFOConfig", () => { TASKINFOConfig.Init(); }, () => { return TASKINFOConfig.inited; })); |
| | | priorTasks.Add(new ConfigInitTask("mapnpcConfig", () => { mapnpcConfig.Init(); }, () => { return mapnpcConfig.inited; })); |
| | | priorTasks.Add(new ConfigInitTask("SkillConfig", () => { SkillConfig.Init(); }, () => { return SkillConfig.inited; })); |
| | |
| | | normalTasks.Add(new ConfigInitTask("GatherSoulPropertyConfig", () => { GatherSoulPropertyConfig.Init(); }, () => { return GatherSoulPropertyConfig.inited; })); |
| | | normalTasks.Add(new ConfigInitTask("GetItemWaysConfig", () => { GetItemWaysConfig.Init(); }, () => { return GetItemWaysConfig.inited; })); |
| | | normalTasks.Add(new ConfigInitTask("GmCmdConfig", () => { GmCmdConfig.Init(); }, () => { return GmCmdConfig.inited; })); |
| | | normalTasks.Add(new ConfigInitTask("GodWeaponEffectConfig", () => { GodWeaponEffectConfig.Init(); }, () => { return GodWeaponEffectConfig.inited; })); |
| | | normalTasks.Add(new ConfigInitTask("GuardConfig", () => { GuardConfig.Init(); }, () => { return GuardConfig.inited; })); |
| | | normalTasks.Add(new ConfigInitTask("GuideConfig", () => { GuideConfig.Init(); }, () => { return GuideConfig.inited; })); |
| | | normalTasks.Add(new ConfigInitTask("HolidayHomingConfig", () => { HolidayHomingConfig.Init(); }, () => { return HolidayHomingConfig.inited; })); |