Class VertexGraphsSection
- Namespace
- LlamaLogic.Architecture
- Assembly
- LlamaLogic.Architecture.dll
Represents the VertexGraphs section: graphs of vertices and edges, whose version decides the layout of the WallEdgesSection (🔓)
public sealed class VertexGraphsSection : LotArchitectureSection
- Inheritance
-
VertexGraphsSection
- Inherited Members
Remarks
Each graph holds vertices, under the tag "TREV" ("VERT" reversed), and edges, under the tag "TCES". What the graphs describe is not established; Sims 4 Studio calls this section WallCutout.
In in-game tests the first graph changed whenever walls, roofs, stairs or platforms were added or reshaped (including when a roof was replaced with another shape) and never for paint, trim, terrain or lot type changes; this is an observation only.
The layout follows the game's writer; on loading, the game reads only the section's version, which decides the layout of the WallEdgesSection, and does not read the graphs. Versions 5 through 9 are supported, and the game writes version 9; the lots examined hold versions 5 through 9.
Layout: Version, then the Graphs: three before version 8 and four from version 8 on, the numbers of graph objects the game's reader resets for those versions.
Constructors
VertexGraphsSection()
Initializes a new instance of the VertexGraphsSection class
public VertexGraphsSection()
Properties
Graphs
Gets the graphs
public Collection<VertexGraph> Graphs { get; }
Property Value
Remarks
Their number must match Version: three before version 8, four from version 8 on.
Version
Gets/sets the version of the section, which decides its layout and that of the WallEdgesSection
public uint Version { get; set; }
Property Value
Remarks
Encoding throws an InvalidOperationException when the number of Graphs does not match the version, or when a table or list of the WallEdgesSection that the layout of this version lacks is not empty.
Exceptions
- ArgumentOutOfRangeException
The version is not 5 through 9