Beispiel #1
0
 //-------------------------------------------------------------------
 // This checks if a door is needed in the room at a specific direction.
 //      roomGen: the roomgenerator that the door is part of.
 //      doorPlace: a doorPlace that gives us information about the door
 //      index: the index of the room in the map
 //      x: the x position of the door
 //      y: the y position of the door
 //-------------------------------------------------------------------
 void Checkdoor(RoomGenerator roomGen, DoorPlacement doorPlace, int index, float x, float y)
 {
     if (!roomGen.CheckAvailability(doorPlace.m_dir))
     {
         Drawdoor(roomGen, new Vector3(x, y, 1), doorPlace.m_quat, doorPlace.m_ori, index, doorPlace.m_offset);
     }
 }