change to rename because its better and matches other things

This commit is contained in:
xen-42 2025-01-06 23:02:40 -05:00
parent 5c9c487201
commit 752f080099
3 changed files with 8 additions and 8 deletions

View File

@ -28,7 +28,7 @@ namespace NewHorizons.Builder.Props
{
if (quantumGroup.details == null || !quantumGroup.details.Any())
{
NHLogger.LogError($"Found quantum group with no details - [{planetGO.name}] [{quantumGroup.name}]");
NHLogger.LogError($"Found quantum group with no details - [{planetGO.name}] [{quantumGroup.rename}]");
return;
}
@ -72,7 +72,7 @@ namespace NewHorizons.Builder.Props
lightningController._models = propsInGroup.Select(x => x.go).ToArray();
lightningController.enabled = true;
lightning.name = "Quantum Lightning - " + quantumGroup.name;
lightning.name = quantumGroup.rename;
lightning.SetActive(true);
// Not sure why but it isn't enabling itself
@ -96,7 +96,7 @@ namespace NewHorizons.Builder.Props
propsInGroup = propsInGroupList.ToArray();
}
var groupRoot = new GameObject("Quantum Sockets - " + quantumGroup.name);
var groupRoot = new GameObject(quantumGroup.rename);
groupRoot.transform.parent = sector?.transform ?? planetGO.transform;
groupRoot.transform.localPosition = Vector3.zero;
groupRoot.transform.localEulerAngles = Vector3.zero;
@ -179,7 +179,7 @@ namespace NewHorizons.Builder.Props
var propsInGroup = quantumGroup.details.Select(x => DetailBuilder.Make(go, sector, mod, x)).ToArray();
var groupRoot = new GameObject("Quantum States - " + quantumGroup.name);
var groupRoot = new GameObject(quantumGroup.rename);
groupRoot.transform.parent = sector?.transform ?? go.transform;
groupRoot.transform.localPosition = Vector3.zero;
@ -228,7 +228,7 @@ namespace NewHorizons.Builder.Props
public static void MakeShuffleGroup(GameObject go, Sector sector, BaseQuantumGroupInfo quantumGroup, GameObject[] propsInGroup)
{
//var averagePosition = propsInGroup.Aggregate(Vector3.zero, (avg, prop) => avg + prop.transform.position) / propsInGroup.Count();
GameObject shuffleParent = new GameObject("Quantum Shuffle - " + quantumGroup.name);
GameObject shuffleParent = new GameObject(quantumGroup.rename);
shuffleParent.SetActive(false);
shuffleParent.transform.parent = sector?.transform ?? go.transform;
shuffleParent.transform.localPosition = Vector3.zero;

View File

@ -711,7 +711,7 @@ namespace NewHorizons.External.Configs
{
var socketQuantumGroups = Props.quantumGroups.Where(x => x.type == QuantumGroupType.Sockets).Select(x => new SocketQuantumGroupInfo()
{
name = x.id,
rename = "Quantum Shuffle - " + x.id,
sockets = x.sockets,
details = Props.details.Where(y => y.quantumGroupID == x.id).Select(x => new QuantumDetailInfo(x)).ToArray()
});
@ -721,7 +721,7 @@ namespace NewHorizons.External.Configs
}
var stateQuantumGroups = Props.quantumGroups.Where(x => x.type == QuantumGroupType.States).Select(x => new StateQuantumGroupInfo()
{
name = x.id,
rename = "Quantum State - " + x.id,
hasEmptyState = x.hasEmptyState,
loop = x.loop,
sequential = x.sequential,

View File

@ -5,7 +5,7 @@ public class BaseQuantumGroupInfo
/// <summary>
/// Optional name to help identify this group
/// </summary>
public string name;
public string rename;
/// <summary>
/// List of props which will be used in this quantum group