Add per-mod content managers
Pathoschild opened this issue ยท 5 comments
Split #273 into a separate ticket.
Two possible APIs:
-
Option 1:
// load XNB from the mod folder helper.Content.Load<Texture2D>("foo.xnb", ContentSource.ModFolder); // load unpacked image from the mod folder helper.Content.Load<Texture2D>("foo.png", ContentSource.ModFolder); // load 'foo' asset from the game's content manager helper.Content.Load<Texture2D>("foo", ContentSource.GameContent);
-
Option 2:
// load XNB from the mod folder helper.Content.LoadFromModFolder<Texture2D>("foo.xnb"); // load unpacked image from the mod folder helper.Content.LoadFromModFolder<Texture2D>("foo.png"); // load 'foo' asset from the game's content manager helper.Content.LoadFromGameContent<Texture2D>("foo");
Option 1 is unanimously preferred per discussion on Discord, so I'll go with that.