/// A static reference to the resource manager for quicker access.
/// </summary>
publicstaticResourceManagerself;
/// <summary>
/// A list of all of the ores held by the resource manager.
/// </summary>
publicDictionary<string,OreVeinObj>ores;
/// <summary>
/// Constructor.
/// </summary>
publicResourceManager()
{
self=this;
this.ores=newDictionary<string,OreVeinObj>();
this.loadOreVeins();
}
/// <summary>
/// Loads in all of the ore veins for the game.
/// </summary>
privatevoidloadOreVeins()
{
//The pancake ore.
OreVeinObjtestOre=newOreVeinObj(PyTKHelper.CreateOBJData("Omegasis.Revitalize.Resources.Ore.Test",TextureManager.GetTexture(ModCore.Manifest,"Resources.Ore","Test"),typeof(OreVeinTile),Color.White),newBasicItemInformation("Test Ore Vein","Omegasis.Revitalize.Resources.Ore.Test","A ore vein that is used for testing purposes.","Revitalize.Ore",Color.Black,-300,0,false,350,Vector2.Zero,true,true,TextureManager.GetTexture(ModCore.Manifest,"Resources.Ore","Test"),newAnimationManager(TextureManager.GetExtendedTexture(ModCore.Manifest,"Resources.Ore","Test"),newAnimation(0,0,16,16)),Color.White,false,null,null));
testOre.addComponent(newVector2(0,0),newOreVeinTile(PyTKHelper.CreateOBJData("Omegasis.Revitalize.Resources.Ore.Test",TextureManager.GetTexture(ModCore.Manifest,"Resources.Ore","Test"),typeof(OreVeinTile),Color.White),newBasicItemInformation("Test Ore Vein","Omegasis.Revitalize.Resources.Ore.Test","A ore vein that is used for testing purposes.","Revitalize.Ore",Color.Black,-300,0,false,350,Vector2.Zero,true,true,TextureManager.GetTexture(ModCore.Manifest,"Resources.Ore","Test"),newAnimationManager(TextureManager.GetExtendedTexture(ModCore.Manifest,"Resources.Ore","Test"),newAnimation(0,0,16,16)),Color.White,false,null,null),newInformationFiles.ResourceInformaton(newStardewValley.Object(211,1),1,10)));
this.ores.Add("Test",testOre);
}
/// <summary>
/// Spawns an ore vein at the given location if possible.