/// <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); }
/// <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; }