I have this project which I am working on, and I need help on C# structs. I am using a Console application.
What I'm after is to create a struct that I can use in a array. What I have so far is:
public struct array
{
public static int id;
public static int x;
public static int y;
};
public static array[] test = new array[amount];
Then what I want to be able to do is set the variables like this.
test[i].id = 1;
test[i].x = 1;
test[i].y = 1;
However it isn't working. If anyone has any ideas it would be appreciated a lot.
Thank you Adam