mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-02-15 09:07:05 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
27 lines
372 B
C#
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 |