Пример #1
0
            /// <summary>
            /// 
            /// </summary>
            /// <param name="eventArgs"></param>
            internal static MoveToEventArgs InvokeMoveTo( Point3D newLocation, WorldEntity entity )
            {
                EventHandler<MoveToEventArgs> tempMoveTo = m_MoveTo;
                if ( tempMoveTo != null )
                {
                    MoveToEventArgs moveToEventArgs = new MoveToEventArgs( newLocation, entity );
                    if ( moveToEventArgs == null )
                        return null;

                    tempMoveTo( entity, moveToEventArgs );

                    return moveToEventArgs;
                }

                return null;
            }
Пример #2
0
            /// <summary>
            ///
            /// </summary>
            /// <param name="eventArgs"></param>
            internal static MoveToEventArgs InvokeMoveTo(Point3D newLocation, WorldEntity entity)
            {
                EventHandler <MoveToEventArgs> tempMoveTo = m_MoveTo;

                if (tempMoveTo != null)
                {
                    MoveToEventArgs moveToEventArgs = new MoveToEventArgs(newLocation, entity);
                    if (moveToEventArgs == null)
                    {
                        return(null);
                    }

                    tempMoveTo(entity, moveToEventArgs);

                    return(moveToEventArgs);
                }

                return(null);
            }