private static List <ItemLocation <T> > CreateList <T>(int id, SceneHeader header, int scene, int room, CreateListThings <T> del) { List <ItemLocation <T> > result = new List <ItemLocation <T> >(); List <List <T> > test = del(id); for (int i = 0; i < test.Count; i++) { SceneRoomSetup srs = new SceneRoomSetup(scene, room, i); foreach (var item in test[i]) { result.Add(new ItemLocation <T>(item, srs)); } } return(result); }
public ItemLocation(T i, SceneRoomSetup loc) { Item = i; Location = loc; }