C# Class FSO.Content.ChangeManager

Exibir arquivo Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method 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 method

public BlockingResMod ( ResAction action ) : void
action ResAction
return void

ChunkChanged() public method

public ChunkChanged ( IffChunk chunk ) : void
chunk FSO.Files.Formats.IFF.IffChunk
return void

DiscardChange() public method

public DiscardChange ( IffChunk chunk ) : void
chunk FSO.Files.Formats.IFF.IffChunk
return void

DiscardChange() public method

public DiscardChange ( IffFile file ) : void
file IffFile
return void

DiscardChanges() public method

public DiscardChanges ( IEnumerable chunks ) : void
chunks IEnumerable
return void

DiscardChanges() public method

public DiscardChanges ( IEnumerable files ) : void
files IEnumerable
return void

GetChangeList() public method

public GetChangeList ( ) : HashSet
return HashSet

IffChanged() public method

public IffChanged ( IffFile file ) : void
file IffFile
return void

Invoke() public method

public Invoke ( Delegate func ) : void
func System.Delegate
return void

QueueResMod() public method

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
return void

RegisterObjects() public method

public RegisterObjects ( IffFile file ) : void
file IffFile
return void

RunResModifications() public method

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
return void

SaveChange() public method

public SaveChange ( IffFile file ) : void
file IffFile
return void

SaveChanges() public method

public SaveChanges ( IEnumerable files ) : void
files IEnumerable
return void

UnregisterObjects() public method

public UnregisterObjects ( IffFile file ) : void
file IffFile
return void