コード例 #1
0
        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());
        }
コード例 #2
0
        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());
        }