diff --git a/_cell_area2_d_8cs_source.html b/_cell_area2_d_8cs_source.html index d58b3d6e..71fb9869 100644 --- a/_cell_area2_d_8cs_source.html +++ b/_cell_area2_d_8cs_source.html @@ -114,7 +114,7 @@
13 }
14
15 public static CellArea2D InstantiateCellArea2D(int row, int column, RoomComponent room,
-
16 LayerMask cellLayer, LayerMask triggeringLayer)
+
16 int cellLayer, LayerMask triggeringLayers)
17 {
18 var obj = new GameObject("Cell Area 2D");
19 obj.transform.SetParent(room.transform);
@@ -127,10 +127,10 @@
26 collider.gameObject.layer = cellLayer;
27 collider.isTrigger = true;
28 collider.size = room.CellSize;
-
29 collider.includeLayers = triggeringLayer;
-
30 collider.excludeLayers = ~triggeringLayer;
-
31 collider.contactCaptureLayers = triggeringLayer;
-
32 collider.callbackLayers = triggeringLayer;
+
29 collider.includeLayers = triggeringLayers;
+
30 collider.excludeLayers = ~triggeringLayers;
+
31 collider.contactCaptureLayers = triggeringLayers;
+
32 collider.callbackLayers = triggeringLayers;
33
34 return area;
35 }
diff --git a/_cell_area3_d_8cs_source.html b/_cell_area3_d_8cs_source.html index b2a4bbb7..180dae51 100644 --- a/_cell_area3_d_8cs_source.html +++ b/_cell_area3_d_8cs_source.html @@ -114,7 +114,7 @@
13 }
14
15 public static CellArea3D InstantiateCellArea3D(int row, int column, RoomComponent room,
-
16 LayerMask cellLayer, LayerMask triggeringLayer)
+
16 int cellLayer, LayerMask triggeringLayers)
17 {
18 var obj = new GameObject("Cell Area 3D");
19 obj.transform.SetParent(room.transform);
@@ -127,19 +127,19 @@
26 collider.gameObject.layer = cellLayer;
27 collider.isTrigger = true;
28 collider.size = room.LocalCellSize();
-
29 collider.includeLayers = triggeringLayer;
-
30 collider.excludeLayers = ~triggeringLayer;
+
29 collider.includeLayers = triggeringLayers;
+
30 collider.excludeLayers = ~triggeringLayers;
31
32 return area;
33 }
34
-
35 private void OnTriggerEnter2D(Collider2D collision)
+
35 private void OnTriggerEnter(Collider collision)
36 {
37 Room.RoomState.SetCellVisibility(Row, Column, true);
38 Room.OnCellAreaEntered.Invoke(this, collision.gameObject);
39 }
40
-
41 private void OnTriggerExit2D(Collider2D collision)
+
41 private void OnTriggerExit(Collider collision)
42 {
43 Room.OnCellAreaExited.Invoke(this, collision.gameObject);
44 }
diff --git a/_cell_area_8cs_source.html b/_cell_area_8cs_source.html index 73abc204..44033db9 100644 --- a/_cell_area_8cs_source.html +++ b/_cell_area_8cs_source.html @@ -110,15 +110,15 @@
9 public RoomComponent Room { get; protected set; }
10
11 public static CellArea InstantiateCellArea(int row, int column, RoomComponent room,
-
12 LayerMask cellLayer, LayerMask triggeringLayer)
+
12 LayerMask cellLayer, LayerMask triggeringLayers)
13 {
14 switch (room.RoomType)
15 {
16 case RoomType.TwoDimensional:
-
17 return CellArea2D.InstantiateCellArea2D(row, column, room, cellLayer, triggeringLayer);
+
17 return CellArea2D.InstantiateCellArea2D(row, column, room, cellLayer, triggeringLayers);
18 case RoomType.ThreeDimensionalXY:
19 case RoomType.ThreeDimensionalXZ:
-
20 return CellArea3D.InstantiateCellArea3D(row, column, room, cellLayer, triggeringLayer);
+
20 return CellArea3D.InstantiateCellArea3D(row, column, room, cellLayer, triggeringLayers);
21 default:
22 throw new System.NotImplementedException($"Unhandled room type: {room.RoomType}.");
23 }
diff --git a/_door_threshold_8cs_source.html b/_door_threshold_8cs_source.html index 10b2a255..45d346aa 100644 --- a/_door_threshold_8cs_source.html +++ b/_door_threshold_8cs_source.html @@ -157,7 +157,7 @@
65 max = Vector3.Max(max, corner);
66 }
67
-
68 return new Bounds(Vector3.Lerp(min, max, 0.5f) + transform.position, max - min);
+
68 return new Bounds(transform.position, max - min);
69 }
70
76 public Vector3 ParameterizePosition(Vector3 position)
diff --git a/_mania_map_settings_8cs_source.html b/_mania_map_settings_8cs_source.html index 001b9160..c6a99e4b 100644 --- a/_mania_map_settings_8cs_source.html +++ b/_mania_map_settings_8cs_source.html @@ -106,12 +106,12 @@
8 public class ManiaMapSettings : ScriptableObject
9 {
10 [SerializeField]
-
11 private LayerMask _cellLayer;
-
12 public LayerMask CellLayer { get => _cellLayer; set => _cellLayer = value; }
+
11 private int _cellLayer;
+
12 public int CellLayer { get => _cellLayer; set => _cellLayer = value; }
13
14 [SerializeField]
-
15 private LayerMask _triggeringLayer;
-
16 public LayerMask TriggeringLayer { get => _triggeringLayer; set => _triggeringLayer = value; }
+
15 private LayerMask _triggeringLayers;
+
16 public LayerMask TriggeringLayers { get => _triggeringLayers; set => _triggeringLayers = value; }
17
22 public static ManiaMapSettings LoadSettings()
23 {
diff --git a/_room_component_8cs_source.html b/_room_component_8cs_source.html index 01b902ff..c0b0fde5 100644 --- a/_room_component_8cs_source.html +++ b/_room_component_8cs_source.html @@ -221,18 +221,18 @@
144 var roomLayout = layoutPack.Layout.Rooms[id];
145 var roomState = layoutPack.LayoutState.RoomStates[id];
146 var cellLayer = layoutPack.Settings.CellLayer;
-
147 var triggeringLayer = layoutPack.Settings.TriggeringLayer;
-
148 return InstantiateRoomAsync(prefab, parent, layoutPack, roomLayout, roomState, cellLayer, triggeringLayer, assignLayoutPosition);
+
147 var triggeringLayers = layoutPack.Settings.TriggeringLayers;
+
148 return InstantiateRoomAsync(prefab, parent, layoutPack, roomLayout, roomState, cellLayer, triggeringLayers, assignLayoutPosition);
149 }
150
151 public static AsyncOperationHandle<GameObject> InstantiateRoomAsync(AssetReferenceGameObject prefab, Transform parent,
152 LayoutPack layoutPack, Room roomLayout, RoomState roomState,
-
153 LayerMask cellLayer, LayerMask triggeringLayer, bool assignLayoutPosition)
+
153 LayerMask cellLayer, LayerMask triggeringLayers, bool assignLayoutPosition)
154 {
155 var handle = prefab.InstantiateAsync(parent);
156
157 handle.Completed += handle => handle.Result.GetComponent<RoomComponent>()
-
158 .Initialize(layoutPack, roomLayout, roomState, cellLayer, triggeringLayer, assignLayoutPosition);
+
158 .Initialize(layoutPack, roomLayout, roomState, cellLayer, triggeringLayers, assignLayoutPosition);
159
160 return handle;
161 }
@@ -242,428 +242,433 @@
165 {
166 var roomLayout = layoutPack.Layout.Rooms[id];
167 var roomState = layoutPack.LayoutState.RoomStates[id];
-
168 var doorConnections = layoutPack.GetDoorConnections(id);
-
169 var cellLayer = layoutPack.Settings.CellLayer;
-
170 var triggeringLayer = layoutPack.Settings.TriggeringLayer;
-
171 return InstantiateRoom(prefab, parent, layoutPack, roomLayout, roomState, cellLayer, triggeringLayer, assignLayoutPosition);
-
172 }
-
173
-
174 public static RoomComponent InstantiateRoom(GameObject prefab, Transform parent,
-
175 LayoutPack layoutPack, Room roomLayout, RoomState roomState,
-
176 LayerMask cellLayer, LayerMask triggeringLayer, bool assignLayoutPosition)
-
177 {
-
178 var room = Instantiate(prefab, parent).GetComponent<RoomComponent>();
-
179 room.Initialize(layoutPack, roomLayout, roomState, cellLayer, triggeringLayer, assignLayoutPosition);
-
180 return room;
-
181 }
-
182
-
191 public bool Initialize(LayoutPack layoutPack, Room roomLayout, RoomState roomState,
-
192 LayerMask cellLayer, LayerMask triggeringLayer, bool assignLayoutPosition)
-
193 {
-
194 if (IsInitialized)
-
195 return false;
-
196
-
197 LayoutPack = layoutPack;
-
198 RoomLayout = roomLayout;
-
199 RoomState = roomState;
-
200
-
201 if (assignLayoutPosition)
-
202 MoveToLayoutPosition();
-
203
-
204 CreateCellAreas(cellLayer, triggeringLayer);
-
205 IsInitialized = true;
-
206 OnInitialize.Invoke();
-
207 return true;
-
208 }
-
209
-
210 private void MoveToLayoutPosition()
-
211 {
-
212 var position = new Vector2(RoomLayout.Position.Y, RoomLayout.Position.X) * CellSize;
-
213 transform.localPosition = GridToLocalPosition(position);
-
214 }
-
215
-
216 private void CreateCellAreas(LayerMask cellLayer, LayerMask triggeringLayer)
-
217 {
-
218 for (int i = 0; i < Rows; i++)
-
219 {
-
220 for (int j = 0; j < Columns; j++)
-
221 {
-
222 if (GetCellActivity(i, j))
-
223 CellArea.InstantiateCellArea(i, j, this, cellLayer, triggeringLayer);
-
224 }
-
225 }
-
226 }
-
227
-
228 public void SizeActiveCells()
-
229 {
-
230 while (ActiveCells.Count > Rows)
-
231 {
-
232 ActiveCells.RemoveAt(ActiveCells.Count - 1);
-
233 }
-
234
-
235 foreach (var row in ActiveCells)
-
236 {
-
237 while (row.Values.Count > Columns)
-
238 {
-
239 row.Values.RemoveAt(row.Values.Count - 1);
-
240 }
-
241
-
242 while (row.Values.Count < Columns)
-
243 {
-
244 row.Values.Add(true);
-
245 }
-
246 }
-
247
-
248 while (ActiveCells.Count < Rows)
-
249 {
-
250 ActiveCells.Add(new ActiveCellsRow(Columns, true));
-
251 }
-
252 }
-
253
-
254 public bool SetCellActivities(Vector2Int startIndex, Vector2Int endIndex, CellActivity activity)
-
255 {
-
256 if (activity == CellActivity.None || !CellIndexRangeExists(startIndex, endIndex))
-
257 return false;
-
258
-
259 var startRow = Mathf.Min(startIndex.x, endIndex.x);
-
260 var endRow = Mathf.Max(startIndex.x, endIndex.x);
-
261 var startColumn = Mathf.Min(startIndex.y, endIndex.y);
-
262 var endColumn = Mathf.Max(startIndex.y, endIndex.y);
-
263
-
264 for (int i = startRow; i <= endRow; i++)
-
265 {
-
266 for (int j = startColumn; j <= endColumn; j++)
-
267 {
-
268 SetCellActivity(i, j, activity);
-
269 }
-
270 }
-
271
-
272 return true;
-
273 }
-
274
-
275 public void SetCellActivity(int row, int column, CellActivity activity)
-
276 {
-
277 if (!CellIndexExists(row, column))
-
278 throw new System.IndexOutOfRangeException($"Index out of range: ({row}, {column})");
-
279
-
280 switch (activity)
-
281 {
-
282 case CellActivity.None:
-
283 break;
-
284 case CellActivity.Activate:
-
285 ActiveCells[row].Values[column] = true;
-
286 break;
-
287 case CellActivity.Deactivate:
-
288 ActiveCells[row].Values[column] = false;
-
289 break;
-
290 case CellActivity.Toggle:
-
291 ActiveCells[row].Values[column] = !ActiveCells[row].Values[column];
-
292 break;
-
293 default:
-
294 throw new System.NotImplementedException($"Unhandled cell activity: {activity}.");
-
295 }
-
296 }
-
297
-
298 public void SetCellActivity(int row, int column, bool activity)
-
299 {
-
300 if (!CellIndexExists(row, column))
-
301 throw new System.IndexOutOfRangeException($"Index out of range: ({row}, {column})");
-
302
-
303 ActiveCells[row].Values[column] = activity;
-
304 }
-
305
-
306 public bool GetCellActivity(int row, int column)
-
307 {
-
308 if (!CellIndexExists(row, column))
-
309 throw new System.IndexOutOfRangeException($"Index out of range: ({row}, {column})");
-
310
-
311 return ActiveCells[row].Values[column];
-
312 }
-
313
-
314 public bool CellIndexExists(int row, int column)
-
315 {
-
316 return (uint)row < (uint)Rows && (uint)column < (uint)Columns;
-
317 }
-
318
-
319 public bool CellIndexRangeExists(Vector2Int startIndex, Vector2Int endIndex)
-
320 {
-
321 return CellIndexExists(startIndex.x, startIndex.y) && CellIndexExists(endIndex.x, endIndex.y);
-
322 }
-
323
-
324 public int AutoAssign()
-
325 {
-
326 Size = Size;
-
327 var children = GetComponentsInChildren<CellChild>();
-
328
-
329 foreach (var child in children)
-
330 {
-
331 child.AutoAssign(this);
-
332 }
-
333
-
334 return children.Length;
-
335 }
-
336
-
337 public Quaternion GetCellViewDirection()
-
338 {
-
339 switch (RoomType)
-
340 {
-
341 case RoomType.TwoDimensional:
-
342 case RoomType.ThreeDimensionalXY:
-
343 return Quaternion.Euler(0, 0, 0);
-
344 case RoomType.ThreeDimensionalXZ:
-
345 return Quaternion.Euler(90, 0, 0);
-
346 default:
-
347 throw new System.ArgumentException($"Unhandled room type: {RoomType}.");
-
348 }
-
349 }
-
350
-
351 public Vector3 CenterGridPosition()
-
352 {
-
353 return new Vector3(Columns * CellSize.x, Rows * CellSize.y, CellSize.z) * 0.5f;
-
354 }
-
355
-
356 public Vector3 CenterLocalPosition()
-
357 {
-
358 return GridToLocalPosition(CenterGridPosition());
-
359 }
-
360
-
361 public Vector3 CenterGlobalPosition()
-
362 {
-
363 return CenterLocalPosition() + transform.position;
-
364 }
-
365
-
366 public Vector3 LocalCellSize()
-
367 {
-
368 switch (RoomType)
-
369 {
-
370 case RoomType.TwoDimensional:
-
371 case RoomType.ThreeDimensionalXY:
-
372 return CellSize;
-
373 case RoomType.ThreeDimensionalXZ:
-
374 return new Vector3(CellSize.x, CellSize.z, CellSize.y);
-
375 default:
-
376 throw new System.ArgumentException($"Unhandled room type: {RoomType}.");
-
377 }
-
378 }
-
379
-
380 public Vector3 GridToLocalPosition(Vector3 gridPosition)
-
381 {
-
382 switch (RoomType)
-
383 {
-
384 case RoomType.TwoDimensional:
-
385 case RoomType.ThreeDimensionalXY:
-
386 return new Vector3(gridPosition.x, -gridPosition.y, -gridPosition.z);
-
387 case RoomType.ThreeDimensionalXZ:
-
388 return new Vector3(gridPosition.x, gridPosition.z, -gridPosition.y);
-
389 default:
-
390 throw new System.ArgumentException($"Unhandled room type: {RoomType}.");
-
391 }
-
392 }
-
393
-
394 public Vector3 LocalToGridPosition(Vector3 localPosition)
-
395 {
-
396 switch (RoomType)
-
397 {
-
398 case RoomType.TwoDimensional:
-
399 case RoomType.ThreeDimensionalXY:
-
400 return new Vector3(localPosition.x, -localPosition.y, -localPosition.z);
-
401 case RoomType.ThreeDimensionalXZ:
-
402 return new Vector3(localPosition.x, -localPosition.z, localPosition.y);
-
403 default:
-
404 throw new System.ArgumentException($"Unhandled room type: {RoomType}.");
-
405 }
-
406 }
-
407
-
408 public Vector3 GlobalToGridPosition(Vector3 globalPosition)
-
409 {
-
410 return LocalToGridPosition(globalPosition - transform.position);
-
411 }
-
412
-
413 public Vector3 CellCenterGridPosition(int row, int column)
-
414 {
-
415 return new Vector3(CellSize.x * column, CellSize.y * row, 0) + 0.5f * CellSize;
-
416 }
-
417
-
418 public Vector3 CellCenterGlobalPosition(int row, int column)
-
419 {
-
420 return CellCenterLocalPosition(row, column) + transform.position;
-
421 }
-
422
-
423 public Vector3 CellCenterLocalPosition(int row, int column)
-
424 {
-
425 return GridToLocalPosition(CellCenterGridPosition(row, column));
-
426 }
-
427
-
428 public Vector2Int GridPositionToCellIndex(Vector3 position)
-
429 {
-
430 var row = Mathf.FloorToInt(position.y / CellSize.y);
-
431 var column = Mathf.FloorToInt(position.x / CellSize.x);
-
432 return new Vector2Int(row, column);
-
433 }
-
434
-
435 public Vector2Int LocalPositionToCellIndex(Vector3 position)
-
436 {
-
437 return GridPositionToCellIndex(LocalToGridPosition(position));
+
168 var cellLayer = layoutPack.Settings.CellLayer;
+
169 var triggeringLayers = layoutPack.Settings.TriggeringLayers;
+
170 return InstantiateRoom(prefab, parent, layoutPack, roomLayout, roomState, cellLayer, triggeringLayers, assignLayoutPosition);
+
171 }
+
172
+
173 public static RoomComponent InstantiateRoom(GameObject prefab, Transform parent,
+
174 LayoutPack layoutPack, Room roomLayout, RoomState roomState,
+
175 LayerMask cellLayer, LayerMask triggeringLayers, bool assignLayoutPosition)
+
176 {
+
177 var room = Instantiate(prefab, parent).GetComponent<RoomComponent>();
+
178 room.Initialize(layoutPack, roomLayout, roomState, cellLayer, triggeringLayers, assignLayoutPosition);
+
179 return room;
+
180 }
+
181
+
190 public bool Initialize(LayoutPack layoutPack, Room roomLayout, RoomState roomState,
+
191 LayerMask cellLayer, LayerMask triggeringLayers, bool assignLayoutPosition)
+
192 {
+
193 if (IsInitialized)
+
194 return false;
+
195
+
196 LayoutPack = layoutPack;
+
197 RoomLayout = roomLayout;
+
198 RoomState = roomState;
+
199
+
200 if (assignLayoutPosition)
+
201 MoveToLayoutPosition();
+
202
+
203 CreateCellAreas(cellLayer, triggeringLayers);
+
204 IsInitialized = true;
+
205 OnInitialize.Invoke();
+
206 return true;
+
207 }
+
208
+
209 private void MoveToLayoutPosition()
+
210 {
+
211 var x = CellSize.x * RoomLayout.Position.Y;
+
212 var y = CellSize.y * RoomLayout.Position.X;
+
213 var z = CellSize.z * RoomLayout.Position.Z;
+
214 transform.localPosition = GridToLocalPosition(new Vector3(x, y, z));
+
215 }
+
216
+
217 private void CreateCellAreas(LayerMask cellLayer, LayerMask triggeringLayers)
+
218 {
+
219 for (int i = 0; i < Rows; i++)
+
220 {
+
221 for (int j = 0; j < Columns; j++)
+
222 {
+
223 if (GetCellActivity(i, j))
+
224 CellArea.InstantiateCellArea(i, j, this, cellLayer, triggeringLayers);
+
225 }
+
226 }
+
227 }
+
228
+
229 public void SizeActiveCells()
+
230 {
+
231 while (ActiveCells.Count > Rows)
+
232 {
+
233 ActiveCells.RemoveAt(ActiveCells.Count - 1);
+
234 }
+
235
+
236 foreach (var row in ActiveCells)
+
237 {
+
238 while (row.Values.Count > Columns)
+
239 {
+
240 row.Values.RemoveAt(row.Values.Count - 1);
+
241 }
+
242
+
243 while (row.Values.Count < Columns)
+
244 {
+
245 row.Values.Add(true);
+
246 }
+
247 }
+
248
+
249 while (ActiveCells.Count < Rows)
+
250 {
+
251 ActiveCells.Add(new ActiveCellsRow(Columns, true));
+
252 }
+
253 }
+
254
+
255 public bool SetCellActivities(Vector2Int startIndex, Vector2Int endIndex, CellActivity activity)
+
256 {
+
257 if (activity == CellActivity.None || !CellIndexRangeExists(startIndex, endIndex))
+
258 return false;
+
259
+
260 var startRow = Mathf.Min(startIndex.x, endIndex.x);
+
261 var endRow = Mathf.Max(startIndex.x, endIndex.x);
+
262 var startColumn = Mathf.Min(startIndex.y, endIndex.y);
+
263 var endColumn = Mathf.Max(startIndex.y, endIndex.y);
+
264
+
265 for (int i = startRow; i <= endRow; i++)
+
266 {
+
267 for (int j = startColumn; j <= endColumn; j++)
+
268 {
+
269 SetCellActivity(i, j, activity);
+
270 }
+
271 }
+
272
+
273 return true;
+
274 }
+
275
+
276 public void SetCellActivity(int row, int column, CellActivity activity)
+
277 {
+
278 if (!CellIndexExists(row, column))
+
279 throw new System.IndexOutOfRangeException($"Index out of range: ({row}, {column})");
+
280
+
281 switch (activity)
+
282 {
+
283 case CellActivity.None:
+
284 break;
+
285 case CellActivity.Activate:
+
286 ActiveCells[row].Values[column] = true;
+
287 break;
+
288 case CellActivity.Deactivate:
+
289 ActiveCells[row].Values[column] = false;
+
290 break;
+
291 case CellActivity.Toggle:
+
292 ActiveCells[row].Values[column] = !ActiveCells[row].Values[column];
+
293 break;
+
294 default:
+
295 throw new System.NotImplementedException($"Unhandled cell activity: {activity}.");
+
296 }
+
297 }
+
298
+
299 public void SetCellActivity(int row, int column, bool activity)
+
300 {
+
301 if (!CellIndexExists(row, column))
+
302 throw new System.IndexOutOfRangeException($"Index out of range: ({row}, {column})");
+
303
+
304 ActiveCells[row].Values[column] = activity;
+
305 }
+
306
+
307 public bool GetCellActivity(int row, int column)
+
308 {
+
309 if (!CellIndexExists(row, column))
+
310 throw new System.IndexOutOfRangeException($"Index out of range: ({row}, {column})");
+
311
+
312 return ActiveCells[row].Values[column];
+
313 }
+
314
+
315 public bool CellIndexExists(int row, int column)
+
316 {
+
317 return (uint)row < (uint)Rows && (uint)column < (uint)Columns;
+
318 }
+
319
+
320 public bool CellIndexRangeExists(Vector2Int startIndex, Vector2Int endIndex)
+
321 {
+
322 return CellIndexExists(startIndex.x, startIndex.y) && CellIndexExists(endIndex.x, endIndex.y);
+
323 }
+
324
+
325 public int AutoAssign()
+
326 {
+
327 Size = Size;
+
328 var children = GetComponentsInChildren<CellChild>();
+
329
+
330 foreach (var child in children)
+
331 {
+
332 child.AutoAssign(this);
+
333 }
+
334
+
335 return children.Length;
+
336 }
+
337
+
338 public Quaternion GetCellViewDirection()
+
339 {
+
340 switch (RoomType)
+
341 {
+
342 case RoomType.TwoDimensional:
+
343 case RoomType.ThreeDimensionalXY:
+
344 return Quaternion.Euler(0, 0, 0);
+
345 case RoomType.ThreeDimensionalXZ:
+
346 return Quaternion.Euler(90, 0, 0);
+
347 default:
+
348 throw new System.ArgumentException($"Unhandled room type: {RoomType}.");
+
349 }
+
350 }
+
351
+
352 public Vector3 CenterGridPosition()
+
353 {
+
354 return new Vector3(Columns * CellSize.x, Rows * CellSize.y, CellSize.z) * 0.5f;
+
355 }
+
356
+
357 public Vector3 CenterLocalPosition()
+
358 {
+
359 return GridToLocalPosition(CenterGridPosition());
+
360 }
+
361
+
362 public Vector3 CenterGlobalPosition()
+
363 {
+
364 return CenterLocalPosition() + transform.position;
+
365 }
+
366
+
367 public Vector3 LocalCellSize()
+
368 {
+
369 switch (RoomType)
+
370 {
+
371 case RoomType.TwoDimensional:
+
372 case RoomType.ThreeDimensionalXY:
+
373 return CellSize;
+
374 case RoomType.ThreeDimensionalXZ:
+
375 return new Vector3(CellSize.x, CellSize.z, CellSize.y);
+
376 default:
+
377 throw new System.ArgumentException($"Unhandled room type: {RoomType}.");
+
378 }
+
379 }
+
380
+
381 public Vector3 GridToLocalPosition(Vector3 gridPosition)
+
382 {
+
383 switch (RoomType)
+
384 {
+
385 case RoomType.TwoDimensional:
+
386 case RoomType.ThreeDimensionalXY:
+
387 return new Vector3(gridPosition.x, -gridPosition.y, -gridPosition.z);
+
388 case RoomType.ThreeDimensionalXZ:
+
389 return new Vector3(gridPosition.x, gridPosition.z, -gridPosition.y);
+
390 default:
+
391 throw new System.ArgumentException($"Unhandled room type: {RoomType}.");
+
392 }
+
393 }
+
394
+
395 public Vector3 LocalToGridPosition(Vector3 localPosition)
+
396 {
+
397 switch (RoomType)
+
398 {
+
399 case RoomType.TwoDimensional:
+
400 case RoomType.ThreeDimensionalXY:
+
401 return new Vector3(localPosition.x, -localPosition.y, -localPosition.z);
+
402 case RoomType.ThreeDimensionalXZ:
+
403 return new Vector3(localPosition.x, -localPosition.z, localPosition.y);
+
404 default:
+
405 throw new System.ArgumentException($"Unhandled room type: {RoomType}.");
+
406 }
+
407 }
+
408
+
409 public Vector3 GlobalToGridPosition(Vector3 globalPosition)
+
410 {
+
411 return LocalToGridPosition(globalPosition - transform.position);
+
412 }
+
413
+
414 public Vector3 CellCenterGridPosition(int row, int column)
+
415 {
+
416 return new Vector3(CellSize.x * column, CellSize.y * row, 0) + 0.5f * CellSize;
+
417 }
+
418
+
419 public Vector3 CellCenterGlobalPosition(int row, int column)
+
420 {
+
421 return CellCenterLocalPosition(row, column) + transform.position;
+
422 }
+
423
+
424 public Vector3 CellCenterLocalPosition(int row, int column)
+
425 {
+
426 return GridToLocalPosition(CellCenterGridPosition(row, column));
+
427 }
+
428
+
429 public Vector2Int GridPositionToCellIndex(Vector3 position)
+
430 {
+
431 var row = Mathf.FloorToInt(position.y / CellSize.y);
+
432 var column = Mathf.FloorToInt(position.x / CellSize.x);
+
433
+
434 if (CellIndexExists(row, column))
+
435 return new Vector2Int(row, column);
+
436
+
437 return new Vector2Int(-1, -1);
438 }
439
-
440 public Vector2Int GlobalPositionToCellIndex(Vector3 position)
+
440 public Vector2Int LocalPositionToCellIndex(Vector3 position)
441 {
-
442 return LocalPositionToCellIndex(position - transform.position);
+
442 return GridPositionToCellIndex(LocalToGridPosition(position));
443 }
444
-
445 public RoomTemplate GetMMRoomTemplate(int id, string name)
+
445 public Vector2Int GlobalPositionToCellIndex(Vector3 position)
446 {
-
447 var cells = GetMMCells();
-
448 AddMMDoors(cells);
-
449 AddMMFeatures(cells);
-
450 var spots = GetMMCollectableSpots();
-
451 var template = new RoomTemplate(id, name, cells, spots);
-
452 template.Validate();
-
453 ValidateRoomFlags();
-
454 return template;
-
455 }
-
456
-
457 private Array2D<Cell> GetMMCells()
-
458 {
-
459 var cells = new Array2D<Cell>(Rows, Columns);
-
460
-
461 for (int i = 0; i < cells.Rows; i++)
-
462 {
-
463 for (int j = 0; j < cells.Columns; j++)
-
464 {
-
465 if (GetCellActivity(i, j))
-
466 cells[i, j] = Cell.New;
-
467 }
-
468 }
-
469
-
470 return cells;
-
471 }
-
472
-
473 private void AddMMDoors(Array2D<Cell> cells)
-
474 {
-
475 foreach (var door in GetComponentsInChildren<DoorComponent>())
-
476 {
-
477 var cell = cells[door.Row, door.Column];
-
478 cell.SetDoor(door.Direction, door.GetMMDoor());
-
479 }
-
480 }
-
481
-
482 private void AddMMFeatures(Array2D<Cell> cells)
-
483 {
-
484 foreach (var feature in GetComponentsInChildren<Feature>())
-
485 {
-
486 var cell = cells[feature.Row, feature.Column];
-
487 cell.AddFeature(feature.Name);
-
488 }
-
489 }
-
490
-
491 private Dictionary<int, CollectableSpot> GetMMCollectableSpots()
-
492 {
-
493 var spots = GetComponentsInChildren<CollectableSpotComponent>();
-
494 var result = new Dictionary<int, CollectableSpot>(spots.Length);
+
447 return LocalPositionToCellIndex(position - transform.position);
+
448 }
+
449
+
450 public RoomTemplate GetMMRoomTemplate(int id, string name)
+
451 {
+
452 var cells = GetMMCells();
+
453 AddMMDoors(cells);
+
454 AddMMFeatures(cells);
+
455 var spots = GetMMCollectableSpots();
+
456 var template = new RoomTemplate(id, name, cells, spots);
+
457 template.Validate();
+
458 ValidateRoomFlags();
+
459 return template;
+
460 }
+
461
+
462 private Array2D<Cell> GetMMCells()
+
463 {
+
464 var cells = new Array2D<Cell>(Rows, Columns);
+
465
+
466 for (int i = 0; i < cells.Rows; i++)
+
467 {
+
468 for (int j = 0; j < cells.Columns; j++)
+
469 {
+
470 if (GetCellActivity(i, j))
+
471 cells[i, j] = Cell.New;
+
472 }
+
473 }
+
474
+
475 return cells;
+
476 }
+
477
+
478 private void AddMMDoors(Array2D<Cell> cells)
+
479 {
+
480 foreach (var door in GetComponentsInChildren<DoorComponent>())
+
481 {
+
482 var cell = cells[door.Row, door.Column];
+
483 cell.SetDoor(door.Direction, door.GetMMDoor());
+
484 }
+
485 }
+
486
+
487 private void AddMMFeatures(Array2D<Cell> cells)
+
488 {
+
489 foreach (var feature in GetComponentsInChildren<Feature>())
+
490 {
+
491 var cell = cells[feature.Row, feature.Column];
+
492 cell.AddFeature(feature.Name);
+
493 }
+
494 }
495
-
496 foreach (var spot in spots)
-
497 {
-
498 result.Add(spot.Id, spot.GetMMCollectableSpot());
-
499 }
+
496 private Dictionary<int, CollectableSpot> GetMMCollectableSpots()
+
497 {
+
498 var spots = GetComponentsInChildren<CollectableSpotComponent>();
+
499 var result = new Dictionary<int, CollectableSpot>(spots.Length);
500
-
501 return result;
-
502 }
-
503
-
504 public void ValidateRoomFlags()
-
505 {
-
506 var set = new HashSet<int>();
-
507
-
508 foreach (var flag in GetComponentsInChildren<RoomFlag>())
-
509 {
-
510 if (!set.Add(flag.Id))
-
511 throw new DuplicateIdException($"Duplicate room flag ID {flag.Id} for object {flag}.");
-
512 }
-
513 }
-
514
-
515 public Vector2Int FindClosestActiveCellIndex(Vector3 position)
-
516 {
-
517 var fastIndex = GlobalPositionToCellIndex(position);
-
518
-
519 if (CellIndexExists(fastIndex.x, fastIndex.y) && GetCellActivity(fastIndex.x, fastIndex.y))
-
520 return fastIndex;
-
521
-
522 var index = Vector2Int.zero;
-
523 var minDistance = float.PositiveInfinity;
-
524 var gridPosition = GlobalToGridPosition(position);
-
525
-
526 for (int i = 0; i < Rows; i++)
-
527 {
-
528 for (int j = 0; j < Columns; j++)
-
529 {
-
530 if (GetCellActivity(i, j))
-
531 {
-
532 Vector2 delta = CellCenterGridPosition(i, j) - gridPosition;
-
533 var distance = delta.sqrMagnitude;
-
534
-
535 if (distance < minDistance)
-
536 {
-
537 minDistance = distance;
-
538 index = new Vector2Int(i, j);
-
539 }
-
540 }
-
541 }
-
542 }
-
543
-
544 return index;
-
545 }
-
546
-
547 public DoorDirection FindClosestDoorDirection(int row, int column, Vector3 position)
-
548 {
-
549 System.Span<DoorDirection> directions = stackalloc DoorDirection[]
-
550 {
-
551 DoorDirection.North,
-
552 DoorDirection.East,
-
553 DoorDirection.South,
-
554 DoorDirection.West,
-
555 DoorDirection.Top,
-
556 DoorDirection.Bottom,
-
557 };
-
558
-
559 System.Span<Vector3> vectors = stackalloc Vector3[]
-
560 {
-
561 new Vector3(0, -1, 0),
-
562 new Vector3(1, 0, 0),
-
563 new Vector3(0, 1, 0),
-
564 new Vector3(-1, 0, 0),
-
565 new Vector3(0, 0, 1),
-
566 new Vector3(0, 0, -1),
-
567 };
-
568
-
569 var index = 0;
-
570 var maxDistance = float.NegativeInfinity;
-
571 var count = RoomType == RoomType.TwoDimensional ? 4 : vectors.Length;
-
572 var delta = GlobalToGridPosition(position) - CellCenterGridPosition(row, column);
-
573 delta.x /= CellSize.x;
-
574 delta.y /= CellSize.y;
-
575 delta.z /= CellSize.z;
-
576
-
577 for (int i = 0; i < count; i++)
-
578 {
-
579 var distance = Vector2.Dot(delta, vectors[i]);
-
580
-
581 if (distance > maxDistance)
-
582 {
-
583 maxDistance = distance;
-
584 index = i;
-
585 }
-
586 }
-
587
-
588 return directions[index];
-
589 }
-
590 }
-
591}
+
501 foreach (var spot in spots)
+
502 {
+
503 result.Add(spot.Id, spot.GetMMCollectableSpot());
+
504 }
+
505
+
506 return result;
+
507 }
+
508
+
509 public void ValidateRoomFlags()
+
510 {
+
511 var set = new HashSet<int>();
+
512
+
513 foreach (var flag in GetComponentsInChildren<RoomFlag>())
+
514 {
+
515 if (!set.Add(flag.Id))
+
516 throw new DuplicateIdException($"Duplicate room flag ID {flag.Id} for object {flag}.");
+
517 }
+
518 }
+
519
+
520 public Vector2Int FindClosestActiveCellIndex(Vector3 position)
+
521 {
+
522 var fastIndex = GlobalPositionToCellIndex(position);
+
523
+
524 if (CellIndexExists(fastIndex.x, fastIndex.y) && GetCellActivity(fastIndex.x, fastIndex.y))
+
525 return fastIndex;
+
526
+
527 var index = Vector2Int.zero;
+
528 var minDistance = float.PositiveInfinity;
+
529 var gridPosition = GlobalToGridPosition(position);
+
530
+
531 for (int i = 0; i < Rows; i++)
+
532 {
+
533 for (int j = 0; j < Columns; j++)
+
534 {
+
535 if (GetCellActivity(i, j))
+
536 {
+
537 Vector2 delta = CellCenterGridPosition(i, j) - gridPosition;
+
538 var distance = delta.sqrMagnitude;
+
539
+
540 if (distance < minDistance)
+
541 {
+
542 minDistance = distance;
+
543 index = new Vector2Int(i, j);
+
544 }
+
545 }
+
546 }
+
547 }
+
548
+
549 return index;
+
550 }
+
551
+
552 public DoorDirection FindClosestDoorDirection(int row, int column, Vector3 position)
+
553 {
+
554 System.Span<DoorDirection> directions = stackalloc DoorDirection[]
+
555 {
+
556 DoorDirection.North,
+
557 DoorDirection.East,
+
558 DoorDirection.South,
+
559 DoorDirection.West,
+
560 DoorDirection.Top,
+
561 DoorDirection.Bottom,
+
562 };
+
563
+
564 System.Span<Vector3> vectors = stackalloc Vector3[]
+
565 {
+
566 new Vector3(0, -1, 0),
+
567 new Vector3(1, 0, 0),
+
568 new Vector3(0, 1, 0),
+
569 new Vector3(-1, 0, 0),
+
570 new Vector3(0, 0, 1),
+
571 new Vector3(0, 0, -1),
+
572 };
+
573
+
574 var index = 0;
+
575 var maxDistance = float.NegativeInfinity;
+
576 var count = RoomType == RoomType.TwoDimensional ? 4 : vectors.Length;
+
577 var delta = GlobalToGridPosition(position) - CellCenterGridPosition(row, column);
+
578 delta.x /= CellSize.x;
+
579 delta.y /= CellSize.y;
+
580 delta.z /= CellSize.z;
+
581
+
582 for (int i = 0; i < count; i++)
+
583 {
+
584 var distance = Vector3.Dot(delta, vectors[i]);
+
585
+
586 if (distance > maxDistance)
+
587 {
+
588 maxDistance = distance;
+
589 index = i;
+
590 }
+
591 }
+
592
+
593 return directions[index];
+
594 }
+
595 }
+
596}
MPewsey.ManiaMapUnity.Exceptions.RoomNotInitializedException
Raised when a room has not been initialized.
Definition: RoomNotInitializedException.cs:9
MPewsey.ManiaMapUnity.LayoutPack
A manager for maintaining the current map data and state.
Definition: LayoutPack.cs:12
MPewsey.ManiaMapUnity.RoomComponent
A component for creating a room.
Definition: RoomComponent.cs:17
-
MPewsey.ManiaMapUnity.RoomComponent.Initialize
bool Initialize(LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayer, bool assignLayoutPosition)
Initializes the room and its registered children.
Definition: RoomComponent.cs:191
MPewsey.ManiaMapUnity.RoomComponent.RoomLayout
Room RoomLayout
The room data.
Definition: RoomComponent.cs:81
MPewsey.ManiaMapUnity.RoomComponent.OnInitialize
UnityEvent OnInitialize
An event invoked when the room is initialized.
Definition: RoomComponent.cs:54
+
MPewsey.ManiaMapUnity.RoomComponent.Initialize
bool Initialize(LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayers, bool assignLayoutPosition)
Initializes the room and its registered children.
Definition: RoomComponent.cs:190
MPewsey.ManiaMapUnity.RoomComponent.LayoutPack
LayoutPack LayoutPack
The layout pack.
Definition: RoomComponent.cs:76
MPewsey.ManiaMapUnity.RoomComponent.Size
Vector2Int Size
The size of the room grid.
Definition: RoomComponent.cs:35
MPewsey.ManiaMapUnity.RoomComponent.CellSize
Vector3 CellSize
The size of each cell.
Definition: RoomComponent.cs:42
diff --git a/_room_flag_8cs_source.html b/_room_flag_8cs_source.html index e9a18a7a..ce87937e 100644 --- a/_room_flag_8cs_source.html +++ b/_room_flag_8cs_source.html @@ -118,7 +118,7 @@
23 Id = Rand.AutoAssignId(Id);
24 }
25
-
29 public bool Exists()
+
29 public bool FlagIsSet()
30 {
31 return Room.RoomState.Flags.Contains(Id);
32 }
@@ -148,9 +148,9 @@
MPewsey.ManiaMapUnity.RoomComponent
A component for creating a room.
Definition: RoomComponent.cs:17
MPewsey.ManiaMapUnity.RoomComponent.RoomState
RoomState RoomState
The room state.
Definition: RoomComponent.cs:86
MPewsey.ManiaMapUnity.RoomFlag
A unique room flag.
Definition: RoomFlag.cs:9
+
MPewsey.ManiaMapUnity.RoomFlag.FlagIsSet
bool FlagIsSet()
True if the flag is set.
Definition: RoomFlag.cs:29
MPewsey.ManiaMapUnity.RoomFlag.RemoveFlag
bool RemoveFlag()
Removes the flag. Returns true if the flag was removed.
Definition: RoomFlag.cs:45
MPewsey.ManiaMapUnity.RoomFlag.AutoAssign
override void AutoAssign(RoomComponent room)
If auto assign is enabled, assigns the closest cell to the object.
Definition: RoomFlag.cs:20
-
MPewsey.ManiaMapUnity.RoomFlag.Exists
bool Exists()
True if the flag is set.
Definition: RoomFlag.cs:29
MPewsey.ManiaMapUnity.RoomFlag.ToggleFlag
bool ToggleFlag()
Toggles the flag. Returns true if the flag is now set. Otherwise, returns false.
Definition: RoomFlag.cs:53
MPewsey.ManiaMapUnity.RoomFlag.SetFlag
bool SetFlag()
Sets the flag. Returns true if the flag was not already set.
Definition: RoomFlag.cs:37
MPewsey.ManiaMapUnity.RoomFlag.Id
int Id
The unique flag ID.
Definition: RoomFlag.cs:18
diff --git a/_room_template_database_8cs_source.html b/_room_template_database_8cs_source.html index d7f0add2..e943267d 100644 --- a/_room_template_database_8cs_source.html +++ b/_room_template_database_8cs_source.html @@ -187,79 +187,96 @@
89 {
90 var prefab = GetRoomTemplate(room.Template.Id).GetAssetReference();
91 var handle = RoomComponent.InstantiateRoomAsync(room.Id, layoutPack, prefab, parent, true);
-
92 var roomInstance = await handle.Task;
-
93 result.Add(roomInstance.GetComponent<RoomComponent>());
+
92 handle.Completed += handle => OnInstantiationComplete(handle, result);
+
93 await handle.Task;
94 }
95
-
96 return result;
-
97 }
-
98
-
99 public List<RoomComponent> InstantiateAllRooms(LayoutPack layoutPack, Transform parent = null)
-
100 {
-
101 var result = new List<RoomComponent>(layoutPack.Layout.Rooms.Count);
-
102
-
103 foreach (var room in layoutPack.Layout.Rooms.Values)
-
104 {
-
105 var prefab = GetRoomTemplate(room.Template.Id).GetAssetReference();
-
106 var handle = RoomComponent.InstantiateRoomAsync(room.Id, layoutPack, prefab, parent, true);
-
107 var roomInstance = handle.WaitForCompletion();
-
108 result.Add(roomInstance.GetComponent<RoomComponent>());
-
109 }
-
110
-
111 return result;
-
112 }
-
113
-
114 public async Task<List<RoomComponent>> InstantiateRoomsAsync(LayoutPack layoutPack, Transform parent = null, int? z = null)
-
115 {
-
116 z ??= layoutPack.Layout.Rooms.Values.Select(x => x.Position.Z).First();
-
117 var result = new List<RoomComponent>();
-
118
-
119 foreach (var room in layoutPack.Layout.Rooms.Values)
-
120 {
-
121 if (room.Position.Z == z)
-
122 {
-
123 var prefab = GetRoomTemplate(room.Template.Id).GetAssetReference();
-
124 var handle = RoomComponent.InstantiateRoomAsync(room.Id, layoutPack, prefab, parent, true);
-
125 var roomInstance = await handle.Task;
-
126 result.Add(roomInstance.GetComponent<RoomComponent>());
-
127 }
-
128 }
-
129
-
130 return result;
-
131 }
-
132
-
133 public List<RoomComponent> InstantiateRooms(LayoutPack layoutPack, Transform parent = null, int? z = null)
-
134 {
-
135 z ??= layoutPack.Layout.Rooms.Values.Select(x => x.Position.Z).First();
-
136 var result = new List<RoomComponent>();
-
137
-
138 foreach (var room in layoutPack.Layout.Rooms.Values)
-
139 {
-
140 if (room.Position.Z == z)
-
141 {
-
142 var prefab = GetRoomTemplate(room.Template.Id).GetAssetReference();
-
143 var handle = RoomComponent.InstantiateRoomAsync(room.Id, layoutPack, prefab, parent, true);
-
144 var roomInstance = handle.WaitForCompletion();
-
145 result.Add(roomInstance.GetComponent<RoomComponent>());
-
146 }
-
147 }
-
148
-
149 return result;
-
150 }
-
151
-
152 public AsyncOperationHandle<GameObject> InstantiateRoomAsync(Uid id, LayoutPack layoutPack, Transform parent = null, bool assignLayoutPosition = false)
-
153 {
-
154 var prefab = GetRoomTemplate(id, layoutPack).GetAssetReference();
-
155 return RoomComponent.InstantiateRoomAsync(id, layoutPack, prefab, parent, assignLayoutPosition);
-
156 }
-
157
-
158 public RoomComponent InstantiateRoom(Uid id, LayoutPack layoutPack, Transform parent = null, bool assignLayoutPosition = false)
-
159 {
-
160 var result = InstantiateRoomAsync(id, layoutPack, parent, assignLayoutPosition).WaitForCompletion();
-
161 return result.GetComponent<RoomComponent>();
-
162 }
-
163 }
-
164}
+
96 ActivateRooms(result);
+
97 return result;
+
98 }
+
99
+
100 public List<RoomComponent> InstantiateAllRooms(LayoutPack layoutPack, Transform parent = null)
+
101 {
+
102 var result = new List<RoomComponent>(layoutPack.Layout.Rooms.Count);
+
103
+
104 foreach (var room in layoutPack.Layout.Rooms.Values)
+
105 {
+
106 var prefab = GetRoomTemplate(room.Template.Id).GetAssetReference();
+
107 var handle = RoomComponent.InstantiateRoomAsync(room.Id, layoutPack, prefab, parent, true);
+
108 var roomInstance = handle.WaitForCompletion();
+
109 result.Add(roomInstance.GetComponent<RoomComponent>());
+
110 }
+
111
+
112 return result;
+
113 }
+
114
+
115 public async Task<List<RoomComponent>> InstantiateRoomsAsync(LayoutPack layoutPack, Transform parent = null, int? z = null)
+
116 {
+
117 z ??= layoutPack.Layout.Rooms.Values.Select(x => x.Position.Z).First();
+
118 var result = new List<RoomComponent>();
+
119
+
120 foreach (var room in layoutPack.Layout.Rooms.Values)
+
121 {
+
122 if (room.Position.Z == z)
+
123 {
+
124 var prefab = GetRoomTemplate(room.Template.Id).GetAssetReference();
+
125 var handle = RoomComponent.InstantiateRoomAsync(room.Id, layoutPack, prefab, parent, true);
+
126 handle.Completed += handle => OnInstantiationComplete(handle, result);
+
127 await handle.Task;
+
128 }
+
129 }
+
130
+
131 ActivateRooms(result);
+
132 return result;
+
133 }
+
134
+
135 private static void ActivateRooms(List<RoomComponent> rooms)
+
136 {
+
137 foreach (var room in rooms)
+
138 {
+
139 room.gameObject.SetActive(true);
+
140 }
+
141 }
+
142
+
143 private static void OnInstantiationComplete(AsyncOperationHandle<GameObject> handle, List<RoomComponent> results)
+
144 {
+
145 var room = handle.Result.GetComponent<RoomComponent>();
+
146 room.gameObject.SetActive(false);
+
147 results.Add(room);
+
148 }
+
149
+
150 public List<RoomComponent> InstantiateRooms(LayoutPack layoutPack, Transform parent = null, int? z = null)
+
151 {
+
152 z ??= layoutPack.Layout.Rooms.Values.Select(x => x.Position.Z).First();
+
153 var result = new List<RoomComponent>();
+
154
+
155 foreach (var room in layoutPack.Layout.Rooms.Values)
+
156 {
+
157 if (room.Position.Z == z)
+
158 {
+
159 var prefab = GetRoomTemplate(room.Template.Id).GetAssetReference();
+
160 var handle = RoomComponent.InstantiateRoomAsync(room.Id, layoutPack, prefab, parent, true);
+
161 var roomInstance = handle.WaitForCompletion();
+
162 result.Add(roomInstance.GetComponent<RoomComponent>());
+
163 }
+
164 }
+
165
+
166 return result;
+
167 }
+
168
+
169 public AsyncOperationHandle<GameObject> InstantiateRoomAsync(Uid id, LayoutPack layoutPack, Transform parent = null, bool assignLayoutPosition = false)
+
170 {
+
171 var prefab = GetRoomTemplate(id, layoutPack).GetAssetReference();
+
172 return RoomComponent.InstantiateRoomAsync(id, layoutPack, prefab, parent, assignLayoutPosition);
+
173 }
+
174
+
175 public RoomComponent InstantiateRoom(Uid id, LayoutPack layoutPack, Transform parent = null, bool assignLayoutPosition = false)
+
176 {
+
177 var result = InstantiateRoomAsync(id, layoutPack, parent, assignLayoutPosition).WaitForCompletion();
+
178 return result.GetComponent<RoomComponent>();
+
179 }
+
180 }
+
181}
MPewsey.ManiaMapUnity.LayoutPack
A manager for maintaining the current map data and state.
Definition: LayoutPack.cs:12
MPewsey.ManiaMapUnity.LayoutPack.Layout
Layout Layout
The layout.
Definition: LayoutPack.cs:16
MPewsey.ManiaMapUnity.RoomComponent
A component for creating a room.
Definition: RoomComponent.cs:17
diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area-members.html b/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area-members.html index 07b865b7..3e35310c 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area-members.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area-members.html @@ -104,7 +104,7 @@ - +
Column (defined in CellArea)CellArea
Initialize(int row, int column, RoomComponent room) (defined in CellArea)CellAreaprotected
InstantiateCellArea(int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayer) (defined in CellArea)CellAreastatic
InstantiateCellArea(int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayers) (defined in CellArea)CellAreastatic
Room (defined in CellArea)CellArea
Row (defined in CellArea)CellArea
diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area.html b/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area.html index 53551d33..963ae79b 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area.html @@ -117,8 +117,8 @@ - - + +

