public int CreateBackTransition(int roomIDFrom, BoundingBox relativeBB, bool isImmediate) { if (roomIDFrom >= m_rooms.Count) { return(-1); } AreaClicTransition transitionToAdd = new AreaClicTransition(m_rooms[roomIDFrom], null, relativeBB, isImmediate); transitionToAdd.SetTransitionID(m_transitions.Count); m_transitions.Add(transitionToAdd); return(transitionToAdd.GetTransitionID()); }
public int CreateClickableTransition(int roomIDFrom, int roomIDTo, BoundingBox relativeBB, bool isImmediate, bool isUnique) { if (roomIDFrom >= m_rooms.Count || roomIDTo >= m_rooms.Count) { return(-1); } AreaClicTransition transitionToAdd = new AreaClicTransition(m_rooms[roomIDFrom], m_rooms[roomIDTo], relativeBB, isImmediate, isUnique); transitionToAdd.SetTransitionID(m_transitions.Count); m_transitions.Add(transitionToAdd); return(transitionToAdd.GetTransitionID()); }