Example #1
0
        internal void Append( Spirit spirit )
        {
            if ( this.targets.Contains ( spirit ) || !this.appending ( spirit ) )
                return;

            this.targets.Add ( spirit );

            this.appended ( spirit );
        }
Example #2
0
        internal SpiritEventArgs( Spirit spirit, bool isCancel )
        {
            if ( null != spirit )
            {
                this.Type = spirit.Type;
                this.Location = spirit.Location;
                this.Angle = spirit.Angle;
                this.Width = spirit.Width;
                this.Height = spirit.Height;
            }

            this.IsCancel = isCancel;
        }
Example #3
0
 internal SpiritEventArgs( Spirit spirit )
     : this(spirit, false)
 {
 }
Example #4
0
 protected virtual bool appending( Spirit spirit )
 {
     return true;
 }
Example #5
0
 protected virtual void appended( Spirit spirit )
 {
 }