Add comment to detail

This commit is contained in:
Noah Pilarski 2022-05-29 17:06:10 -04:00
parent d5d85cd7be
commit 5e1ddde773
3 changed files with 14 additions and 0 deletions

View File

@ -62,6 +62,11 @@ namespace NewHorizons.Builder.Props
detailGO = newDetailGO;
}
if (detail.comment != null)
{
detailGO.name = detail.comment;
}
detailInfoToCorrespondingSpawnedGameObject[detail] = detailGO;
}

View File

@ -113,6 +113,11 @@ namespace NewHorizons.External.Modules
[JsonObject]
public class DetailInfo
{
/// <summary>
/// An optional rename of the detail
/// </summary>
public string comment;
/// <summary>
/// Do we override rotation and try to automatically align this object to stand upright on the body's surface?
/// </summary>

View File

@ -793,6 +793,10 @@
"type": "object",
"additionalProperties": false,
"properties": {
"comment": {
"type": "string",
"description": "An optional rename of the detail"
},
"alignToNormal": {
"type": "boolean",
"description": "Do we override rotation and try to automatically align this object to stand upright on the body's surface?"