Line endings: LF everywhere
.gitattributes forces LF (CRLF only for .bat/.cmd), core.autocrlf is off; files that differed only by CRLF are normalized.
This commit is contained in:
1 parent
5f3f4b0d82
commit
2b8eaa5452
2 files changed
+68
-38
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# Line endings: LF everywhere, on every OS, whatever core.autocrlf says.
|
||||
* text=auto eol=lf
|
||||
|
||||
# cmd.exe misreads labels and goto in LF batch files, so they stay CRLF.
|
||||
*.bat text eol=crlf
|
||||
*.cmd text eol=crlf
|
||||
|
||||
# Binaries: never converted, never diffed as text.
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
*.jpeg binary
|
||||
*.webp binary
|
||||
*.svg text
|
||||
*.ogg binary
|
||||
*.wav binary
|
||||
*.mp3 binary
|
||||
*.ttf binary
|
||||
*.otf binary
|
||||
*.woff binary
|
||||
*.woff2 binary
|
||||
*.dll binary
|
||||
*.so binary
|
||||
*.dylib binary
|
||||
*.pdb binary
|
||||
*.exe binary
|
||||
*.zip binary
|
||||
*.pck binary
|
||||
*.moc3 binary
|
||||
*.res binary
|
||||
*.scn binary
|
||||
@@ -1,38 +1,38 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Cthangover.Tools.Services
|
||||
{
|
||||
/// <summary>One scenario attached to a scene node (shown on the graph node and in its detail links).</summary>
|
||||
public sealed class ScenarioGraphLink
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public int Priority { get; set; }
|
||||
public string Key { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>One scene of the cross-scenario graph: owning mod, background list, start-scene flag and its scenarios.</summary>
|
||||
public sealed class SceneGraphNode
|
||||
{
|
||||
public string SceneName { get; set; }
|
||||
public string ModId { get; set; }
|
||||
public int ScenarioCount { get; set; }
|
||||
public List<string> Backgrounds { get; set; } = new();
|
||||
public bool IsStartScene { get; set; }
|
||||
public List<ScenarioGraphLink> Scenarios { get; set; } = new();
|
||||
public bool HasErrors { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Directed switch-target link between two scenes of the graph.</summary>
|
||||
public sealed class SceneGraphEdge
|
||||
{
|
||||
public string FromScene { get; set; }
|
||||
public string ToScene { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Complete graph model consumed by <c>ScenarioGraphView</c>.</summary>
|
||||
public sealed class SceneGraphData
|
||||
{
|
||||
public List<SceneGraphNode> Nodes { get; set; } = new();
|
||||
public List<SceneGraphEdge> Edges { get; set; } = new();
|
||||
}
|
||||
}
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Cthangover.Tools.Services
|
||||
{
|
||||
/// <summary>One scenario attached to a scene node (shown on the graph node and in its detail links).</summary>
|
||||
public sealed class ScenarioGraphLink
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public int Priority { get; set; }
|
||||
public string Key { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>One scene of the cross-scenario graph: owning mod, background list, start-scene flag and its scenarios.</summary>
|
||||
public sealed class SceneGraphNode
|
||||
{
|
||||
public string SceneName { get; set; }
|
||||
public string ModId { get; set; }
|
||||
public int ScenarioCount { get; set; }
|
||||
public List<string> Backgrounds { get; set; } = new();
|
||||
public bool IsStartScene { get; set; }
|
||||
public List<ScenarioGraphLink> Scenarios { get; set; } = new();
|
||||
public bool HasErrors { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Directed switch-target link between two scenes of the graph.</summary>
|
||||
public sealed class SceneGraphEdge
|
||||
{
|
||||
public string FromScene { get; set; }
|
||||
public string ToScene { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Complete graph model consumed by <c>ScenarioGraphView</c>.</summary>
|
||||
public sealed class SceneGraphData
|
||||
{
|
||||
public List<SceneGraphNode> Nodes { get; set; } = new();
|
||||
public List<SceneGraphEdge> Edges { get; set; } = new();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user