Drag[en]gine Script Module DragonScript  1.23
Dragengine.Preloading.UniqueIDRemapper.RemapEntry Class Reference

Immutable remap entry. More...

Inheritance diagram for Dragengine.Preloading.UniqueIDRemapper.RemapEntry:

Public Member Functions

UniqueID getFirstID ()
 First UniqueID to remap. More...
 
UniqueID getLastID ()
 Last UniqueID just outside the remap range. More...
 
UniqueID getOffset ()
 Offset to add to UniqueID ids to remap them. More...
 
UniqueID getRemappedFirstID ()
 First remapped UniqueID. More...
 
UniqueID getRemappedLastID ()
 Last remapped UniqueID just outside the range. More...
 
bool inRange (UniqueID id)
 ID falls into range. More...
 
bool inRemappedRange (UniqueID id)
 ID falls into remapped range. More...
 
RemapEntry new (UniqueID firstID, UniqueID lastID, UniqueID offset)
 Create immutable remap entry. More...
 
bool notInRange (UniqueID id)
 ID does not fall into range. More...
 
bool notInRemapedRange (UniqueID id)
 ID does not fall into remapped range. More...
 
UniqueID remap (UniqueID id)
 Remap ID if falling into range. More...
 
void writeToFile (FileWriter writer)
 Write to file. More...
 

Static Public Member Functions

static RemapEntry readFromFile (FileReader reader)
 Read from file. More...
 

Public Attributes

UniqueID pFirstID
 First UniqueID to remap. More...
 
UniqueID pLastID
 Last UniqueID just outside the remap range. More...
 
UniqueID pOffset
 Offset to add to UniqueID ids to remap them. More...
 
UniqueID pRemappedFirstID
 First remapped UniqueID. More...
 
UniqueID pRemappedLastID
 Last remapped UniqueID just outside the range. More...
 

Detailed Description

Immutable remap entry.

Member Function Documentation

◆ getFirstID()

UniqueID Dragengine.Preloading.UniqueIDRemapper.RemapEntry.getFirstID ( )

First UniqueID to remap.

◆ getLastID()

UniqueID Dragengine.Preloading.UniqueIDRemapper.RemapEntry.getLastID ( )

Last UniqueID just outside the remap range.

◆ getOffset()

UniqueID Dragengine.Preloading.UniqueIDRemapper.RemapEntry.getOffset ( )

Offset to add to UniqueID ids to remap them.

◆ getRemappedFirstID()

UniqueID Dragengine.Preloading.UniqueIDRemapper.RemapEntry.getRemappedFirstID ( )

First remapped UniqueID.

◆ getRemappedLastID()

UniqueID Dragengine.Preloading.UniqueIDRemapper.RemapEntry.getRemappedLastID ( )

Last remapped UniqueID just outside the range.

◆ inRange()

bool Dragengine.Preloading.UniqueIDRemapper.RemapEntry.inRange ( UniqueID  id)

ID falls into range.

◆ inRemappedRange()

bool Dragengine.Preloading.UniqueIDRemapper.RemapEntry.inRemappedRange ( UniqueID  id)

ID falls into remapped range.

◆ new()

RemapEntry Dragengine.Preloading.UniqueIDRemapper.RemapEntry.new ( UniqueID  firstID,
UniqueID  lastID,
UniqueID  offset 
)

Create immutable remap entry.

◆ notInRange()

bool Dragengine.Preloading.UniqueIDRemapper.RemapEntry.notInRange ( UniqueID  id)

ID does not fall into range.

◆ notInRemapedRange()

bool Dragengine.Preloading.UniqueIDRemapper.RemapEntry.notInRemapedRange ( UniqueID  id)

ID does not fall into remapped range.

◆ readFromFile()

static RemapEntry Dragengine.Preloading.UniqueIDRemapper.RemapEntry.readFromFile ( FileReader  reader)
static

Read from file.

◆ remap()

UniqueID Dragengine.Preloading.UniqueIDRemapper.RemapEntry.remap ( UniqueID  id)

Remap ID if falling into range.

Returns
Offset ID if falling into range otherwise id.

◆ writeToFile()

void Dragengine.Preloading.UniqueIDRemapper.RemapEntry.writeToFile ( FileWriter  writer)

Write to file.

Member Data Documentation

◆ pFirstID

UniqueID Dragengine.Preloading.UniqueIDRemapper.RemapEntry.pFirstID

First UniqueID to remap.

◆ pLastID

UniqueID Dragengine.Preloading.UniqueIDRemapper.RemapEntry.pLastID

Last UniqueID just outside the remap range.

◆ pOffset

UniqueID Dragengine.Preloading.UniqueIDRemapper.RemapEntry.pOffset

Offset to add to UniqueID ids to remap them.

◆ pRemappedFirstID

UniqueID Dragengine.Preloading.UniqueIDRemapper.RemapEntry.pRemappedFirstID

First remapped UniqueID.

◆ pRemappedLastID

UniqueID Dragengine.Preloading.UniqueIDRemapper.RemapEntry.pRemappedLastID

Last remapped UniqueID just outside the range.


The documentation for this class was generated from the following file: