Пример #1
0
        /// <summary>
        ///
        /// </summary>
        internal void OnMovedToWorld(Point3D oldLocation, BaseMap oldMap, WorldEntity gameEntity)
        {
            EventHandler <MovedToWorldEventArgs> tempAfterEventArgs = m_EventMovedToWorld;

            if (tempAfterEventArgs != null)
            {
                MovedToWorldEventArgs eventArgs = new MovedToWorldEventArgs(oldLocation, oldMap, gameEntity);
                tempAfterEventArgs(this, eventArgs);
            }
        }
 public void OldLocationTest()
 {
     Point3D oldLocation = new Point3D(); // TODO: 初始化为适当的值
     BaseMap oldMap = null; // TODO: 初始化为适当的值
     WorldEntity gameEntity = null; // TODO: 初始化为适当的值
     MovedToWorldEventArgs target = new MovedToWorldEventArgs( oldLocation, oldMap, gameEntity ); // TODO: 初始化为适当的值
     Point3D actual;
     actual = target.OldLocation;
     Assert.Inconclusive( "验证此测试方法的正确性。" );
 }
 /// <summary>
 /// 
 /// </summary>
 internal void OnMovedToWorld( Point3D oldLocation, BaseMap oldMap, WorldEntity gameEntity )
 {
     EventHandler<MovedToWorldEventArgs> tempAfterEventArgs = m_EventMovedToWorld;
     if ( tempAfterEventArgs != null )
     {
         MovedToWorldEventArgs eventArgs = new MovedToWorldEventArgs( oldLocation, oldMap, gameEntity );
         tempAfterEventArgs( this, eventArgs );
     }
 }
 public void MovedToWorldEventArgsConstructorTest()
 {
     Point3D oldLocation = new Point3D(); // TODO: 初始化为适当的值
     BaseMap oldMap = null; // TODO: 初始化为适当的值
     WorldEntity gameEntity = null; // TODO: 初始化为适当的值
     MovedToWorldEventArgs target = new MovedToWorldEventArgs( oldLocation, oldMap, gameEntity );
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }