For example, this fails:
In Game.cs:
- Code: Select all
namespace MyGame
{
[RoomType("MyRoom")]
public partial class Server : Game<Player>
{
private int myVariable;
public override void GameStarted()
{
Console.WriteLine("GameStarted(" + RoomId + ")");
InitializeGame();
}
}
}
In MySecondGameFile.cs:
- Code: Select all
namespace MyGame
{
public partial class Server : Game<Player>
{
private void Initialize()
{
myVariable = 0;
}
}
}
Both myVariable and Initialize have The name 'someName' does not exist in the current context errors.