public static PlaceActing FromData( Place place, JObject data )
{
if ( place == null )
throw new ArgumentNullException( "place" );
if ( data == null )
return null;
var startOn = data.Value<DateTime>( "StartOn" );
var playerId = data.GuidValue( "PlayerID" );
var action = GameHost.GameRules.GetDataItem<ActionDescriptorBase>( data.GuidValue( "ActionDescriptor" ) );
if ( action == null )
return null;
return new PlaceActing
{
PlayerID = playerId,
Place = place,
StartOn = startOn,
ActionDescriptor = action,
};
}