Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

Using depency injection (DI) and several files

$
0
0
So, after coming back to SE after like 4 years, I have some reqeusts for the C# scritping system (not sure if they are implemented alaready).

Allow for people to define a class in a separate file, then use Dependency injection or usings to access these classes inside the scripts.

This would reduce script sizes enormously , since people can actually have 1 file per class, and reuse defined types in other scripts without having to reupload them.

Further it could lower the execution...

Using depency injection (DI) and several files

Viewing all articles
Browse latest Browse all 903

Trending Articles