mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
added print stuff for spiral placer
This commit is contained in:
parent
9b40d9d246
commit
fdaf803321
@ -524,7 +524,39 @@ namespace NewHorizons.Utility.DebugMenu
|
|||||||
|
|
||||||
internal override void PrintNewConfigSection(DebugMenu menu)
|
internal override void PrintNewConfigSection(DebugMenu menu)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
var conversationsJSON = conversations
|
||||||
|
.GroupBy(conversation => conversation.planetConfig.name)
|
||||||
|
.Select(allConversationsOnBody =>
|
||||||
|
allConversationsOnBody.Key +
|
||||||
|
"\n[" +
|
||||||
|
allConversationsOnBody.Select(conversation =>
|
||||||
|
$"\t{{\n" +
|
||||||
|
$"\t\t\"position\": {conversation.conversation.position},\n" +
|
||||||
|
$"\t\t\"normal\": {conversation.conversation.normal} \n" +
|
||||||
|
$"\t\t\"parentPath\": {conversation.conversation.parentPath} \n" +
|
||||||
|
$"\t\t\"location\": {conversation.conversation.location} \n" +
|
||||||
|
$"\t\t\"rotation\": {conversation.conversation.rotation} \n" +
|
||||||
|
$"\t\t\"rename\": {conversation.conversation.rename} \n" +
|
||||||
|
$"\t\t\"seed\": {conversation.conversation.seed} \n" +
|
||||||
|
$"\t\t\"type\": {conversation.conversation.type} \n" +
|
||||||
|
$"\t\t\"xmlFile\": {conversation.conversation.xmlFile} \n" +
|
||||||
|
$"\t\t\"arcInfo\": [\n" +
|
||||||
|
String.Join(",\n", conversation.spirals.Select(spiral =>
|
||||||
|
$"\t\t\t{{" +
|
||||||
|
$"\"position\": {spiral.spiral.position}, " +
|
||||||
|
$"\"zRotation\": {spiral.spiral.zRotation}}}, " +
|
||||||
|
$"\"mirror\": {spiral.spiral.mirror}, " +
|
||||||
|
$"\"type\": {spiral.spiral.type}, " +
|
||||||
|
$"\"variation\": {spiral.spiral.variation}" +
|
||||||
|
$"}}"
|
||||||
|
))
|
||||||
|
)
|
||||||
|
);;
|
||||||
|
|
||||||
|
foreach(string json in conversationsJSON)
|
||||||
|
{
|
||||||
|
Logger.Log(json);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user