Skip to content

Commit

Permalink
feat: DS2 MSB Meta
Browse files Browse the repository at this point in the history
- Added Spawn states enum for DS2 generator regist param in the map editor
  • Loading branch information
vawser committed Jan 18, 2025
1 parent 2071c42 commit 560f448
Show file tree
Hide file tree
Showing 49 changed files with 6,060 additions and 288 deletions.
10 changes: 10 additions & 0 deletions Documentation/smithbox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,13 @@
- ER
- AC6

{
"id": "XXXX",
"name": "XXXX",
"states": [
{
"value": "0",
"name": "Idle"
}
]
}
31 changes: 0 additions & 31 deletions src/Andre/SoulsFormats/SoulsFormats/Formats/MSB/MSBE/PartsParam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@ public enum GameEditionDisableType : uint
/// <summary>
/// The model used by this part; requires an entry in ModelParam.
/// </summary>
[ModelNameLink]
public string ModelName { get; set; }
[IndexProperty]
[XmlIgnore]
private int ModelIndex { get; set; }

/// <summary>
Expand All @@ -201,164 +198,136 @@ public enum GameEditionDisableType : uint
/// <summary>
/// A path to a .sib file, presumably some kind of editor placeholder.
/// </summary>
[IgnoreProperty]
public string SibPath { get; set; }

/// <summary>
/// Location of the part.
/// </summary>
[PositionProperty]
public Vector3 Position { get; set; }

/// <summary>
/// Rotation of the part.
/// </summary>
[RotationProperty]
public Vector3 Rotation { get; set; }

/// <summary>
/// Scale of the part; only works for map pieces and objects.
/// </summary>
[ScaleProperty]
public Vector3 Scale { get; set; }

/// <summary>
/// 1 disables the part, 2 and 3 are unknown.
/// </summary>
[IgnoreProperty]
public GameEditionDisableType GameEditionDisable { get; set; } = GameEditionDisableType.NeverDisable;

/// <summary>
/// Very speculative
/// </summary>
[IgnoreProperty]
public uint MapStudioLayer { get; set; }

/// <summary>
/// Identifies the part in event scripts.
/// </summary>
[EnemyProperty]
public uint EntityID { get; set; }

/// <summary>
/// Enables use of PartsDrawParamID. If false, asset param is used instead.
/// </summary>
[IgnoreProperty]
public byte isUsePartsDrawParamID { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[MSBParamReference(ParamName = "PartsDrawParam")]
[IgnoreProperty]
public ushort PartsDrawParamID { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public sbyte IsPointLightShadowSrc { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public byte UnkE0B { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public bool IsShadowSrc { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public byte IsStaticShadowSrc { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public byte IsCascade3ShadowSrc { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public byte UnkE0F { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public byte UnkE10 { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public bool IsShadowDest { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public bool IsShadowOnly { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public bool DrawByReflectCam { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public bool DrawOnlyReflectCam { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public byte EnableOnAboveShadow { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public bool DisablePointLightEffect { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public byte UnkE17 { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public int UnkE18 { get; set; }

/// <summary>
/// Allows multiple parts to be identified by the same entity ID.
/// </summary>
[EnemyProperty]
public uint[] EntityGroupIDs { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public short UnkE3C { get; set; }

/// <summary>
/// Unknown.
/// </summary>
[IgnoreProperty]
public short UnkE3E { get; set; }

private protected Part(string name)
Expand Down
Loading

0 comments on commit 560f448

Please sign in to comment.