static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    DCET.Model.EventSystem gen_ret = new DCET.Model.EventSystem();
                    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.EventSystem constructor!"));
        }
        static int _m_LateUpdate(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.EventSystem gen_to_be_invoked = (DCET.Model.EventSystem)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.LateUpdate(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_ToString(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.EventSystem gen_to_be_invoked = (DCET.Model.EventSystem)translator.FastGetCSObj(L, 1);



                {
                    string gen_ret = gen_to_be_invoked.ToString(  );
                    LuaAPI.lua_pushstring(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_RegisterSystem(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.EventSystem gen_to_be_invoked = (DCET.Model.EventSystem)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && translator.Assignable <DCET.Model.Entity>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    DCET.Model.Entity _component = (DCET.Model.Entity)translator.GetObject(L, 2, typeof(DCET.Model.Entity));
                    bool _isRegister             = LuaAPI.lua_toboolean(L, 3);

                    gen_to_be_invoked.RegisterSystem(_component, _isRegister);



                    return(0);
                }
                if (gen_param_count == 2 && translator.Assignable <DCET.Model.Entity>(L, 2))
                {
                    DCET.Model.Entity _component = (DCET.Model.Entity)translator.GetObject(L, 2, typeof(DCET.Model.Entity));

                    gen_to_be_invoked.RegisterSystem(_component);



                    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.EventSystem.RegisterSystem!"));
        }
        static int _m_Add(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.EventSystem gen_to_be_invoked = (DCET.Model.EventSystem)translator.FastGetCSObj(L, 1);



                {
                    System.Reflection.Assembly _assembly = (System.Reflection.Assembly)translator.GetObject(L, 2, typeof(System.Reflection.Assembly));

                    gen_to_be_invoked.Add(_assembly);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_Run(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.EventSystem gen_to_be_invoked = (DCET.Model.EventSystem)translator.FastGetCSObj(L, 1);



                {
                    string _type = LuaAPI.lua_tostring(L, 2);

                    gen_to_be_invoked.Run(_type);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_Destroy(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.EventSystem gen_to_be_invoked = (DCET.Model.EventSystem)translator.FastGetCSObj(L, 1);



                {
                    DCET.Model.Entity _component = (DCET.Model.Entity)translator.GetObject(L, 2, typeof(DCET.Model.Entity));

                    gen_to_be_invoked.Destroy(_component);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_IsRegister(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.EventSystem gen_to_be_invoked = (DCET.Model.EventSystem)translator.FastGetCSObj(L, 1);



                {
                    long _instanceId = LuaAPI.lua_toint64(L, 2);

                    bool gen_ret = gen_to_be_invoked.IsRegister(_instanceId);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
        static int _m_GetTypes(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.EventSystem gen_to_be_invoked = (DCET.Model.EventSystem)translator.FastGetCSObj(L, 1);



                {
                    System.Type _systemAttributeType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));

                    System.Collections.Generic.HashSet <System.Type> gen_ret = gen_to_be_invoked.GetTypes(_systemAttributeType);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }