C
C#13mo ago
nut

❔ entry point in dll instead of application

hi, how can i put an entry point that runs from a linked dll instead of the application? id like for my game engine to have an entry point within it, and all the user side has to do is inherit a class
4 Replies
nut
nut13mo ago
so if i have
public class Game : Application
public class Game : Application
where application is from the engine i have to do
public static void Main()
{
new Game("Sandbox").Run();
}
public static void Main()
{
new Game("Sandbox").Run();
}
id like to not have to call main
Aaron
Aaron13mo ago
you can't, not without just making your engine the executable
reflectronic
reflectronic13mo ago
you could have your game engine library generate an entrypoint into the client application i suppose
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.