public void AddPlugin(ICozyLuaPlugin plugin) { var methods = plugin.GetEnumerator(); while (methods.MoveNext()) { mLua.RegisterFunction(methods.Current.Key, methods.Current.Value); } }