public ScriptUserdata GetEnum(Type type)
 {
     if (m_Enums.ContainsKey(type))
         return m_Enums[type];
     DefaultScriptUserdataEnum ret = new DefaultScriptUserdataEnum(m_Script, type);
     m_Enums.Add(type, ret);
     return ret;
 }
Ejemplo n.º 2
0
        private Dictionary <Type, UserdataType> m_Types = new Dictionary <Type, UserdataType>();                                                //所有的类集合
        public DefaultScriptUserdataEnum GetEnum(Type type)
        {
            if (m_Enums.ContainsKey(type))
            {
                return(m_Enums[type]);
            }
            DefaultScriptUserdataEnum ret = new DefaultScriptUserdataEnum(m_Script, type);

            m_Enums.Add(type, ret);
            return(ret);
        }