Table of Contents

Class YamlUtility

Namespace
Uncreated.Warfare.Util
Assembly
Uncreated.Warfare.dll
public static class YamlUtility
Inheritance
YamlUtility
Inherited Members

Methods

CheckMatchesMapFilter(string)

Look for a Map or Maps property in the given yaml document and compare it to the current map.

public static bool CheckMatchesMapFilter(string filePath)

Parameters

filePath string

Returns

bool

Remarks

true if either there is no map filter or if the current map is included in the map filter, otherwise false.

CheckMatchesMapFilterAndReadWeight(string, out double)

Look for a Map or Maps property in the given yaml document and compare it to the current map, and read a weight (defaulting to 1).

public static bool CheckMatchesMapFilterAndReadWeight(string filePath, out double weight)

Parameters

filePath string
weight double

Returns

bool

Remarks

true if either there is no map filter or if the current map is included in the map filter, otherwise false.