| Untitled left | D:\ValheimDev\Dumps\Latest\assembly_valheim\RoomList.cs | ||
|---|---|---|---|
| . | |
using System; |
|
|
using System.Collections.Generic; |
||
|
using UnityEngine; |
||
|
|
||
|
public class RoomList : MonoBehaviour |
||
|
{ |
||
|
private void Awake() |
||
|
{ |
||
|
RoomList.s_allRoomLists.Add(this); |
||
|
} |
||
|
|
||
|
private void OnDestroy() |
||
|
{ |
||
|
RoomList.s_allRoomLists.Remove(this); |
||
|
} |
||
|
|
||
|
public static List<RoomList> GetAllRoomLists() |
||
|
{ |
||
|
return RoomList.s_allRoomLists; |
||
|
} |
||
|
|
||
|
private static List<RoomList> s_allRoomLists = new List<RoomList>(); |
||
|
|
||
|
public List<DungeonDB.RoomData> m_rooms = new List<DungeonDB.RoomData>(); |
||
|
} |
||
|
|
||