C# Class FSO.Content.ChangeManager

Afficher le fichier Open project: RHY3756547/FreeSO Class Usage Examples

Méthodes publiques

Méthode Description
BlockingResMod ( ResAction action ) : void
ChunkChanged ( IffChunk chunk ) : void
DiscardChange ( IffChunk chunk ) : void
DiscardChange ( IffFile file ) : void
DiscardChanges ( IEnumerable chunks ) : void
DiscardChanges ( IEnumerable files ) : void
GetChangeList ( ) : HashSet
IffChanged ( IffFile file ) : void
Invoke ( Delegate func ) : void
QueueResMod ( ResAction action ) : void

Queues an action to run on a game resource, which will be run later by the game thread.

RegisterObjects ( IffFile file ) : void
RunResModifications ( ) : void

Runs the queued resource modifications. Should be executed from the game thread, so that any queued operations are run on the game thread. The chunks in use will be locked - it's up to external threads to consider that when retrieving a chunk's information for use.

SaveChange ( IffFile file ) : void
SaveChanges ( IEnumerable files ) : void
UnregisterObjects ( IffFile file ) : void

Method Details

BlockingResMod() public méthode

public BlockingResMod ( ResAction action ) : void
action ResAction
Résultat void

ChunkChanged() public méthode

public ChunkChanged ( IffChunk chunk ) : void
chunk FSO.Files.Formats.IFF.IffChunk
Résultat void

DiscardChange() public méthode

public DiscardChange ( IffChunk chunk ) : void
chunk FSO.Files.Formats.IFF.IffChunk
Résultat void

DiscardChange() public méthode

public DiscardChange ( IffFile file ) : void
file IffFile
Résultat void

DiscardChanges() public méthode

public DiscardChanges ( IEnumerable chunks ) : void
chunks IEnumerable
Résultat void

DiscardChanges() public méthode

public DiscardChanges ( IEnumerable files ) : void
files IEnumerable
Résultat void

GetChangeList() public méthode

public GetChangeList ( ) : HashSet
Résultat HashSet

IffChanged() public méthode

public IffChanged ( IffFile file ) : void
file IffFile
Résultat void

Invoke() public méthode

public Invoke ( Delegate func ) : void
func System.Delegate
Résultat void

QueueResMod() public méthode

Queues an action to run on a game resource, which will be run later by the game thread.
public QueueResMod ( ResAction action ) : void
action ResAction
Résultat void

RegisterObjects() public méthode

public RegisterObjects ( IffFile file ) : void
file IffFile
Résultat void

RunResModifications() public méthode

Runs the queued resource modifications. Should be executed from the game thread, so that any queued operations are run on the game thread. The chunks in use will be locked - it's up to external threads to consider that when retrieving a chunk's information for use.
public RunResModifications ( ) : void
Résultat void

SaveChange() public méthode

public SaveChange ( IffFile file ) : void
file IffFile
Résultat void

SaveChanges() public méthode

public SaveChanges ( IEnumerable files ) : void
files IEnumerable
Résultat void

UnregisterObjects() public méthode

public UnregisterObjects ( IffFile file ) : void
file IffFile
Résultat void