Static Public Member Functions

static CellArea InstantiateCellArea (int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayer)
 
static CellArea InstantiateCellArea (int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayers)
 
@@ -182,8 +182,8 @@

-

◆ InstantiateCellArea()

+ +

◆ InstantiateCellArea()

@@ -219,7 +219,7 @@

- + diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area2_d-members.html b/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area2_d-members.html index b7388e1a..f06f22a1 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area2_d-members.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area2_d-members.html @@ -106,8 +106,8 @@ - - + + diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area2_d.html b/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area2_d.html index c7809e38..ccf82e82 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area2_d.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area2_d.html @@ -116,11 +116,11 @@

Protected Member Functions

LayerMask triggeringLayer triggeringLayers 
Collider (defined in CellArea2D)CellArea2D
Column (defined in CellArea)CellArea
Initialize(int row, int column, RoomComponent room) (defined in CellArea)CellAreaprotected
InstantiateCellArea(int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayer) (defined in CellArea)CellAreastatic
InstantiateCellArea2D(int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayer) (defined in CellArea2D)CellArea2Dstatic
InstantiateCellArea(int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayers) (defined in CellArea)CellAreastatic
InstantiateCellArea2D(int row, int column, RoomComponent room, int cellLayer, LayerMask triggeringLayers) (defined in CellArea2D)CellArea2Dstatic
OnTriggerEnter2D(Collider2D collision) (defined in CellArea2D)CellArea2Dprivate
OnTriggerExit2D(Collider2D collision) (defined in CellArea2D)CellArea2Dprivate
Room (defined in CellArea)CellArea
- - + + - - + +

