mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
31 lines
543 B
C#
31 lines
543 B
C#
namespace AssetRipper.Yaml;
|
|
|
|
/// <summary>
|
|
/// Specifies the style of a sequence.
|
|
/// </summary>
|
|
public enum SequenceStyle
|
|
{
|
|
/// <summary>
|
|
/// The block sequence style
|
|
/// </summary>
|
|
Block,
|
|
|
|
/// <summary>
|
|
/// The block sequence style but with curly braces
|
|
/// </summary>
|
|
BlockCurve,
|
|
|
|
/// <summary>
|
|
/// The flow sequence style
|
|
/// </summary>
|
|
Flow,
|
|
}
|
|
|
|
public static class SequenceStyleExtensions
|
|
{
|
|
public static bool IsAnyBlock(this SequenceStyle _this)
|
|
{
|
|
return _this is SequenceStyle.Block or SequenceStyle.BlockCurve;
|
|
}
|
|
}
|