Exemplo n.º 1
0
        /// <summary>
        /// 注册wrap的函数
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="callerWrap"></param>
        public void RegWrapInterface <T>(T callerWrap)
        {
            string typeName = typeof(T).FullName;
            //Debug.Log(!m_entry.ContainsKey(typeName));

            var entry = new DEventEntryData();

            entry.m_interfaceWrap = callerWrap;
            m_entry.Add(typeName, entry);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 注册wrap的函数
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="callerWrap"></param>
        public void RegWrapInterface <T>(T callerWrap, object listInst)
        {
            string typeName = typeof(T).FullName;

            DLogger.Assert(!m_entry.ContainsKey(typeName));

            var entry = new DEventEntryData();

            entry.m_interfaceWrap   = callerWrap;
            entry.m_listIntefaceImp = listInst;
            m_entry.Add(typeName, entry);
        }