|
@@ -145,6 +145,7 @@ public class WallCreate : MonoBehaviour
|
|
|
{
|
|
|
//var end_pos = Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, screenPoint.z));
|
|
|
//Debug.Log($"end_pos = {end_pos}");
|
|
|
+
|
|
|
var location_id = player.locations_index[player.active_location];
|
|
|
if (!Walls.ContainsKey(location_id))
|
|
|
Walls[location_id] = new List<Wall>();
|
|
@@ -271,4 +272,14 @@ public class WallCreate : MonoBehaviour
|
|
|
// z.Save();
|
|
|
// }
|
|
|
//}
|
|
|
+
|
|
|
+ static uint WallsGetInnerID(uint location_id)
|
|
|
+ {
|
|
|
+ return (uint) Walls[location_id].Count;
|
|
|
+ }
|
|
|
+
|
|
|
+ static uint ZonessGetInnerID(uint location_id)
|
|
|
+ {
|
|
|
+ return (uint) Zones[location_id].Count;
|
|
|
+ }
|
|
|
}
|