Table of Contents

Class ServerBandwidthKind

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

Which tier a bandwidth row belongs to, as stored in server_kind.

public static class ServerBandwidthKind
Inheritance
ServerBandwidthKind
Inherited Members

Remarks

The numbers are FishMMO.Server.Core.ServerType's (Login 1, World 2, Scene 3). This assembly cannot reference that one, so the pairing is pinned by a test (ServerBandwidthLedgerTests) rather than by a shared type, as the entity configuration README describes for every enum-valued column.

Fields

All

Every tier, in the order the panel lists them.

public static readonly int[] All

Field Value

int[]

Login

A login server.

public const int Login = 1

Field Value

int

Scene

A scene server.

public const int Scene = 3

Field Value

int

World

A world server.

public const int World = 2

Field Value

int

Methods

IsValid(int)

Whether kind is one of the three tiers.

public static bool IsValid(int kind)

Parameters

kind int

Returns

bool

Name(int)

The tier's name as the panel's routes spell it: login, world or scene.

public static string Name(int kind)

Parameters

kind int

Returns

string

TryParse(string?, out int)

Parses login, world or scene, ignoring case and surrounding space.

public static bool TryParse(string? text, out int kind)

Parameters

text string
kind int

Returns

bool