Table of Contents

Class UntrustedViewLimits

Namespace
BSGameLib.UI.Builder
Assembly
BSGameLib.UI.dll

How much a view from somewhere other than the game -- a server's -- may hold, so that a hostile one cannot take the client down by size alone.

public sealed record UntrustedViewLimits : IEquatable<UntrustedViewLimits>
Inheritance
UntrustedViewLimits
Implements
Inherited Members

Constructors

UntrustedViewLimits(int, int, int)

How much a view from somewhere other than the game -- a server's -- may hold, so that a hostile one cannot take the client down by size alone.

public UntrustedViewLimits(int MostCharacters = 262144, int MostDepth = 32, int MostElements = 2000)

Parameters

MostCharacters int

The longest its markup may be.

MostDepth int

How deeply its elements may nest.

MostElements int

How many elements it may have in all, controls and their parts.

Properties

Default

What a view is held to when the game names no limits of its own.

public static UntrustedViewLimits Default { get; }

Property Value

UntrustedViewLimits

MostCharacters

The longest its markup may be.

public int MostCharacters { get; init; }

Property Value

int

MostDepth

How deeply its elements may nest.

public int MostDepth { get; init; }

Property Value

int

MostElements

How many elements it may have in all, controls and their parts.

public int MostElements { get; init; }

Property Value

int