I'm trying to port an existing C# project to a new distributed one, using interfaces connecting client and server components (its a Sokoban game for a college exercise).
And here is my issue:
In one component, say: Level.cs, i have:
Level.cs
namespace Sokoban
{
public enum MoveDirection { Right, Left, Down, Up }
public class Level
{
private MoveDirection sokoDirection = MoveDirection.Right;
...
}
...
}
And by the other hand, the interfaces:
Interfaces.cs:
namespace Interfaces
{
public class ILevel : MarshalByRefObject
{
---> what should i place here??? <---
}
}
I've tried with no success the following options:
Interfaces.cs:
public virtual enum MoveDirection { get; set; }
public virtual enum MoveDirection() { throw new NotImplementedException(); }
Level.cs:
public static enum MoveDirection { return { Right, Left... }; }
public static enum MoveDirection { get { return { right, Left, ...}; } }