Level Generator 2D

Room Members

The Room type exposes the following members.

Methods


  Name Description
Public method BroadcastMessage(String, Object, SendMessageOptions) (Inherited from Component.)
Public method BroadcastMessage(String, Object) (Inherited from Component.)
Public method BroadcastMessage(String) (Inherited from Component.)
Public method BroadcastMessage(String, SendMessageOptions) (Inherited from Component.)
Public method BuildWalls
Builds the walls for this Room
Public method CancelInvoke()()()() (Inherited from MonoBehaviour.)
Public method CancelInvoke(String) (Inherited from MonoBehaviour.)
Public method CompareTag (Inherited from Component.)
Public method Equals (Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetChildlock
Gets whether or not the children are to be locked within the room
Public method GetComponent(Type) (Inherited from Component.)
Public method GetComponent(String) (Inherited from Component.)
Public method GetComponent``1()()()() (Inherited from Component.)
Public method GetComponentInChildren(Type, Boolean) (Inherited from Component.)
Public method GetComponentInChildren(Type) (Inherited from Component.)
Public method GetComponentInChildren``1()()()() (Inherited from Component.)
Public method GetComponentInChildren``1(Boolean) (Inherited from Component.)
Public method GetComponentInParent(Type) (Inherited from Component.)
Public method GetComponentInParent``1()()()() (Inherited from Component.)
Public method GetComponents(Type) (Inherited from Component.)
Public method GetComponents(Type, List<(Of <<'(Component>)>>)) (Inherited from Component.)
Public method GetComponents``1(List<(Of <<'(UMP>)>>)) (Inherited from Component.)
Public method GetComponents``1()()()() (Inherited from Component.)
Public method GetComponentsInChildren(Type) (Inherited from Component.)
Public method GetComponentsInChildren(Type, Boolean) (Inherited from Component.)
Public method GetComponentsInChildren``1(Boolean) (Inherited from Component.)
Public method GetComponentsInChildren``1(Boolean, List<(Of <<'(UMP>)>>)) (Inherited from Component.)
Public method GetComponentsInChildren``1()()()() (Inherited from Component.)
Public method GetComponentsInChildren``1(List<(Of <<'(UMP>)>>)) (Inherited from Component.)
Public method GetComponentsInParent(Type) (Inherited from Component.)
Public method GetComponentsInParent(Type, Boolean) (Inherited from Component.)
Public method GetComponentsInParent``1(Boolean) (Inherited from Component.)
Public method GetComponentsInParent``1(Boolean, List<(Of <<'(UMP>)>>)) (Inherited from Component.)
Public method GetComponentsInParent``1()()()() (Inherited from Component.)
Public method GetDoors(Point2)
Takes in the local Point of the Room and returns its doors
Public method GetDoors()()()()
Gets the doors associated with this Room
Public method GetGlobalPoint
Gets the Point where this Room is located globally
Public method GetHashCode (Inherited from Object.)
Public method GetHeight
Gets the height in grid units
Public method GetInstanceID (Inherited from Object.)
Public method GetMaxDoors
Gets the max number of doors that can fit in this room based on its size
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method GetWeight
Gets the weight of this room, determining how often it is spawned
Public method GetWidth
Gets the width in grid units
Public method InitializeDoors
Set up the doors so that only the correct indices are set
Public method Invoke (Inherited from MonoBehaviour.)
Public method InvokeRepeating (Inherited from MonoBehaviour.)
Public method IsInvoking(String) (Inherited from MonoBehaviour.)
Public method IsInvoking()()()() (Inherited from MonoBehaviour.)
Public method IsOpen
Checks whether or not this room has any open doors
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method RemoveDoor
Removes a door with the specified index
Public method SendMessage(String, Object, SendMessageOptions) (Inherited from Component.)
Public method SendMessage(String, Object) (Inherited from Component.)
Public method SendMessage(String) (Inherited from Component.)
Public method SendMessage(String, SendMessageOptions) (Inherited from Component.)
Public method SendMessageUpwards(String, Object, SendMessageOptions) (Inherited from Component.)
Public method SendMessageUpwards(String, Object) (Inherited from Component.)
Public method SendMessageUpwards(String) (Inherited from Component.)
Public method SendMessageUpwards(String, SendMessageOptions) (Inherited from Component.)
Public method SetChildlock
Sets whether or not the children will be locked within the room
Public method SetDoors(array<Door>[]()[][])
Sets the doors for the room. All null doors will be initialized.
Public method SetDoors(array<Boolean>[]()[][])
Sets the doors in the indexed order
Public method SetGlobalPoint
Sets the Point where this Room is located globally
Public method SetHeight
Sets the height of this room in grid units
Public method SetWeight
Sets the weight for this room, determining how often it is spawned
Public method SetWidth
Sets the width of this room in grid units
Public method StartCoroutine(IEnumerator) (Inherited from MonoBehaviour.)
Public method StartCoroutine(String, Object) (Inherited from MonoBehaviour.)
Public method StartCoroutine(String) (Inherited from MonoBehaviour.)
Public method StartCoroutine_Auto (Inherited from MonoBehaviour.)
Public method StopAllCoroutines (Inherited from MonoBehaviour.)
Public method StopCoroutine(String) (Inherited from MonoBehaviour.)
Public method StopCoroutine(IEnumerator) (Inherited from MonoBehaviour.)
Public method StopCoroutine(Coroutine) (Inherited from MonoBehaviour.)
Public method ToString (Inherited from Object.)
Public method UpdateDoors
Updates the global point for all doors
Public method UpdatePosition
Update the room's transform based on its global point

Fields


  Name Description
Public field Static member MaxHeight
Maximum height of a room in grid units. If Max Height is used in your level controller, the Max Height should be kept as low as possible to improve performance.
Public field Static member MaxWidth
Maximum width of a room in grid units. If Max Width is used in your level controller, the Max Width should be kept as low as possible to improve performance.

Properties


  Name Description
Public property animation (Inherited from Component.)
Public property audio (Inherited from Component.)
Public property camera (Inherited from Component.)
Public property collider (Inherited from Component.)
Public property collider2D (Inherited from Component.)
Public property constantForce (Inherited from Component.)
Public property enabled (Inherited from Behaviour.)
Public property gameObject (Inherited from Component.)
Public property guiElement (Inherited from Component.)
Public property guiText (Inherited from Component.)
Public property guiTexture (Inherited from Component.)
Public property hideFlags (Inherited from Object.)
Public property hingeJoint (Inherited from Component.)
Public property isActiveAndEnabled (Inherited from Behaviour.)
Public property light (Inherited from Component.)
Public property name (Inherited from Object.)
Public property networkView (Inherited from Component.)
Public property particleEmitter (Inherited from Component.)
Public property particleSystem (Inherited from Component.)
Public property renderer (Inherited from Component.)
Public property rigidbody (Inherited from Component.)
Public property rigidbody2D (Inherited from Component.)
Public property tag (Inherited from Component.)
Public property transform (Inherited from Component.)
Public property useGUILayout (Inherited from MonoBehaviour.)