一个游戏活动的描述
상속: GameRuleItem
예제 #1
0
        /// <summary>
        /// 在指定地块开始这个活动
        /// </summary>
        /// <param name="place">要开始活动的地块</param>
        internal static PlaceActing StartAt(GamePlayer player, Place place, ActionDescriptorBase action)
        {
            if (place == null)
            {
                throw new ArgumentNullException("place");
            }


            var acting = new PlaceActing
            {
                StartOn          = DateTime.UtcNow,
                ActionDescriptor = action,
                PlayerID         = player.Guid,
                Place            = place,
            };


            place.SetActing(acting);
            return(acting);
        }
예제 #2
0
        /// <summary>
        /// 在指定地块开始这个活动
        /// </summary>
        /// <param name="place">要开始活动的地块</param>
        internal static PlaceActing StartAt( GamePlayer player, Place place, ActionDescriptorBase action )
        {
            if ( place == null )
            throw new ArgumentNullException( "place" );

              var acting = new PlaceActing
              {
            StartOn = DateTime.UtcNow,
            ActionDescriptor = action,
            PlayerID = player.Guid,
            Place = place,
              };

              place.SetActing( acting );
              return acting;
        }