Ejemplo n.º 1
0
 /// <summary>
 /// 初始化构造
 /// </summary>
 /// <param name="baseCreature"></param>
 public UpdatedCreatureTemplateEventArgs(BaseCreatureTemplate creatureTemplate, BaseCreature creature) :
     base(creature)
 {
     m_OldCreatureTemplate = creatureTemplate;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 初始化构造
 /// </summary>
 /// <param name="baseCreature"></param>
 public UpdatingCreatureTemplateEventArgs(BaseCreatureTemplate creatureTemplate, BaseCreature creature) :
     base(creature)
 {
     m_NewCreatureTemplate = creatureTemplate;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 初始化构造
 /// </summary>
 /// <param name="baseCreature"></param>
 public UpdatedCreatureTemplateEventArgs( BaseCreatureTemplate creatureTemplate, BaseCreature creature ) :
     base( creature )
 {
     m_OldCreatureTemplate = creatureTemplate;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 初始化构造
 /// </summary>
 /// <param name="baseCreature"></param>
 public UpdatingCreatureTemplateEventArgs( BaseCreatureTemplate creatureTemplate, BaseCreature creature ) :
     base( creature )
 {
     m_NewCreatureTemplate = creatureTemplate;
 }
 /// <summary>
 /// 
 /// </summary>
 internal void OnUpdatedCreatureTemplate( BaseCreatureTemplate creatureTemplate, BaseCreature creature )
 {
     EventHandler<UpdatedCreatureTemplateEventArgs> tempAfterEventArgs = m_EventUpdatedCreatureTemplate;
     if ( tempAfterEventArgs != null )
     {
         UpdatedCreatureTemplateEventArgs eventArgs = new UpdatedCreatureTemplateEventArgs( creatureTemplate, creature );
         tempAfterEventArgs( this, eventArgs );
     }
 }
        /// <summary>
        /// 
        /// </summary>
        internal bool OnUpdatingCreatureTemplate( BaseCreatureTemplate creatureTemplate, BaseCreature creature )
        {
            EventHandler<UpdatingCreatureTemplateEventArgs> tempBeforeEventArgs = m_EventUpdatingCreatureTemplate;
            if ( tempBeforeEventArgs != null )
            {
                UpdatingCreatureTemplateEventArgs eventArgs = new UpdatingCreatureTemplateEventArgs( creatureTemplate, creature );
                tempBeforeEventArgs( this, eventArgs );

                return eventArgs.IsCancel;
            }

            return false;
        }