static int _s_set_NumericDic(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.NumericComponent gen_to_be_invoked = (DCET.Model.NumericComponent)translator.FastGetCSObj(L, 1); gen_to_be_invoked.NumericDic = (System.Collections.Generic.Dictionary <int, int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary <int, int>)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_NumericDic(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.NumericComponent gen_to_be_invoked = (DCET.Model.NumericComponent)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.NumericDic); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { DCET.Model.NumericComponent gen_ret = new DCET.Model.NumericComponent(); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to DCET.Model.NumericComponent constructor!")); }
public static int __NewIndexer(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (translator.Assignable <DCET.Model.NumericComponent>(L, 1) && translator.Assignable <DCET.Model.NumericType>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { DCET.Model.NumericComponent gen_to_be_invoked = (DCET.Model.NumericComponent)translator.FastGetCSObj(L, 1); DCET.Model.NumericType key; translator.Get(L, 2, out key); gen_to_be_invoked[key] = LuaAPI.xlua_tointeger(L, 3); LuaAPI.lua_pushboolean(L, true); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } LuaAPI.lua_pushboolean(L, false); return(1); }
public static int __CSIndexer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (translator.Assignable <DCET.Model.NumericComponent>(L, 1) && translator.Assignable <DCET.Model.NumericType>(L, 2)) { DCET.Model.NumericComponent gen_to_be_invoked = (DCET.Model.NumericComponent)translator.FastGetCSObj(L, 1); DCET.Model.NumericType index; translator.Get(L, 2, out index); LuaAPI.lua_pushboolean(L, true); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked[index]); return(2); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } LuaAPI.lua_pushboolean(L, false); return(1); }
static int _m_Awake(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.NumericComponent gen_to_be_invoked = (DCET.Model.NumericComponent)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Awake( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Set(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.NumericComponent gen_to_be_invoked = (DCET.Model.NumericComponent)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && translator.Assignable <DCET.Model.NumericType>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { DCET.Model.NumericType _nt; translator.Get(L, 2, out _nt); float _value = (float)LuaAPI.lua_tonumber(L, 3); gen_to_be_invoked.Set(_nt, _value); return(0); } if (gen_param_count == 3 && translator.Assignable <DCET.Model.NumericType>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { DCET.Model.NumericType _nt; translator.Get(L, 2, out _nt); int _value = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.Set(_nt, _value); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to DCET.Model.NumericComponent.Set!")); }
static int _m_GetAsInt(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); DCET.Model.NumericComponent gen_to_be_invoked = (DCET.Model.NumericComponent)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _numericType = LuaAPI.xlua_tointeger(L, 2); int gen_ret = gen_to_be_invoked.GetAsInt(_numericType); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } if (gen_param_count == 2 && translator.Assignable <DCET.Model.NumericType>(L, 2)) { DCET.Model.NumericType _numericType; translator.Get(L, 2, out _numericType); int gen_ret = gen_to_be_invoked.GetAsInt(_numericType); LuaAPI.xlua_pushinteger(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to DCET.Model.NumericComponent.GetAsInt!")); }