| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: Fish |
| | | // [ Date ]: Monday, March 11, 2019 |
| | | // [ Date ]: Thursday, March 14, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | |
| | | public readonly string Img;
|
| | | public readonly int Quality;
|
| | | public readonly int FightPower;
|
| | | public readonly int specialProperty;
|
| | | public readonly string equipNameIcon;
|
| | | public readonly int effectId;
|
| | | public readonly int requireIconEffect; |
| | | |
| | |
| | |
|
| | | int.TryParse(tables[10],out FightPower);
|
| | |
|
| | | int.TryParse(tables[11],out specialProperty); |
| | | equipNameIcon = tables[11];
|
| | |
|
| | | int.TryParse(tables[12],out effectId);
|
| | |
|
| | |
| | | fileFormatVersion: 2 |
| | | guid: d49ca04ff4a91bc4fb645c417f9ef0b3 |
| | | timeCreated: 1552295065 |
| | | timeCreated: 1552531605 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Img", _g_get_Img); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "Quality", _g_get_Quality); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "FightPower", _g_get_FightPower); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "specialProperty", _g_get_specialProperty); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "effectId", _g_get_effectId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "requireIconEffect", _g_get_requireIconEffect); |
| | | |
| | |
| | | |
| | | RealmConfig gen_to_be_invoked = (RealmConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.FightPower); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_specialProperty(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | RealmConfig gen_to_be_invoked = (RealmConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.specialProperty); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | if (model.IsUnlockEquipRealm(realmLevel, out level))
|
| | | {
|
| | | m_ContainerUnlockEquip.gameObject.SetActive(true);
|
| | | var config = RealmConfig.Get(realmLevel);
|
| | | m_UnlockEquip.SetSprite(config.equipNameIcon);
|
| | | }
|
| | | else
|
| | | {
|