mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
WTF WORK!!!!
This commit is contained in:
parent
5b18221000
commit
af1dffa320
@ -8,7 +8,6 @@ using NewHorizons.External.Modules.Props;
|
|||||||
using NewHorizons.External.Modules.Props.Audio;
|
using NewHorizons.External.Modules.Props.Audio;
|
||||||
using NewHorizons.External.Modules.Props.Dialogue;
|
using NewHorizons.External.Modules.Props.Dialogue;
|
||||||
using NewHorizons.External.SerializableData;
|
using NewHorizons.External.SerializableData;
|
||||||
using NewHorizons.OtherMods.MenuFramework;
|
|
||||||
using NewHorizons.Utility;
|
using NewHorizons.Utility;
|
||||||
using NewHorizons.Utility.OWML;
|
using NewHorizons.Utility.OWML;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
@ -143,7 +142,8 @@ namespace NewHorizons
|
|||||||
public T QueryBody<T>(string bodyName, string jsonPath)
|
public T QueryBody<T>(string bodyName, string jsonPath)
|
||||||
{
|
{
|
||||||
var data = QueryBody(typeof(T), bodyName, jsonPath);
|
var data = QueryBody(typeof(T), bodyName, jsonPath);
|
||||||
if (data is T result) {
|
if (data is T result)
|
||||||
|
{
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
return default;
|
return default;
|
||||||
@ -157,9 +157,11 @@ namespace NewHorizons
|
|||||||
: QueryJson(outType, Path.Combine(system.Mod.ModHelper.Manifest.ModFolderPath, system.RelativePath), jsonPath);
|
: QueryJson(outType, Path.Combine(system.Mod.ModHelper.Manifest.ModFolderPath, system.RelativePath), jsonPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
public T QuerySystem<T>(string jsonPath) {
|
public T QuerySystem<T>(string jsonPath)
|
||||||
|
{
|
||||||
var data = QuerySystem(typeof(T), jsonPath);
|
var data = QuerySystem(typeof(T), jsonPath);
|
||||||
if (data is T result) {
|
if (data is T result)
|
||||||
|
{
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
return default;
|
return default;
|
||||||
@ -169,7 +171,8 @@ namespace NewHorizons
|
|||||||
float scale, bool alignRadial)
|
float scale, bool alignRadial)
|
||||||
{
|
{
|
||||||
var prefab = SearchUtilities.Find(propToCopyPath);
|
var prefab = SearchUtilities.Find(propToCopyPath);
|
||||||
var detailInfo = new DetailInfo() {
|
var detailInfo = new DetailInfo()
|
||||||
|
{
|
||||||
position = position,
|
position = position,
|
||||||
rotation = eulerAngles,
|
rotation = eulerAngles,
|
||||||
scale = scale,
|
scale = scale,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user