Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        internal void OnUpdatedName(string strName, BaseGameObject creature)
        {
            EventHandler <UpdatedNameEventArgs> tempAfterEventArgs = m_EventUpdatedName;

            if (tempAfterEventArgs != null)
            {
                UpdatedNameEventArgs eventArgs = new UpdatedNameEventArgs(strName, creature);
                tempAfterEventArgs(this, eventArgs);
            }
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        internal bool OnUpdatingName(string strName, BaseGameObject creature)
        {
            EventHandler <UpdatingNameEventArgs> tempBeforeEventArgs = m_EventUpdatingName;

            if (tempBeforeEventArgs != null)
            {
                UpdatingNameEventArgs eventArgs = new UpdatingNameEventArgs(strName, creature);
                tempBeforeEventArgs(this, eventArgs);

                return(eventArgs.IsCancel);
            }

            return(false);
        }
Esempio n. 3
0
 /// <summary>
 /// 初始化构造
 /// </summary>
 /// <param name="baseCreature"></param>
 public UpdatingNameEventArgs(string strName, BaseGameObject creature) :
     base(creature)
 {
     m_NewName = strName;
 }
Esempio n. 4
0
 /// <summary>
 /// 初始化构造
 /// </summary>
 /// <param name="baseCreature"></param>
 public BaseGameObjectEventArgs(BaseGameObject gameObject)
 {
     m_GameObject = gameObject;
 }