I would like to create 2 lists, in which the first one should contain rectangles and the other some kind of objects.
For example:
List
List
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Mar 29, 2011, 7:23 AM
if (something)
{
rec = new Rectangle(x,y,width,height);
recs.Add(rec);
obj = new Object(rec, Content.Load
objs.Add(obj);
}
Steve TsikiPosted Mar 29, 2011, 7:28 AM
Steve TsikiPosted Mar 29, 2011, 7:09 AM
The class is as follows:
VulpesPosted Mar 29, 2011, 6:54 AM