Skip to content

Commit

Permalink
Add exceptions parameter to all external nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 committed Jul 17, 2024
1 parent be0afed commit ab4b4be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,11 @@ private void AppendPropertiesRecursive(IEnumerable<IChunkMember> members, HashSe

sb.Append(" Get");
sb.Append(propName);
sb.Append("(GbxReadSettings settings = default) => ");
sb.Append("(GbxReadSettings settings = default, bool exceptions = false) => ");
sb.Append(fieldName);
sb.Append("File?.GetNode(ref ");
sb.Append(fieldName);
sb.Append(", settings) ?? ");
sb.Append(", settings, exceptions) ?? ");
sb.Append(fieldName);
sb.AppendLine(";");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public partial class NPlugItem_SVariant
public CMwNod? EntityModel { get => entityModelFile?.GetNode(ref entityModel) ?? entityModel; set => entityModel = value; }
private Components.GbxRefTableFile? entityModelFile;
public Components.GbxRefTableFile? EntityModelFile { get => entityModelFile; set => entityModelFile = value; }
public CMwNod? GetEntityModel(GbxReadSettings settings = default) => entityModelFile?.GetNode(ref entityModel, settings);
public CMwNod? GetEntityModel(GbxReadSettings settings = default, bool exceptions = false) => entityModelFile?.GetNode(ref entityModel, settings, exceptions);

private bool hiddenInManualCycle;
public bool HiddenInManualCycle { get => hiddenInManualCycle; set => hiddenInManualCycle = value; }
Expand Down
2 changes: 1 addition & 1 deletion Src/GBX.NET/Engines/Plug/CPlugGameSkin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public partial class Fid : IReadableWritable
public CMwNod? Node { get => nodeFile?.GetNode(ref node) ?? node; set => node = value; }
private Components.GbxRefTableFile? nodeFile;
public Components.GbxRefTableFile? NodeFile { get => nodeFile; set => nodeFile = value; }
public CMwNod? GetNode(GbxReadSettings settings = default) => nodeFile?.GetNode(ref node, settings) ?? node;
public CMwNod? GetNode(GbxReadSettings settings = default, bool exceptions = false) => nodeFile?.GetNode(ref node, settings, exceptions) ?? node;

public string Directory { get => directory; set => directory = value; }
public bool U01 { get => u01; set => u01 = value; }
Expand Down
2 changes: 1 addition & 1 deletion Src/GBX.NET/Engines/Plug/CPlugPrefab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public sealed partial class EntRef
public CMwNod? Model { get => modelFile?.GetNode(ref model) ?? model; set => model = value; }
private Components.GbxRefTableFile? modelFile;
public Components.GbxRefTableFile? ModelFile { get => modelFile; set => modelFile = value; }
public CMwNod? GetModel(GbxReadSettings settings = default) => modelFile?.GetNode(ref model, settings);
public CMwNod? GetModel(GbxReadSettings settings = default, bool exceptions = false) => modelFile?.GetNode(ref model, settings, exceptions);

private Quat rotation;
public Quat Rotation { get => rotation; set => rotation = value; }
Expand Down

0 comments on commit ab4b4be

Please sign in to comment.