remove some unused imports and code
This commit is contained in:
@@ -5,14 +5,6 @@ namespace EscapeRoomEngine.Engine.Runtime
|
|||||||
{
|
{
|
||||||
public struct Dimensions
|
public struct Dimensions
|
||||||
{
|
{
|
||||||
internal Dimensions(int width, int length, int x, int z)
|
|
||||||
{
|
|
||||||
this.width = width;
|
|
||||||
this.length = length;
|
|
||||||
this.x = x;
|
|
||||||
this.z = z;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int width;
|
public int width;
|
||||||
public int length;
|
public int length;
|
||||||
public int x;
|
public int x;
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using EscapeRoomEngine.Engine.Runtime.Utilities;
|
||||||
using EscapeRoomEngine.Engine.Runtime.Utilities;
|
|
||||||
using NaughtyAttributes;
|
using NaughtyAttributes;
|
||||||
|
|
||||||
namespace EscapeRoomEngine.Engine.Runtime.Modules
|
namespace EscapeRoomEngine.Engine.Runtime.Modules
|
||||||
|
|||||||
@@ -33,10 +33,5 @@ namespace EscapeRoomEngine.Engine.Runtime.Requirements
|
|||||||
|
|
||||||
return preconditionsMet;
|
return preconditionsMet;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static HashSet<bool> SetFor(bool value)
|
|
||||||
{
|
|
||||||
return value ? TrueSet : FalseSet;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using EscapeRoomEngine.Engine.Runtime.Modules;
|
using EscapeRoomEngine.Engine.Runtime.Modules;
|
||||||
using EscapeRoomEngine.Engine.Runtime.Requirements;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Logger = EscapeRoomEngine.Engine.Runtime.Utilities.Logger;
|
using Logger = EscapeRoomEngine.Engine.Runtime.Utilities.Logger;
|
||||||
using LogType = EscapeRoomEngine.Engine.Runtime.Utilities.LogType;
|
using LogType = EscapeRoomEngine.Engine.Runtime.Utilities.LogType;
|
||||||
@@ -185,7 +184,13 @@ namespace EscapeRoomEngine.Engine.Runtime
|
|||||||
if(zMax == -1)
|
if(zMax == -1)
|
||||||
zMax = Utilities.Utilities.RandomInclusive(Math.Max(position.y + 1, zMin + minSize.y), availableSpace.y);
|
zMax = Utilities.Utilities.RandomInclusive(Math.Max(position.y + 1, zMin + minSize.y), availableSpace.y);
|
||||||
|
|
||||||
var dimensions = new Dimensions(xMax - xMin, zMax - zMin, xMin, zMin);
|
var dimensions = new Dimensions
|
||||||
|
{
|
||||||
|
width = xMax - xMin,
|
||||||
|
length = zMax - zMin,
|
||||||
|
x = xMin,
|
||||||
|
z = zMin
|
||||||
|
};
|
||||||
|
|
||||||
Logger.Log($"Generated space dimensions {dimensions} from entrance position {position}", LogType.RoomGeneration);
|
Logger.Log($"Generated space dimensions {dimensions} from entrance position {position}", LogType.RoomGeneration);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user