(ce6f2672e) Additional verbose logging
This commit is contained in:
@@ -122,6 +122,8 @@ namespace Barotrauma
|
||||
|
||||
GapList.Add(this);
|
||||
InsertToList();
|
||||
|
||||
DebugConsole.Log("Created gap (" + ID + ")");
|
||||
}
|
||||
|
||||
public override MapEntity Clone()
|
||||
|
||||
@@ -242,6 +242,8 @@ namespace Barotrauma
|
||||
WaterVolume = 0.0f;
|
||||
|
||||
InsertToList();
|
||||
|
||||
DebugConsole.Log("Created hull (" + ID + ")");
|
||||
}
|
||||
|
||||
public static Rectangle GetBorders()
|
||||
|
||||
@@ -1274,6 +1274,8 @@ namespace Barotrauma
|
||||
}
|
||||
}
|
||||
|
||||
DebugConsole.Log("Generating level resources...");
|
||||
|
||||
for (int i = 0; i < generationParams.ItemCount; i++)
|
||||
{
|
||||
var selectedPrefab = ToolBox.SelectWeightedRandom(
|
||||
@@ -1286,6 +1288,7 @@ namespace Barotrauma
|
||||
var selectedEdge = selectedCell.Edges.GetRandom(e => e.IsSolid && !e.OutsideLevel, Rand.RandSync.Server);
|
||||
if (selectedEdge == null) continue;
|
||||
|
||||
|
||||
float edgePos = Rand.Range(0.0f, 1.0f, Rand.RandSync.Server);
|
||||
Vector2 selectedPos = Vector2.Lerp(selectedEdge.Point1, selectedEdge.Point2, edgePos);
|
||||
Vector2 edgeNormal = selectedEdge.GetNormal(selectedCell);
|
||||
@@ -1306,6 +1309,8 @@ namespace Barotrauma
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
DebugConsole.Log("Level resources generated");
|
||||
}
|
||||
|
||||
public Vector2 GetRandomItemPos(PositionType spawnPosType, float randomSpread, float minDistFromSubs, float offsetFromWall = 10.0f)
|
||||
|
||||
@@ -57,6 +57,8 @@ namespace Barotrauma
|
||||
linkedToID = new List<ushort>();
|
||||
|
||||
InsertToList();
|
||||
|
||||
DebugConsole.Log("Created linked submarine (" + ID + ")");
|
||||
}
|
||||
|
||||
public static LinkedSubmarine CreateDummy(Submarine mainSub, Submarine linkedSub)
|
||||
|
||||
@@ -355,6 +355,15 @@ namespace Barotrauma
|
||||
}
|
||||
|
||||
InsertToList();
|
||||
|
||||
DebugConsole.Log("Created " + Name + " (" + ID + ")");
|
||||
}
|
||||
|
||||
partial void InitProjSpecific();
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
|
||||
partial void InitProjSpecific();
|
||||
|
||||
@@ -125,6 +125,8 @@ namespace Barotrauma
|
||||
InsertToList();
|
||||
WayPointList.Add(this);
|
||||
|
||||
DebugConsole.Log("Created waypoint (" + ID + ")");
|
||||
|
||||
currentHull = Hull.FindHull(WorldPosition);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user