WKLib 0.2.3
A modding library for White Knuckle
Loading...
Searching...
No Matches
WKLib.API.Gamemodes.SubRegionBuilder Class Reference

Builds an M_Subregion from a name plus a list of M_Level instances
This builder simplifies the creation of subregion ScriptableObjects. More...

+ Collaboration diagram for WKLib.API.Gamemodes.SubRegionBuilder:

Public Member Functions

SubRegionBuilder WithName (string subregionName)
 Sets the name for the subregion. This name will be used for both display and internal identification.
 
SubRegionBuilder WithLevels (List< M_Level > levels)
 Sets the list of M_Level instances that comprise this subregion.
 
M_Subregion Build ()
 Constructs and returns a new M_Subregion instance based on the properties configured in this builder.
 

Detailed Description

Builds an M_Subregion from a name plus a list of M_Level instances
This builder simplifies the creation of subregion ScriptableObjects.

Definition at line 11 of file SubRegionBuilder.cs.

Member Function Documentation

◆ Build()

M_Subregion WKLib.API.Gamemodes.SubRegionBuilder.Build ( )

Constructs and returns a new M_Subregion instance based on the properties configured in this builder.

Returns
A new M_Subregion object populated with the specified settings

Definition at line 42 of file SubRegionBuilder.cs.

◆ WithLevels()

SubRegionBuilder WKLib.API.Gamemodes.SubRegionBuilder.WithLevels ( List< M_Level > levels)

Sets the list of M_Level instances that comprise this subregion.

Parameters
levelsA List<T> of M_Level instances to be included in the subregion
Returns
The current SubRegionBuilder instance for fluent chaining

Definition at line 32 of file SubRegionBuilder.cs.

◆ WithName()

SubRegionBuilder WKLib.API.Gamemodes.SubRegionBuilder.WithName ( string subregionName)

Sets the name for the subregion. This name will be used for both display and internal identification.

Parameters
subregionNameThe desired name for the subregion
Returns
The current SubRegionBuilder instance for fluent chaining

Definition at line 21 of file SubRegionBuilder.cs.


The documentation for this class was generated from the following file: