private static unsafe List <Room> GetRooms() { IntPtr pPlayfield = N3EngineClient_t.GetPlayfield(); if (pPlayfield == IntPtr.Zero || !IsDungeon) { return(new List <Room>()); } return((*N3Playfield_t.GetZones(pPlayfield)).ToList().Select(x => new Room(x)).ToList()); }
private static unsafe List <Zone> GetZones() { IntPtr pPlayfield = N3EngineClient_t.GetPlayfield(); if (pPlayfield == IntPtr.Zero) { return(new List <Zone>()); } return((*N3Playfield_t.GetZones(pPlayfield)).ToList().Select(x => new Zone(x)).ToList()); }