C# Класс FSO.Content.ChangeManager

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

BlockingResMod() публичный Метод

public BlockingResMod ( ResAction action ) : void
action ResAction
Результат void

ChunkChanged() публичный Метод

public ChunkChanged ( IffChunk chunk ) : void
chunk FSO.Files.Formats.IFF.IffChunk
Результат void

DiscardChange() публичный Метод

public DiscardChange ( IffChunk chunk ) : void
chunk FSO.Files.Formats.IFF.IffChunk
Результат void

DiscardChange() публичный Метод

public DiscardChange ( IffFile file ) : void
file IffFile
Результат void

DiscardChanges() публичный Метод

public DiscardChanges ( IEnumerable chunks ) : void
chunks IEnumerable
Результат void

DiscardChanges() публичный Метод

public DiscardChanges ( IEnumerable files ) : void
files IEnumerable
Результат void

GetChangeList() публичный Метод

public GetChangeList ( ) : HashSet
Результат HashSet

IffChanged() публичный Метод

public IffChanged ( IffFile file ) : void
file IffFile
Результат void

Invoke() публичный Метод

public Invoke ( Delegate func ) : void
func System.Delegate
Результат void

QueueResMod() публичный Метод

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
Результат void

RegisterObjects() публичный Метод

public RegisterObjects ( IffFile file ) : void
file IffFile
Результат void

RunResModifications() публичный Метод

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
Результат void

SaveChange() публичный Метод

public SaveChange ( IffFile file ) : void
file IffFile
Результат void

SaveChanges() публичный Метод

public SaveChanges ( IEnumerable files ) : void
files IEnumerable
Результат void

UnregisterObjects() публичный Метод

public UnregisterObjects ( IffFile file ) : void
file IffFile
Результат void