Static Public Member Functions

static CellArea2D InstantiateCellArea2D (int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayer)
 
static CellArea2D InstantiateCellArea2D (int row, int column, RoomComponent room, int cellLayer, LayerMask triggeringLayers)
 
- Static Public Member Functions inherited from CellArea
static CellArea InstantiateCellArea (int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayer)
 
static CellArea InstantiateCellArea (int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayers)
 
@@ -180,8 +180,8 @@

-

◆ InstantiateCellArea2D()

+ +

◆ InstantiateCellArea2D()

@@ -210,14 +210,14 @@

- + - + diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area3_d-members.html b/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area3_d-members.html index fae5c122..7d4d92ec 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area3_d-members.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area3_d-members.html @@ -106,10 +106,10 @@ - - - - + + + +

Properties

LayerMask int  cellLayer,
LayerMask triggeringLayer triggeringLayers 
Collider (defined in CellArea3D)CellArea3D
Column (defined in CellArea)CellArea
Initialize(int row, int column, RoomComponent room) (defined in CellArea)CellAreaprotected
InstantiateCellArea(int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayer) (defined in CellArea)CellAreastatic
InstantiateCellArea3D(int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayer) (defined in CellArea3D)CellArea3Dstatic
OnTriggerEnter2D(Collider2D collision) (defined in CellArea3D)CellArea3Dprivate
OnTriggerExit2D(Collider2D collision) (defined in CellArea3D)CellArea3Dprivate
InstantiateCellArea(int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayers) (defined in CellArea)CellAreastatic
InstantiateCellArea3D(int row, int column, RoomComponent room, int cellLayer, LayerMask triggeringLayers) (defined in CellArea3D)CellArea3Dstatic
OnTriggerEnter(Collider collision) (defined in CellArea3D)CellArea3Dprivate
OnTriggerExit(Collider collision) (defined in CellArea3D)CellArea3Dprivate
Room (defined in CellArea)CellArea
Row (defined in CellArea)CellArea
diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area3_d.html b/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area3_d.html index 76d11bd7..ee15f31d 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area3_d.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_cell_area3_d.html @@ -116,11 +116,11 @@ - - + + - - + +

