/// <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); }
/// <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; }