MrScautHD / Sparkle

A fast, Cross-platform .NET 8 C# 12 game engine.
https://sparkle-engine.com
MIT License
105 stars 11 forks source link

🧊 [Feature] Impliment MSBuild for `Headless` support. #9

Closed MrScautHD closed 10 months ago

MrScautHD commented 1 year ago

MSBuild (https://github.com/dotnet/msbuild)

MSBuild impliments a dynamic build system!

Get just compiled if client side (HEADED): Headed

Get just compiled if server side (HEADLESS): headless

Works even in the middle of the script: if

Gammer0909 commented 10 months ago

Wait, we can make macros in C#?

MrScautHD commented 10 months ago

Its called Attributes but yea :D

gldraphael commented 10 months ago

@Gammer0909 - yes, but only within pre-processor directives. Text substitution is not supported. https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/preprocessor-directives

MrScautHD commented 10 months ago

Modern network systems do not need the engine on the server side.

Gammer0909 commented 10 months ago

Yay, less work!