Static Public Member Functions

static CellArea3D InstantiateCellArea3D (int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayer)
 
static CellArea3D InstantiateCellArea3D (int row, int column, RoomComponent room, int cellLayer, LayerMask triggeringLayers)
 
- Static Public Member Functions inherited from CellArea
static CellArea InstantiateCellArea (int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayer)
 
static CellArea InstantiateCellArea (int row, int column, RoomComponent room, LayerMask cellLayer, LayerMask triggeringLayers)
 
@@ -138,10 +138,10 @@ Private Member Functions - - - - + + + +

Properties

void Awake ()
 
void OnTriggerEnter2D (Collider2D collision)
 
void OnTriggerExit2D (Collider2D collision)
 
void OnTriggerEnter (Collider collision)
 
void OnTriggerExit (Collider collision)
 
@@ -180,8 +180,8 @@

-

◆ InstantiateCellArea3D()

+ +

◆ InstantiateCellArea3D()

@@ -210,14 +210,14 @@

- + - + @@ -236,8 +236,8 @@

-

◆ OnTriggerEnter2D()

+ +

◆ OnTriggerEnter()

@@ -246,9 +246,9 @@

Additional Inherited Members

LayerMask int  cellLayer,
LayerMask triggeringLayer triggeringLayers 
- + - + @@ -264,8 +264,8 @@

