Barotrauma Client Doc
Barotrauma.IdRemap Class Reference

Public Member Functions

 IdRemap (XElement? parentElement, int offset)
 
void AssignMaxId (out ushort result)
 
ushort GetOffsetId (XElement element)
 
ushort GetOffsetId (int id)
 

Static Public Member Functions

static ushort DetermineNewOffset ()
 

Static Public Attributes

static readonly IdRemap DiscardId = new IdRemap(null, -1)
 

Detailed Description

Definition at line 10 of file IdRemap.cs.

Constructor & Destructor Documentation

◆ IdRemap()

Barotrauma.IdRemap.IdRemap ( XElement?  parentElement,
int  offset 
)

Definition at line 19 of file IdRemap.cs.

Member Function Documentation

◆ AssignMaxId()

void Barotrauma.IdRemap.AssignMaxId ( out ushort  result)

Definition at line 38 of file IdRemap.cs.

◆ DetermineNewOffset()

static ushort Barotrauma.IdRemap.DetermineNewOffset ( )
static

Definition at line 125 of file IdRemap.cs.

◆ GetOffsetId() [1/2]

ushort Barotrauma.IdRemap.GetOffsetId ( int  id)

Definition at line 91 of file IdRemap.cs.

◆ GetOffsetId() [2/2]

ushort Barotrauma.IdRemap.GetOffsetId ( XElement  element)

Definition at line 86 of file IdRemap.cs.

Member Data Documentation

◆ DiscardId

readonly IdRemap Barotrauma.IdRemap.DiscardId = new IdRemap(null, -1)
static

Definition at line 12 of file IdRemap.cs.