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

Remap UniqueIDs to use multiple GameWorld resources simulatanously. More...

Inheritance diagram for Dragengine.Preloading.UniqueIDRemapper:

Classes

class  RemapEntry
 Immutable remap entry. More...
 

Public Member Functions

void add (RemapEntry remapEntry)
 Add remap entry. More...
 
RemapEntry add (UniqueID firstID, UniqueID lastID, UniqueID target)
 Add remap entry. More...
 
void forEach (Block ablock)
 Visit remap entries with block with parameter RemapEntry. More...
 
RemapEntry getAt (int index)
 Remap entry at index. More...
 
RemapEntry getContaining (UniqueID id)
 Remap entry containing ID or null if absent. More...
 
int getCount ()
 Number of remap entries. More...
 
UniqueIDRemapper new ()
 Create unique id mapper. More...
 
void removeAll ()
 Remove all remap entries. More...
 
void writeToFile (FileWriter writer)
 Write to file. More...
 

Static Public Member Functions

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

Detailed Description

Remap UniqueIDs to use multiple GameWorld resources simulatanously.

Member Function Documentation

◆ add() [1/2]

void Dragengine.Preloading.UniqueIDRemapper.add ( RemapEntry  remapEntry)

Add remap entry.

◆ add() [2/2]

RemapEntry Dragengine.Preloading.UniqueIDRemapper.add ( UniqueID  firstID,
UniqueID  lastID,
UniqueID  target 
)

Add remap entry.

Entry remaps IDs from range (firstID..lastID) to (target..target+(lastID-firstID)).

Returns
Added entry.

◆ forEach()

void Dragengine.Preloading.UniqueIDRemapper.forEach ( Block  ablock)

Visit remap entries with block with parameter RemapEntry.

◆ getAt()

RemapEntry Dragengine.Preloading.UniqueIDRemapper.getAt ( int  index)

Remap entry at index.

◆ getContaining()

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

Remap entry containing ID or null if absent.

◆ getCount()

int Dragengine.Preloading.UniqueIDRemapper.getCount ( )

Number of remap entries.

◆ new()

UniqueIDRemapper Dragengine.Preloading.UniqueIDRemapper.new ( )

Create unique id mapper.

◆ readFromFile()

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

Read from file.

◆ removeAll()

void Dragengine.Preloading.UniqueIDRemapper.removeAll ( )

Remove all remap entries.

◆ writeToFile()

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

Write to file.


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