-

◆ OnTriggerExit2D()

+ +

◆ OnTriggerExit()

@@ -274,9 +274,9 @@

void OnTriggerEnter2D void OnTriggerEnter (Collider2D Collider  collision)
- + - + diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_mania_map_settings-members.html b/class_m_pewsey_1_1_mania_map_unity_1_1_mania_map_settings-members.html index 612cd88f..6586ba81 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_mania_map_settings-members.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_mania_map_settings-members.html @@ -103,10 +103,10 @@

This is the complete list of members for ManiaMapSettings, including all inherited members.

void OnTriggerExit2D void OnTriggerExit (Collider2D Collider  collision)
- + - +
_cellLayer (defined in ManiaMapSettings)ManiaMapSettingsprivate
_triggeringLayer (defined in ManiaMapSettings)ManiaMapSettingsprivate
_triggeringLayers (defined in ManiaMapSettings)ManiaMapSettingsprivate
CellLayer (defined in ManiaMapSettings)ManiaMapSettings
LoadSettings()ManiaMapSettingsstatic
TriggeringLayer (defined in ManiaMapSettings)ManiaMapSettings
TriggeringLayers (defined in ManiaMapSettings)ManiaMapSettings
diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_mania_map_settings.html b/class_m_pewsey_1_1_mania_map_unity_1_1_mania_map_settings.html index ffe6c5bd..7fc018ff 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_mania_map_settings.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_mania_map_settings.html @@ -122,17 +122,17 @@ - - - - + + + +

Properties

LayerMask CellLayer [getset]
 
LayerMask TriggeringLayer [getset]
 
int CellLayer [getset]
 
LayerMask TriggeringLayers [getset]
 
- - - - + + + +

Private Attributes

LayerMask _cellLayer
 
LayerMask _triggeringLayer
 
int _cellLayer
 
LayerMask _triggeringLayers
 

Detailed Description

Contains global settings used by Mania Map components.

@@ -169,8 +169,8 @@

Member Data Documentation

- -

◆ _cellLayer

+ +

◆ _cellLayer

@@ -179,7 +179,7 @@

- +
LayerMask _cellLayerint _cellLayer
@@ -193,8 +193,8 @@

-

◆ _triggeringLayer

+ +

◆ _triggeringLayers

@@ -203,7 +203,7 @@

- +
LayerMask _triggeringLayerLayerMask _triggeringLayers
@@ -218,8 +218,8 @@

Property Documentation

- -

◆ CellLayer

+ +

◆ CellLayer

@@ -228,7 +228,7 @@

- +
LayerMask CellLayerint CellLayer
@@ -242,8 +242,8 @@

-

◆ TriggeringLayer

+ +

◆ TriggeringLayers

@@ -252,7 +252,7 @@

- +
LayerMask TriggeringLayerLayerMask TriggeringLayers
diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_room_component-members.html b/class_m_pewsey_1_1_mania_map_unity_1_1_room_component-members.html index 86912d2f..53acca53 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_room_component-members.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_room_component-members.html @@ -126,7 +126,7 @@ CenterGridPosition() (defined in
RoomComponent)RoomComponent CenterLocalPosition() (defined in RoomComponent)RoomComponent Columns (defined in RoomComponent)RoomComponent - CreateCellAreas(LayerMask cellLayer, LayerMask triggeringLayer) (defined in RoomComponent)RoomComponentprivate + CreateCellAreas(LayerMask cellLayer, LayerMask triggeringLayers) (defined in RoomComponent)RoomComponentprivate DrawCells(Color fillColor, Color lineColor, bool activity) (defined in RoomComponent)RoomComponentprivate FindClosestActiveCellIndex(Vector3 position) (defined in RoomComponent)RoomComponent FindClosestDoorDirection(int row, int column, Vector3 position) (defined in RoomComponent)RoomComponent @@ -139,11 +139,11 @@ GlobalToGridPosition(Vector3 globalPosition) (defined in RoomComponent)RoomComponent GridPositionToCellIndex(Vector3 position) (defined in RoomComponent)RoomComponent GridToLocalPosition(Vector3 gridPosition) (defined in RoomComponent)RoomComponent - Initialize(LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayer, bool assignLayoutPosition)RoomComponent + Initialize(LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayers, bool assignLayoutPosition)RoomComponent InstantiateRoom(Uid id, LayoutPack layoutPack, GameObject prefab, Transform parent=null, bool assignLayoutPosition=false) (defined in RoomComponent)RoomComponentstatic - InstantiateRoom(GameObject prefab, Transform parent, LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayer, bool assignLayoutPosition) (defined in RoomComponent)RoomComponentstatic + InstantiateRoom(GameObject prefab, Transform parent, LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayers, bool assignLayoutPosition) (defined in RoomComponent)RoomComponentstatic InstantiateRoomAsync(Uid id, LayoutPack layoutPack, AssetReferenceGameObject prefab, Transform parent=null, bool assignLayoutPosition=false) (defined in RoomComponent)RoomComponentstatic - InstantiateRoomAsync(AssetReferenceGameObject prefab, Transform parent, LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayer, bool assignLayoutPosition) (defined in RoomComponent)RoomComponentstatic + InstantiateRoomAsync(AssetReferenceGameObject prefab, Transform parent, LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayers, bool assignLayoutPosition) (defined in RoomComponent)RoomComponentstatic IsInitializedRoomComponent LayoutPackRoomComponent LocalCellSize() (defined in RoomComponent)RoomComponent diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html b/class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html index 0e99d424..3a2e09dd 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html @@ -154,9 +154,9 @@   Vector3 GridToLocalPosition (Vector3 gridPosition)   -bool Initialize (LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayer, bool assignLayoutPosition) - Initializes the room and its registered children. More...
-  +bool Initialize (LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayers, bool assignLayoutPosition) + Initializes the room and its registered children. More...
+  Vector3 LocalCellSize ()   Vector2Int LocalPositionToCellIndex (Vector3 position) @@ -176,12 +176,12 @@ - - + + - - + +

