BeardedManStudios / ForgeNetworkingRemastered

See various forks, also please join the Forge Community fork of Forge Alloy! -> https://github.com/ForgeAlloyCommunity/ForgeAlloy
https://twitter.com/FarrisFaulds
Apache License 2.0
1.49k stars 311 forks source link

Forge Networking Alloy networking code cannot be used without Unity due to (unused) import #385

Open NoTuxNoBux opened 3 years ago

NoTuxNoBux commented 3 years ago

Version Number and Operating System(s):

Windows 10, Forge Network Alloy at da8e1295ae1d4fada3037740a4b30df679e4e395 (develop).

Expected behavior:

The ForgeNetworkingRemastered/ForgeUnity/Assets/BeardedManStudios/Scripts/Networking/Forge/Networking folder is usable in stand-alone non-Unity projects.

Actual behavior:

It is not, due to Unity imports being referenced.

Steps to reproduce:

Copy-paste the ForgeNetworkingRemastered/ForgeUnity/Assets/BeardedManStudios/Scripts/Networking/Forge/Networking folder into a non-Unity C# project and try to build using dotnet build.

A compiler error will happen due to SQPServer referencing Unity.

Context

This import is unused and can be safely removed.