import struct MappinUIProfile
{
	private import var widgetResource : ResRef;
	private import var widgetLibraryID : CName;
	private import var spawn : MappinUISpawnProfile_Record;
	private import var runtime : MappinUIRuntimeProfile_Record;

	public static function CreateDefault( _widgetResource : ResRef ) : MappinUIProfile
	{
		return Create( _widgetResource, T"MappinUISpawnProfile.MediumRange" );
	}

	public static function Create( _widgetResource : ResRef, spawnProfile : TweakDBID ) : MappinUIProfile
	{
		return Create( _widgetResource, spawnProfile, T"MappinUIRuntimeProfile.Default" );
	}

	public static function Create( _widgetResource : ResRef, spawnProfile : TweakDBID, runtimeProfile : TweakDBID ) : MappinUIProfile
	{
		var profile : MappinUIProfile;
		profile.widgetResource = _widgetResource;
		profile.spawn = TweakDBInterface.GetMappinUISpawnProfileRecord( spawnProfile );
		profile.runtime = TweakDBInterface.GetMappinUIRuntimeProfileRecord( runtimeProfile );
		return profile;
	}

	public static function None() : MappinUIProfile
	{
		var profile : MappinUIProfile;
		return profile;
	}

}

