跳到主要内容
版本:Next

Class SessionScaling

Namespace: OblivionMp.Sdk.Serverside
Assembly: OblivionMp.Sdk.Serverside.dll

The level every client in the session resolves leveled lists at (creature spawns, container loot). The level blends between the lowest and the highest player level in the session: 0 follows the lowest, 1 the highest, 0.5 sits halfway. Until one of the setters is called each client keeps its own level.

public sealed class SessionScaling

Inheritance​

object ← SessionScaling

Inherited Members​

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors​

SessionScaling(IEntities)​

The level every client in the session resolves leveled lists at (creature spawns, container loot). The level blends between the lowest and the highest player level in the session: 0 follows the lowest, 1 the highest, 0.5 sits halfway. Until one of the setters is called each client keeps its own level.

public SessionScaling(IEntities entities)

Parameters​

entities IEntities

Methods​

CurrentLevel()​

The level leveled lists roll at now, or 0 while unset or before any player has a level.

public ushort CurrentLevel()

Returns​

ushort

SetTo(float)​

Rolls leveled lists at levelBlend between the lowest (0) and the highest (1) player level.

public void SetTo(float levelBlend)

Parameters​

levelBlend float

SetToHighestLevel()​

Rolls leveled lists at the highest player level in the session.

public void SetToHighestLevel()

SetToLowestLevel()​

Rolls leveled lists at the lowest player level in the session.

public void SetToLowestLevel()

SetToMidLevel()​

Rolls leveled lists halfway between the lowest and the highest player level.

public void SetToMidLevel()
  • Constructors
    • SessionScaling(IEntities)
  • Methods
    • CurrentLevel()
    • SetTo(float)
    • SetToHighestLevel()
    • SetToLowestLevel()
    • SetToMidLevel()