mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add simplified detail info to use later
This commit is contained in:
parent
8e5d7369d6
commit
0c2709bff6
25
NewHorizons/External/Modules/Props/DetailInfo.cs
vendored
25
NewHorizons/External/Modules/Props/DetailInfo.cs
vendored
@ -7,15 +7,8 @@ using System.ComponentModel;
|
||||
namespace NewHorizons.External.Modules.Props
|
||||
{
|
||||
[JsonObject]
|
||||
public class DetailInfo : GeneralPropInfo
|
||||
public class SimplifiedDetailInfo : GeneralPropInfo
|
||||
{
|
||||
public DetailInfo() { }
|
||||
|
||||
public DetailInfo(GeneralPointPropInfo info)
|
||||
{
|
||||
JsonConvert.PopulateObject(JsonConvert.SerializeObject(info), this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Relative filepath to an asset-bundle to load the prefab defined in `path` from
|
||||
/// </summary>
|
||||
@ -47,6 +40,22 @@ namespace NewHorizons.External.Modules.Props
|
||||
/// Scale each axis of the prop. Overrides `scale`.
|
||||
/// </summary>
|
||||
public MVector3 stretch;
|
||||
}
|
||||
|
||||
[JsonObject]
|
||||
public class DetailInfo : SimplifiedDetailInfo
|
||||
{
|
||||
public DetailInfo() { }
|
||||
|
||||
public DetailInfo(GeneralPointPropInfo info)
|
||||
{
|
||||
JsonConvert.PopulateObject(JsonConvert.SerializeObject(info), this);
|
||||
}
|
||||
|
||||
public DetailInfo(SimplifiedDetailInfo info)
|
||||
{
|
||||
JsonConvert.PopulateObject(JsonConvert.SerializeObject(info), this);
|
||||
}
|
||||
|
||||
[Obsolete("Use QuantumDetailInfo")]
|
||||
public string quantumGroupID;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user