Files
sbox-public/engine/Sandbox.Compiling.Test/Data/code/base_with_server/BaseCar.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

27 lines
372 B
C#

public partial class BaseCar
{
public virtual void HelloClientAndServer()
{
#if SERVER
// hello I'm the server
#endif
// hello I'm both the server and client
}
}
#if SERVER
public class ServerOnlyClass
{
public void ServerOnlyMethod()
{
}
}
#else
public class ClientOnlyMethod
{
public void HelloClientOnly()
{
}
}
#endif