class ChaChaFontsFull expands IChaChaFonts config(ChaChaFonts);


var int VersionMajor;
var int VersionMinor;
var int VersionPatch;
var config int ConfigFileVersion;

var FontInfo InstFI_BowlbyOne;
var FontInfo InstFI_BrunoAceSC;
var FontInfo InstFI_FragmentMono;
var FontInfo InstFI_Orbitron;
var FontInfo InstFI_PressStart2P;
var FontInfo InstFI_ReggaeOne;
var FontInfo InstFI_RussoOne;
var FontInfo InstFI_Unispace;
var FontInfo InstFI_VT323;
var FontInfo InstFI_Defaut;

// A dummy Actor Class so that we can look for this actor and found the base Package
// => No need to relly on package version (Name)

simulated function PreBeginPlay()
{
	if(Role == ROLE_Authority)	SaveConfig();
}

simulated function FontInfo Get(String requestedFont)
{
	switch(requestedFont)
	{
		case"BowlbyOne":
			if(InstFI_BowlbyOne==None)
				InstFI_BowlbyOne=Spawn(class'ChaChaFontInfo_BowlbyOne',Self);
			return InstFI_BowlbyOne;
			
		case"BrunoAceSC":
			if(InstFI_BrunoAceSC==None)
				InstFI_BrunoAceSC=Spawn(class'ChaChaFontInfo_BrunoAceSC',Self);
			return InstFI_BrunoAceSC;
			
		case"FragmentMono":
			if(InstFI_FragmentMono==None)
				InstFI_FragmentMono=Spawn(class'ChaChaFontInfo_FragmentMono',Self);
			return InstFI_FragmentMono;
			
		case"Orbitron":
			if(InstFI_Orbitron==None)
				InstFI_Orbitron=Spawn(class'ChaChaFontInfo_Orbitron',Self);
			return InstFI_Orbitron;
			
		case"PressStart2P":
			if(InstFI_PressStart2P==None)
				InstFI_PressStart2P=Spawn(class'ChaChaFontInfo_PressStart2P',Self);
			return InstFI_PressStart2P;
			
		case"ReggaeOne":
			if(InstFI_ReggaeOne==None)
				InstFI_ReggaeOne=Spawn(class'ChaChaFontInfo_ReggaeOne',Self);
			return InstFI_ReggaeOne;
			
		case"RussoOne":
			if(InstFI_RussoOne==None)
				InstFI_RussoOne=Spawn(class'ChaChaFontInfo_RussoOne',Self);
			return InstFI_RussoOne;
			
		case"Unispace":
			if(InstFI_Unispace==None)
				InstFI_Unispace=Spawn(class'ChaChaFontInfo_Unispace',Self);
			return InstFI_Unispace;
			
		case"VT323":
			if(InstFI_VT323==None)
				InstFI_VT323=Spawn(class'ChaChaFontInfo_VT323',Self);
			return InstFI_VT323;
			
		case"Defaut":
		default:
			if(InstFI_Defaut==None)
				InstFI_Defaut=Spawn(class'ChaChaFontInfo',Self);
			return InstFI_Defaut;
	}
}


defaultproperties{
	VersionMajor=1
	VersionMinor=0
	VersionPatch=0
	ConfigFileVersion=1
}