| | |
| | | //--------------------------------------------------------
|
| | | // [Author]: Fish
|
| | | // [ Date ]: Thursday, February 14, 2019
|
| | | // [ Date ]: Thursday, April 25, 2019
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | |
| | |
|
| | | public readonly int id;
|
| | | public readonly int npcId;
|
| | | public readonly string icon;
|
| | | public readonly string name;
|
| | | public readonly string content;
|
| | | public readonly int nextID;
|
| | |
| | |
|
| | | int.TryParse(tables[1],out npcId);
|
| | |
|
| | | icon = tables[2];
|
| | | name = tables[2];
|
| | |
|
| | | name = tables[3];
|
| | | content = tables[3];
|
| | |
|
| | | content = tables[4];
|
| | | int.TryParse(tables[4],out nextID); |
| | |
|
| | | int.TryParse(tables[5],out nextID); |
| | |
|
| | | int.TryParse(tables[6],out TalkID); |
| | | int.TryParse(tables[5],out TalkID); |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | |
| | | fileFormatVersion: 2 |
| | | guid: f4a9be636b5609449b7c9574940bac5a |
| | | timeCreated: 1550121120 |
| | | timeCreated: 1556180754 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(DialogConfig); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 0); |
| | | |
| | | |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "id", _g_get_id); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "npcId", _g_get_npcId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "icon", _g_get_icon); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "content", _g_get_content); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "nextID", _g_get_nextID); |
| | |
| | | |
| | | DialogConfig gen_to_be_invoked = (DialogConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.npcId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_icon(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | DialogConfig gen_to_be_invoked = (DialogConfig)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushstring(L, gen_to_be_invoked.icon); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 52914f2d23956fb4fb8ce7233e23ef95 |
| | | timeCreated: 1550122889 |
| | | timeCreated: 1556180992 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |