On Monday, 3 April 2023 at 09:08:42 UTC, dog2002 wrote:
Hello. The title sounds weird, but I try to explain it better.
In Unreal Engine and Unity, source code files don't use main()
and other important functions. They have only a class. Like
this:
```
class SomeClass: someInterface
{
AFunctionFromTheInterface1()
{
}
AFunctionFromTheInterface2()
{
}
}
```
And then all the source code files will be compiled into a
single .dll/.so library, so the game engine can use one in a
game.
I don't know what compiler does Unreal Engine use, but it uses
C++.
Is it possible to do so in D?
There are examples of code here
https://docs.unrealengine.com/5.1/en-US/unreal-engine-for-unity-developers/