Run Re-Do
This commit is contained in:
@@ -55,6 +55,11 @@ namespace ProjectM.Client
|
||||
public Sprite FabricatorIcon;
|
||||
public Sprite ConveyorIcon;
|
||||
|
||||
[Header("Build-ghost preview meshes (authored real-size, ground pivot — BuildSendSystem)")]
|
||||
public Mesh TurretGhostMesh;
|
||||
public Mesh WallGhostMesh;
|
||||
public Mesh FabricatorGhostMesh;
|
||||
|
||||
[Header("Build-mode control glyphs")]
|
||||
public Sprite KbmPlace; // LMB
|
||||
public Sprite KbmCancel; // RMB
|
||||
@@ -91,6 +96,18 @@ namespace ProjectM.Client
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Placement-ghost preview mesh for a <see cref="StructureType"/> byte (null → the cube fallback).</summary>
|
||||
public Mesh StructureGhostMesh(byte type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case StructureType.Turret: return TurretGhostMesh;
|
||||
case StructureType.Wall: return WallGhostMesh;
|
||||
case StructureType.Fabricator: return FabricatorGhostMesh;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
// ---- cached SDF font definitions (one FontAsset per font, built once, reset per play session) ----
|
||||
static FontAsset _displayFa, _bodyFa, _bodyLightFa;
|
||||
static bool _displayTried, _bodyTried, _bodyLightTried;
|
||||
|
||||
Reference in New Issue
Block a user