Table of Contents

Class LayoutInfo

Namespace
Uncreated.Warfare.Layouts
Assembly
Uncreated.Warfare.dll

Stores information from config about a layout.

public class LayoutInfo : IDisposable
Inheritance
LayoutInfo
Implements
Inherited Members

Properties

Configuration

Binded configuration.

public LayoutInfoConfiguration Configuration { get; }

Property Value

LayoutInfoConfiguration

DisplayName

Display name of the layout. Defaults to the file name.

public required string DisplayName { get; init; }

Property Value

string

FilePath

File path of the configuration file.

public required string FilePath { get; init; }

Property Value

string

IsSeeding

If this layout is a special seeding layout, which can be activated and deactivated randomly when player count changes.

public required bool IsSeeding { get; init; }

Property Value

bool

Layout

Configuration info about the layout of the game.

public required IConfigurationRoot Layout { get; init; }

Property Value

IConfigurationRoot

LayoutType

Type of Layout to create.

public required Type LayoutType { get; init; }

Property Value

Type

Weight

Weight of this session being picked. Defaults to 1.

public required double Weight { get; init; }

Property Value

double

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

ResolveRelativePath(string)

Resolves a possibly relative path to this layout.

public string ResolveRelativePath(string path)

Parameters

path string

Returns

string