Static Public Member Functions

static RoomComponent InstantiateRoom (GameObject prefab, Transform parent, LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayer, bool assignLayoutPosition)
 
static RoomComponent InstantiateRoom (GameObject prefab, Transform parent, LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayers, bool assignLayoutPosition)
 
static RoomComponent InstantiateRoom (Uid id, LayoutPack layoutPack, GameObject prefab, Transform parent=null, bool assignLayoutPosition=false)
 
static AsyncOperationHandle< GameObject > InstantiateRoomAsync (AssetReferenceGameObject prefab, Transform parent, LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayer, bool assignLayoutPosition)
 
static AsyncOperationHandle< GameObject > InstantiateRoomAsync (AssetReferenceGameObject prefab, Transform parent, LayoutPack layoutPack, Room roomLayout, RoomState roomState, LayerMask cellLayer, LayerMask triggeringLayers, bool assignLayoutPosition)
 
static AsyncOperationHandle< GameObject > InstantiateRoomAsync (Uid id, LayoutPack layoutPack, AssetReferenceGameObject prefab, Transform parent=null, bool assignLayoutPosition=false)
 
@@ -233,8 +233,8 @@ - - + + @@ -304,7 +304,7 @@

-

Definition at line 473 of file RoomComponent.cs.

+

Definition at line 478 of file RoomComponent.cs.

@@ -332,7 +332,7 @@

-

Definition at line 482 of file RoomComponent.cs.

+

Definition at line 487 of file RoomComponent.cs.

@@ -351,7 +351,7 @@

-

Definition at line 324 of file RoomComponent.cs.

+

Definition at line 325 of file RoomComponent.cs.

@@ -381,7 +381,7 @@

-

Definition at line 418 of file RoomComponent.cs.

+

Definition at line 419 of file RoomComponent.cs.

@@ -411,7 +411,7 @@

-

Definition at line 413 of file RoomComponent.cs.

+

Definition at line 414 of file RoomComponent.cs.

@@ -441,7 +441,7 @@

-

Definition at line 423 of file RoomComponent.cs.

+

Definition at line 424 of file RoomComponent.cs.

@@ -471,7 +471,7 @@

-

Definition at line 314 of file RoomComponent.cs.

+

Definition at line 315 of file RoomComponent.cs.

@@ -501,7 +501,7 @@

-

Definition at line 319 of file RoomComponent.cs.

+

Definition at line 320 of file RoomComponent.cs.

@@ -520,7 +520,7 @@

-

Definition at line 361 of file RoomComponent.cs.

+

Definition at line 362 of file RoomComponent.cs.

@@ -539,7 +539,7 @@

-

Definition at line 351 of file RoomComponent.cs.

+

Definition at line 352 of file RoomComponent.cs.

@@ -558,12 +558,12 @@

-

Definition at line 356 of file RoomComponent.cs.

+

Definition at line 357 of file RoomComponent.cs.

- -

◆ CreateCellAreas()

+ +

◆ CreateCellAreas()

@@ -581,7 +581,7 @@

- + @@ -596,7 +596,7 @@

-

Definition at line 216 of file RoomComponent.cs.

+

Definition at line 217 of file RoomComponent.cs.

@@ -660,7 +660,7 @@

-

Definition at line 515 of file RoomComponent.cs.

+

Definition at line 520 of file RoomComponent.cs.

@@ -696,7 +696,7 @@

-

Definition at line 547 of file RoomComponent.cs.

+

Definition at line 552 of file RoomComponent.cs.

@@ -726,7 +726,7 @@

-

Definition at line 306 of file RoomComponent.cs.

+

Definition at line 307 of file RoomComponent.cs.

@@ -745,7 +745,7 @@

-

Definition at line 337 of file RoomComponent.cs.

+

Definition at line 338 of file RoomComponent.cs.

@@ -772,7 +772,7 @@

-

Definition at line 457 of file RoomComponent.cs.

+

Definition at line 462 of file RoomComponent.cs.

@@ -799,7 +799,7 @@

-

Definition at line 491 of file RoomComponent.cs.

+

Definition at line 496 of file RoomComponent.cs.

@@ -829,7 +829,7 @@

-

Definition at line 445 of file RoomComponent.cs.

+

Definition at line 450 of file RoomComponent.cs.

@@ -849,7 +849,7 @@

-

Definition at line 440 of file RoomComponent.cs.

+

Definition at line 445 of file RoomComponent.cs.

@@ -869,7 +869,7 @@

-

Definition at line 408 of file RoomComponent.cs.

+

Definition at line 409 of file RoomComponent.cs.

@@ -889,7 +889,7 @@

-

Definition at line 428 of file RoomComponent.cs.

+

Definition at line 429 of file RoomComponent.cs.

@@ -909,12 +909,12 @@

-

Definition at line 380 of file RoomComponent.cs.

+

Definition at line 381 of file RoomComponent.cs.

- -

◆ Initialize()

+ +

◆ Initialize()

@@ -947,7 +947,7 @@

- + @@ -975,12 +975,12 @@

Definition at line 191 of file RoomComponent.cs.

+

Definition at line 190 of file RoomComponent.cs.

- -

◆ InstantiateRoom() [1/2]

+ +

◆ InstantiateRoom() [1/2]

@@ -1028,7 +1028,7 @@

- + @@ -1049,7 +1049,7 @@

-

Definition at line 174 of file RoomComponent.cs.

+

Definition at line 173 of file RoomComponent.cs.

@@ -1109,8 +1109,8 @@

-

◆ InstantiateRoomAsync() [1/2]

+ +

◆ InstantiateRoomAsync() [1/2]

@@ -1158,7 +1158,7 @@

- + @@ -1254,7 +1254,7 @@

-

Definition at line 366 of file RoomComponent.cs.

+

Definition at line 367 of file RoomComponent.cs.

@@ -1274,7 +1274,7 @@

-

Definition at line 435 of file RoomComponent.cs.

+

Definition at line 440 of file RoomComponent.cs.

@@ -1294,7 +1294,7 @@

-

Definition at line 394 of file RoomComponent.cs.

+

Definition at line 395 of file RoomComponent.cs.

@@ -1321,7 +1321,7 @@

-

Definition at line 210 of file RoomComponent.cs.

+

Definition at line 209 of file RoomComponent.cs.

@@ -1411,7 +1411,7 @@

-

Definition at line 254 of file RoomComponent.cs.

+

Definition at line 255 of file RoomComponent.cs.

@@ -1447,7 +1447,7 @@

-

Definition at line 298 of file RoomComponent.cs.

+

Definition at line 299 of file RoomComponent.cs.

@@ -1483,7 +1483,7 @@

-

Definition at line 275 of file RoomComponent.cs.

+

Definition at line 276 of file RoomComponent.cs.

@@ -1540,7 +1540,7 @@

-

Definition at line 228 of file RoomComponent.cs.

+

Definition at line 229 of file RoomComponent.cs.

@@ -1586,7 +1586,7 @@

-

Definition at line 504 of file RoomComponent.cs.

+

Definition at line 509 of file RoomComponent.cs.

diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_room_component.js b/class_m_pewsey_1_1_mania_map_unity_1_1_room_component.js index 948d7463..13ca1e3e 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_room_component.js +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_room_component.js @@ -1,6 +1,6 @@ var class_m_pewsey_1_1_mania_map_unity_1_1_room_component = [ - [ "Initialize", "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a0dae81393b7fbfdd6be87f4fe78c2896", null ], + [ "Initialize", "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a489723eebe57180b51849ebafec6c0e1", null ], [ "CellSize", "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a96fbb5c20b0af4733ef9099e70ef2a25", null ], [ "IsInitialized", "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#acf7e27e5129fb4febbb44dbd372a8a5a", null ], [ "LayoutPack", "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a552429363b2a670d8f83fd9c5d58a378", null ], diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_room_flag-members.html b/class_m_pewsey_1_1_mania_map_unity_1_1_room_flag-members.html index 28a0f73c..4abe201a 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_room_flag-members.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_room_flag-members.html @@ -114,7 +114,7 @@

- + diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html b/class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html index 071b45f5..fc058623 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html @@ -122,9 +122,9 @@ - - - + + + @@ -221,14 +221,14 @@

-

◆ Exists()

+ +

◆ FlagIsSet()

 
void AddMMFeatures (Array2D< Cell > cells)
 
void CreateCellAreas (LayerMask cellLayer, LayerMask triggeringLayer)
 
void CreateCellAreas (LayerMask cellLayer, LayerMask triggeringLayers)
 
void DrawCells (Color fillColor, Color lineColor, bool activity)
 
Array2D< Cell > GetMMCells ()
LayerMask triggeringLayer triggeringLayers 
LayerMask triggeringLayer, triggeringLayers,
LayerMask triggeringLayer, triggeringLayers,
LayerMask triggeringLayer, triggeringLayers,
CellIndex (defined in CellChild)CellChild
Column (defined in CellChild)CellChild
EditId (defined in RoomFlag)RoomFlag
Exists()RoomFlag
FlagIsSet()RoomFlag
IdRoomFlag
Initialize() (defined in CellChild)CellChildprotectedvirtual
IsInitialized (defined in CellChild)CellChild
override void AutoAssign (RoomComponent room)
 If auto assign is enabled, assigns the closest cell to the object. More...
 
bool Exists ()
 True if the flag is set. More...
 
bool FlagIsSet ()
 True if the flag is set. More...
 
bool RemoveFlag ()
 Removes the flag. Returns true if the flag was removed. More...
 
- + diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.js b/class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.js index 4109aa38..cbeafd62 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.js +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.js @@ -1,7 +1,7 @@ var class_m_pewsey_1_1_mania_map_unity_1_1_room_flag = [ [ "AutoAssign", "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#a911a31d74918b49341b0ef60e76bf79c", null ], - [ "Exists", "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#aa9a207f89881ad3eeb418619bef880ed", null ], + [ "FlagIsSet", "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#a2cb1a38221640ec23a10d837ff9324ab", null ], [ "RemoveFlag", "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#a31883fb34fab8fcf92877052179d9eb4", null ], [ "SetFlag", "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#af35ab8e1ac295aeeb43bdb1375f5518c", null ], [ "ToggleFlag", "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#ac47f665811dba2552f7782a251b4ff49", null ], diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_room_template_database-members.html b/class_m_pewsey_1_1_mania_map_unity_1_1_room_template_database-members.html index 3326d108..a856ea76 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_room_template_database-members.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_room_template_database-members.html @@ -103,18 +103,20 @@

This is the complete list of members for RoomTemplateDatabase, including all inherited members.

bool Exists bool FlagIsSet ( )
- - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/class_m_pewsey_1_1_mania_map_unity_1_1_room_template_database.html b/class_m_pewsey_1_1_mania_map_unity_1_1_room_template_database.html index 0a8eb1fb..8ca7afc1 100644 --- a/class_m_pewsey_1_1_mania_map_unity_1_1_room_template_database.html +++ b/class_m_pewsey_1_1_mania_map_unity_1_1_room_template_database.html @@ -100,6 +100,7 @@ Public Member Functions | Properties | Private Member Functions | +Static Private Member Functions | Private Attributes | List of all members
RoomTemplateDatabase Class Reference
@@ -158,6 +159,13 @@
_templateGroups (defined in RoomTemplateDatabase)RoomTemplateDatabaseprivate
Awake() (defined in RoomTemplateDatabase)RoomTemplateDatabaseprivate
GetRoomTemplate(int id) (defined in RoomTemplateDatabase)RoomTemplateDatabase
GetRoomTemplate(Uid id, LayoutPack layoutPack) (defined in RoomTemplateDatabase)RoomTemplateDatabase
GetRoomTemplates() (defined in RoomTemplateDatabase)RoomTemplateDatabase
InstantiateAllRooms(LayoutPack layoutPack, Transform parent=null) (defined in RoomTemplateDatabase)RoomTemplateDatabase
InstantiateAllRoomsAsync(LayoutPack layoutPack, Transform parent=null) (defined in RoomTemplateDatabase)RoomTemplateDatabase
InstantiateRoom(Uid id, LayoutPack layoutPack, Transform parent=null, bool assignLayoutPosition=false) (defined in RoomTemplateDatabase)RoomTemplateDatabase
InstantiateRoomAsync(Uid id, LayoutPack layoutPack, Transform parent=null, bool assignLayoutPosition=false) (defined in RoomTemplateDatabase)RoomTemplateDatabase
InstantiateRooms(LayoutPack layoutPack, Transform parent=null, int? z=null) (defined in RoomTemplateDatabase)RoomTemplateDatabase
InstantiateRoomsAsync(LayoutPack layoutPack, Transform parent=null, int? z=null) (defined in RoomTemplateDatabase)RoomTemplateDatabase
IsDirty (defined in RoomTemplateDatabase)RoomTemplateDatabase
MarkDirty() (defined in RoomTemplateDatabase)RoomTemplateDatabase
ActivateRooms(List< RoomComponent > rooms) (defined in RoomTemplateDatabase)RoomTemplateDatabaseprivatestatic
Awake() (defined in RoomTemplateDatabase)RoomTemplateDatabaseprivate
GetRoomTemplate(int id) (defined in RoomTemplateDatabase)RoomTemplateDatabase
GetRoomTemplate(Uid id, LayoutPack layoutPack) (defined in RoomTemplateDatabase)RoomTemplateDatabase
GetRoomTemplates() (defined in RoomTemplateDatabase)RoomTemplateDatabase
InstantiateAllRooms(LayoutPack layoutPack, Transform parent=null) (defined in RoomTemplateDatabase)RoomTemplateDatabase
InstantiateAllRoomsAsync(LayoutPack layoutPack, Transform parent=null) (defined in RoomTemplateDatabase)RoomTemplateDatabase
InstantiateRoom(Uid id, LayoutPack layoutPack, Transform parent=null, bool assignLayoutPosition=false) (defined in RoomTemplateDatabase)RoomTemplateDatabase
InstantiateRoomAsync(Uid id, LayoutPack layoutPack, Transform parent=null, bool assignLayoutPosition=false) (defined in RoomTemplateDatabase)RoomTemplateDatabase
InstantiateRooms(LayoutPack layoutPack, Transform parent=null, int? z=null) (defined in RoomTemplateDatabase)RoomTemplateDatabase
InstantiateRoomsAsync(LayoutPack layoutPack, Transform parent=null, int? z=null) (defined in RoomTemplateDatabase)RoomTemplateDatabase
IsDirty (defined in RoomTemplateDatabase)RoomTemplateDatabase
MarkDirty() (defined in RoomTemplateDatabase)RoomTemplateDatabase
OnInstantiationComplete(AsyncOperationHandle< GameObject > handle, List< RoomComponent > results) (defined in RoomTemplateDatabase)RoomTemplateDatabaseprivatestatic
OnValidate() (defined in RoomTemplateDatabase)RoomTemplateDatabaseprivate
PopulateIfDirty() (defined in RoomTemplateDatabase)RoomTemplateDatabaseprivate
PopulateRoomTemplates() (defined in RoomTemplateDatabase)RoomTemplateDatabaseprivate
void PopulateRoomTemplates ()
 
+ + + + + +

+Static Private Member Functions

static void ActivateRooms (List< RoomComponent > rooms)
 
static void OnInstantiationComplete (AsyncOperationHandle< GameObject > handle, List< RoomComponent > results)
 
@@ -168,6 +176,34 @@

Definition at line 15 of file RoomTemplateDatabase.cs.

Member Function Documentation

+ +

◆ ActivateRooms()

+ +
+
+

Private Attributes

List< TemplateGroup_templateGroups = new List<TemplateGroup>()
+ + + + +
+ + + + + + + + +
static void ActivateRooms (List< RoomComponentrooms)
+
+staticprivate
+

+ +

Definition at line 135 of file RoomTemplateDatabase.cs.

+ +
+

◆ Awake()

@@ -290,7 +326,7 @@

-

Definition at line 99 of file RoomTemplateDatabase.cs.

+

Definition at line 100 of file RoomTemplateDatabase.cs.

@@ -362,7 +398,7 @@

-

Definition at line 158 of file RoomTemplateDatabase.cs.

+

Definition at line 175 of file RoomTemplateDatabase.cs.

@@ -404,7 +440,7 @@

-

Definition at line 152 of file RoomTemplateDatabase.cs.

+

Definition at line 169 of file RoomTemplateDatabase.cs.

@@ -440,7 +476,7 @@

-

Definition at line 133 of file RoomTemplateDatabase.cs.

+

Definition at line 150 of file RoomTemplateDatabase.cs.

@@ -476,7 +512,7 @@

-

Definition at line 114 of file RoomTemplateDatabase.cs.

+

Definition at line 115 of file RoomTemplateDatabase.cs.

@@ -497,6 +533,44 @@

Definition at line 40 of file RoomTemplateDatabase.cs.

+ + + +

◆ OnInstantiationComplete()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
static void OnInstantiationComplete (AsyncOperationHandle< GameObject > handle,
List< RoomComponentresults 
)
+
+staticprivate
+
+ +

Definition at line 143 of file RoomTemplateDatabase.cs.

+
diff --git a/functions_e.html b/functions_e.html index c45c004e..2d6f0446 100644 --- a/functions_e.html +++ b/functions_e.html @@ -107,7 +107,6 @@

- e -

diff --git a/functions_f.html b/functions_f.html index ea316b13..b161fc93 100644 --- a/functions_f.html +++ b/functions_f.html @@ -108,6 +108,7 @@

- f -

diff --git a/functions_func_e.html b/functions_func_e.html index 70ffdb3b..2dc617f5 100644 --- a/functions_func_e.html +++ b/functions_func_e.html @@ -100,7 +100,6 @@

- e -

diff --git a/functions_func_f.html b/functions_func_f.html index de593c09..0d26b154 100644 --- a/functions_func_f.html +++ b/functions_func_f.html @@ -105,6 +105,7 @@

- f -

diff --git a/functions_func_i.html b/functions_func_i.html index c06f80f3..c47d0997 100644 --- a/functions_func_i.html +++ b/functions_func_i.html @@ -100,7 +100,7 @@

- i -

  • Index() : TextureUtility
  • -
  • Initialize() : RoomComponent
  • +
  • Initialize() : RoomComponent
  • InputNames() : CollectableGeneratorStep, GenerationStep, LayoutGeneratorStep, LayoutGraphRandomizerStep, LayoutGraphSelectorStep
  • InterpolatePosition() : DoorThreshold
  • IsAcquired() : CollectableSpotComponent
  • diff --git a/functions_i.html b/functions_i.html index 7c48c1e8..48a2e56c 100644 --- a/functions_i.html +++ b/functions_i.html @@ -101,7 +101,7 @@

    - i -

    • Id : CollectableResource, CollectableSpotComponent, LayoutGraphNode, LayoutGraphResource, RoomFlag, RoomTemplateResource
    • Index() : TextureUtility
    • -
    • Initialize() : RoomComponent
    • +
    • Initialize() : RoomComponent
    • InitialNeighborWeight : CollectableGeneratorStep
    • InputNames() : CollectableGeneratorStep, GenerationStep, LayoutGeneratorStep, LayoutGraphRandomizerStep, LayoutGraphSelectorStep
    • InspectorLabelWidth : LayoutGraphWindowSettings
    • diff --git a/navtreeindex3.js b/navtreeindex3.js index 2e4692fc..5ccc2345 100644 --- a/navtreeindex3.js +++ b/navtreeindex3.js @@ -93,12 +93,12 @@ var NAVTREEINDEX3 = "class_m_pewsey_1_1_mania_map_unity_1_1_rand.html":[4,0,0,0,21], "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html":[4,0,0,0,22], "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html":[5,0,0,0,22], -"class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a0dae81393b7fbfdd6be87f4fe78c2896":[4,0,0,0,22,0], -"class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a0dae81393b7fbfdd6be87f4fe78c2896":[5,0,0,0,22,0], "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a2f9187010aef3c912d536700102347b0":[4,0,0,0,22,5], "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a2f9187010aef3c912d536700102347b0":[5,0,0,0,22,5], "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a380a20d833afe74daf49341eace63b3c":[4,0,0,0,22,4], "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a380a20d833afe74daf49341eace63b3c":[5,0,0,0,22,4], +"class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a489723eebe57180b51849ebafec6c0e1":[4,0,0,0,22,0], +"class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a489723eebe57180b51849ebafec6c0e1":[5,0,0,0,22,0], "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a552429363b2a670d8f83fd9c5d58a378":[4,0,0,0,22,3], "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a552429363b2a670d8f83fd9c5d58a378":[5,0,0,0,22,3], "class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a84645c3564cc1225dbc1cd5228a0bec8":[4,0,0,0,22,7], @@ -113,12 +113,12 @@ var NAVTREEINDEX3 = "class_m_pewsey_1_1_mania_map_unity_1_1_room_database.html":[5,0,0,0,23], "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html":[4,0,0,0,24], "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html":[5,0,0,0,24], +"class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#a2cb1a38221640ec23a10d837ff9324ab":[4,0,0,0,24,1], +"class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#a2cb1a38221640ec23a10d837ff9324ab":[5,0,0,0,24,1], "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#a31883fb34fab8fcf92877052179d9eb4":[4,0,0,0,24,2], "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#a31883fb34fab8fcf92877052179d9eb4":[5,0,0,0,24,2], -"class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#a911a31d74918b49341b0ef60e76bf79c":[4,0,0,0,24,0], "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#a911a31d74918b49341b0ef60e76bf79c":[5,0,0,0,24,0], -"class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#aa9a207f89881ad3eeb418619bef880ed":[5,0,0,0,24,1], -"class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#aa9a207f89881ad3eeb418619bef880ed":[4,0,0,0,24,1], +"class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#a911a31d74918b49341b0ef60e76bf79c":[4,0,0,0,24,0], "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#ac47f665811dba2552f7782a251b4ff49":[5,0,0,0,24,4], "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#ac47f665811dba2552f7782a251b4ff49":[4,0,0,0,24,4], "class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#af35ab8e1ac295aeeb43bdb1375f5518c":[5,0,0,0,24,3], @@ -131,10 +131,10 @@ var NAVTREEINDEX3 = "class_m_pewsey_1_1_mania_map_unity_1_1_room_template_resource.html":[5,0,0,0,26], "class_m_pewsey_1_1_mania_map_unity_1_1_room_template_resource.html#a1332a19189996de70e54732ecd859ff4":[5,0,0,0,26,2], "class_m_pewsey_1_1_mania_map_unity_1_1_room_template_resource.html#a1332a19189996de70e54732ecd859ff4":[4,0,0,0,26,2], -"class_m_pewsey_1_1_mania_map_unity_1_1_room_template_resource.html#a5e96e1f15cfa36f511b4855b4967068a":[5,0,0,0,26,3], "class_m_pewsey_1_1_mania_map_unity_1_1_room_template_resource.html#a5e96e1f15cfa36f511b4855b4967068a":[4,0,0,0,26,3], -"class_m_pewsey_1_1_mania_map_unity_1_1_room_template_resource.html#a7ee9065718e6628dc7791b756fa6c0f9":[5,0,0,0,26,1], +"class_m_pewsey_1_1_mania_map_unity_1_1_room_template_resource.html#a5e96e1f15cfa36f511b4855b4967068a":[5,0,0,0,26,3], "class_m_pewsey_1_1_mania_map_unity_1_1_room_template_resource.html#a7ee9065718e6628dc7791b756fa6c0f9":[4,0,0,0,26,1], +"class_m_pewsey_1_1_mania_map_unity_1_1_room_template_resource.html#a7ee9065718e6628dc7791b756fa6c0f9":[5,0,0,0,26,1], "class_m_pewsey_1_1_mania_map_unity_1_1_room_template_resource.html#afe0b47b3c92f2f69ea3da50cb72553eb":[4,0,0,0,26,0], "class_m_pewsey_1_1_mania_map_unity_1_1_room_template_resource.html#afe0b47b3c92f2f69ea3da50cb72553eb":[5,0,0,0,26,0], "class_m_pewsey_1_1_mania_map_unity_1_1_template_group.html":[4,0,0,0,27], diff --git a/search/all_4.js b/search/all_4.js index 2492f282..ed0f7aa4 100644 --- a/search/all_4.js +++ b/search/all_4.js @@ -7,6 +7,5 @@ var searchData= ['edges_4',['Edges',['../class_m_pewsey_1_1_mania_map_unity_1_1_graphs_1_1_layout_graph_resource.html#a4e6bb8a5c10168f8ec2fdd8d3f599748',1,'MPewsey::ManiaMapUnity::Graphs::LayoutGraphResource']]], ['edgesize_5',['EdgeSize',['../class_m_pewsey_1_1_mania_map_unity_1_1_graphs_1_1_editor_1_1_layout_graph_window_settings.html#adb4e06418b96e940f7c575da4ccaecf7',1,'MPewsey::ManiaMapUnity::Graphs::Editor::LayoutGraphWindowSettings']]], ['encodetobytes_6',['EncodeToBytes',['../class_m_pewsey_1_1_mania_map_unity_1_1_drawing_1_1_texture_utility.html#ab0a817c2ae7ce98a9d977ab6db7bc302',1,'MPewsey::ManiaMapUnity::Drawing::TextureUtility']]], - ['entries_7',['Entries',['../class_m_pewsey_1_1_mania_map_unity_1_1_template_group.html#ae9f06dc17d6c89977676ef6e3834a4bc',1,'MPewsey::ManiaMapUnity::TemplateGroup']]], - ['exists_8',['Exists',['../class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#aa9a207f89881ad3eeb418619bef880ed',1,'MPewsey::ManiaMapUnity::RoomFlag']]] + ['entries_7',['Entries',['../class_m_pewsey_1_1_mania_map_unity_1_1_template_group.html#ae9f06dc17d6c89977676ef6e3834a4bc',1,'MPewsey::ManiaMapUnity::TemplateGroup']]] ]; diff --git a/search/all_5.js b/search/all_5.js index 06144742..5456459e 100644 --- a/search/all_5.js +++ b/search/all_5.js @@ -12,6 +12,7 @@ var searchData= ['finddoorconnection_9',['FindDoorConnection',['../class_m_pewsey_1_1_mania_map_unity_1_1_door_component.html#a5420c5cef755c3fd4c1e279fed32e256',1,'MPewsey.ManiaMapUnity.DoorComponent.FindDoorConnection()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_layout_pack.html#a44086bae344f0087354ec78b780de081',1,'MPewsey.ManiaMapUnity.LayoutPack.FindDoorConnection()']]], ['findinputcomponents_10',['FindInputComponents',['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_generation_pipeline.html#a820e4475400d7eef27c2571a806bb99a',1,'MPewsey::ManiaMapUnity::Generators::GenerationPipeline']]], ['findstepcomponents_11',['FindStepComponents',['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_generation_pipeline.html#a00ea4f79549d8e545631ec64e56bbde9',1,'MPewsey::ManiaMapUnity::Generators::GenerationPipeline']]], - ['flags_12',['Flags',['../struct_m_pewsey_1_1_mania_map_unity_1_1_drawing_1_1_map_tile_key.html#ac48745adcb222c116e23463b3e39b8f7',1,'MPewsey::ManiaMapUnity::Drawing::MapTileKey']]], - ['fromnode_13',['FromNode',['../class_m_pewsey_1_1_mania_map_unity_1_1_graphs_1_1_layout_graph_edge.html#a20e7204f304eaf9a3031911cefec73a7',1,'MPewsey::ManiaMapUnity::Graphs::LayoutGraphEdge']]] + ['flagisset_12',['FlagIsSet',['../class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#a2cb1a38221640ec23a10d837ff9324ab',1,'MPewsey::ManiaMapUnity::RoomFlag']]], + ['flags_13',['Flags',['../struct_m_pewsey_1_1_mania_map_unity_1_1_drawing_1_1_map_tile_key.html#ac48745adcb222c116e23463b3e39b8f7',1,'MPewsey::ManiaMapUnity::Drawing::MapTileKey']]], + ['fromnode_14',['FromNode',['../class_m_pewsey_1_1_mania_map_unity_1_1_graphs_1_1_layout_graph_edge.html#a20e7204f304eaf9a3031911cefec73a7',1,'MPewsey::ManiaMapUnity::Graphs::LayoutGraphEdge']]] ]; diff --git a/search/all_8.js b/search/all_8.js index 3c61de27..8f8e3b37 100644 --- a/search/all_8.js +++ b/search/all_8.js @@ -2,7 +2,7 @@ var searchData= [ ['id_0',['Id',['../class_m_pewsey_1_1_mania_map_unity_1_1_collectable_spot_component.html#afe0b47b3c92f2f69ea3da50cb72553eb',1,'MPewsey.ManiaMapUnity.CollectableSpotComponent.Id()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_graphs_1_1_layout_graph_node.html#afe0b47b3c92f2f69ea3da50cb72553eb',1,'MPewsey.ManiaMapUnity.Graphs.LayoutGraphNode.Id()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_graphs_1_1_layout_graph_resource.html#afe0b47b3c92f2f69ea3da50cb72553eb',1,'MPewsey.ManiaMapUnity.Graphs.LayoutGraphResource.Id()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#afe0b47b3c92f2f69ea3da50cb72553eb',1,'MPewsey.ManiaMapUnity.RoomFlag.Id()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_room_template_resource.html#afe0b47b3c92f2f69ea3da50cb72553eb',1,'MPewsey.ManiaMapUnity.RoomTemplateResource.Id()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_collectable_resource.html#afe0b47b3c92f2f69ea3da50cb72553eb',1,'MPewsey.ManiaMapUnity.CollectableResource.Id()']]], ['index_1',['Index',['../class_m_pewsey_1_1_mania_map_unity_1_1_drawing_1_1_texture_utility.html#a0a82ed65f5732af4b8e514058f33ba98',1,'MPewsey::ManiaMapUnity::Drawing::TextureUtility']]], - ['initialize_2',['Initialize',['../class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a0dae81393b7fbfdd6be87f4fe78c2896',1,'MPewsey::ManiaMapUnity::RoomComponent']]], + ['initialize_2',['Initialize',['../class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a489723eebe57180b51849ebafec6c0e1',1,'MPewsey::ManiaMapUnity::RoomComponent']]], ['initialneighborweight_3',['InitialNeighborWeight',['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_collectable_generator_step.html#af282e5d7e059e832b59cf6841d2d7a93',1,'MPewsey::ManiaMapUnity::Generators::CollectableGeneratorStep']]], ['inputnames_4',['InputNames',['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_generation_step.html#af3ba5439ef112522ed132271c2196690',1,'MPewsey.ManiaMapUnity.Generators.GenerationStep.InputNames()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_layout_graph_selector_step.html#a839ac6fb8f31087e9c232a284f624057',1,'MPewsey.ManiaMapUnity.Generators.LayoutGraphSelectorStep.InputNames()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_layout_graph_randomizer_step.html#a839ac6fb8f31087e9c232a284f624057',1,'MPewsey.ManiaMapUnity.Generators.LayoutGraphRandomizerStep.InputNames()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_layout_generator_step.html#a839ac6fb8f31087e9c232a284f624057',1,'MPewsey.ManiaMapUnity.Generators.LayoutGeneratorStep.InputNames()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_collectable_generator_step.html#a839ac6fb8f31087e9c232a284f624057',1,'MPewsey.ManiaMapUnity.Generators.CollectableGeneratorStep.InputNames()']]], ['inspectorlabelwidth_5',['InspectorLabelWidth',['../class_m_pewsey_1_1_mania_map_unity_1_1_graphs_1_1_editor_1_1_layout_graph_window_settings.html#ab2a3a5d0d92e81a4cf9dc5e58574f033',1,'MPewsey::ManiaMapUnity::Graphs::Editor::LayoutGraphWindowSettings']]], diff --git a/search/functions_4.js b/search/functions_4.js index 063b99fc..77f27164 100644 --- a/search/functions_4.js +++ b/search/functions_4.js @@ -1,5 +1,4 @@ var searchData= [ - ['encodetobytes_0',['EncodeToBytes',['../class_m_pewsey_1_1_mania_map_unity_1_1_drawing_1_1_texture_utility.html#ab0a817c2ae7ce98a9d977ab6db7bc302',1,'MPewsey::ManiaMapUnity::Drawing::TextureUtility']]], - ['exists_1',['Exists',['../class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#aa9a207f89881ad3eeb418619bef880ed',1,'MPewsey::ManiaMapUnity::RoomFlag']]] + ['encodetobytes_0',['EncodeToBytes',['../class_m_pewsey_1_1_mania_map_unity_1_1_drawing_1_1_texture_utility.html#ab0a817c2ae7ce98a9d977ab6db7bc302',1,'MPewsey::ManiaMapUnity::Drawing::TextureUtility']]] ]; diff --git a/search/functions_5.js b/search/functions_5.js index 5fcf158f..c3163754 100644 --- a/search/functions_5.js +++ b/search/functions_5.js @@ -5,5 +5,6 @@ var searchData= ['finddoor_2',['FindDoor',['../class_m_pewsey_1_1_mania_map_unity_1_1_door_component.html#a7ca32148626afedd89091882cd806900',1,'MPewsey::ManiaMapUnity::DoorComponent']]], ['finddoorconnection_3',['FindDoorConnection',['../class_m_pewsey_1_1_mania_map_unity_1_1_door_component.html#a5420c5cef755c3fd4c1e279fed32e256',1,'MPewsey.ManiaMapUnity.DoorComponent.FindDoorConnection()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_layout_pack.html#a44086bae344f0087354ec78b780de081',1,'MPewsey.ManiaMapUnity.LayoutPack.FindDoorConnection()']]], ['findinputcomponents_4',['FindInputComponents',['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_generation_pipeline.html#a820e4475400d7eef27c2571a806bb99a',1,'MPewsey::ManiaMapUnity::Generators::GenerationPipeline']]], - ['findstepcomponents_5',['FindStepComponents',['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_generation_pipeline.html#a00ea4f79549d8e545631ec64e56bbde9',1,'MPewsey::ManiaMapUnity::Generators::GenerationPipeline']]] + ['findstepcomponents_5',['FindStepComponents',['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_generation_pipeline.html#a00ea4f79549d8e545631ec64e56bbde9',1,'MPewsey::ManiaMapUnity::Generators::GenerationPipeline']]], + ['flagisset_6',['FlagIsSet',['../class_m_pewsey_1_1_mania_map_unity_1_1_room_flag.html#a2cb1a38221640ec23a10d837ff9324ab',1,'MPewsey::ManiaMapUnity::RoomFlag']]] ]; diff --git a/search/functions_8.js b/search/functions_8.js index e36a9663..c7e2125f 100644 --- a/search/functions_8.js +++ b/search/functions_8.js @@ -1,7 +1,7 @@ var searchData= [ ['index_0',['Index',['../class_m_pewsey_1_1_mania_map_unity_1_1_drawing_1_1_texture_utility.html#a0a82ed65f5732af4b8e514058f33ba98',1,'MPewsey::ManiaMapUnity::Drawing::TextureUtility']]], - ['initialize_1',['Initialize',['../class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a0dae81393b7fbfdd6be87f4fe78c2896',1,'MPewsey::ManiaMapUnity::RoomComponent']]], + ['initialize_1',['Initialize',['../class_m_pewsey_1_1_mania_map_unity_1_1_room_component.html#a489723eebe57180b51849ebafec6c0e1',1,'MPewsey::ManiaMapUnity::RoomComponent']]], ['inputnames_2',['InputNames',['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_collectable_generator_step.html#a839ac6fb8f31087e9c232a284f624057',1,'MPewsey.ManiaMapUnity.Generators.CollectableGeneratorStep.InputNames()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_generation_step.html#af3ba5439ef112522ed132271c2196690',1,'MPewsey.ManiaMapUnity.Generators.GenerationStep.InputNames()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_layout_generator_step.html#a839ac6fb8f31087e9c232a284f624057',1,'MPewsey.ManiaMapUnity.Generators.LayoutGeneratorStep.InputNames()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_layout_graph_randomizer_step.html#a839ac6fb8f31087e9c232a284f624057',1,'MPewsey.ManiaMapUnity.Generators.LayoutGraphRandomizerStep.InputNames()'],['../class_m_pewsey_1_1_mania_map_unity_1_1_generators_1_1_layout_graph_selector_step.html#a839ac6fb8f31087e9c232a284f624057',1,'MPewsey.ManiaMapUnity.Generators.LayoutGraphSelectorStep.InputNames()']]], ['interpolateposition_3',['InterpolatePosition',['../class_m_pewsey_1_1_mania_map_unity_1_1_door_threshold.html#a0b46d431030067520171a4113ff46b40',1,'MPewsey::ManiaMapUnity::DoorThreshold']]], ['isacquired_4',['IsAcquired',['../class_m_pewsey_1_1_mania_map_unity_1_1_collectable_spot_component.html#aa054c2746496e46c5fa69bfb1d893e7a',1,'MPewsey::ManiaMapUnity::CollectableSpotComponent']]]