In my C# solution I've got multiple projects.
One of them is OdulaProject (XNA WP7 game). (I) The primary project is Editor (WinForms app) (II)
In (I) is this piece of code:
namespace OdulaProject.GameCore.Resources
{
public class MyLevel
{
// TODO: remove!!!
public static Vector3 GetFieldPosition(Point coordinates)
{
return new Vector3(coordinates.X * MyGameConstants.FieldSize.X, coordinates.Y * MyGameConstants.FieldSize.Y, 0);
}
}
}
In (II) I've got a reference to (I) and this piece of code:
using OdulaProject.GameCore.Resources;
...
MyLevel.GetFieldPosition(new Point(0, 0));
And I'm still getting en error:
'OdulaProject.GameCore.Resources.MyLevel' is inaccessible due to its protection level