Example #1
0
        public void Register(Type type, string fullPath)
        {
            if (_cache.IsExist(type))
            {
                return;
            }

            if (ReflectionHelper.HasAttribute <ScriptIgnoreAttribute>(type))
            {
                return;
            }

            var handler = new TypeHandler(_luaState);

            handler.Initilaze(new object[] { type, fullPath });
            handler.Reg2Env();
            _cache.Add(type, handler);
        }