C# 클래스 OpenIII.GameFiles.ArchiveFile

IMG/CDIMAGE archive files for RenderWare-based GTA games implementation Класс для работы с IMG/CDIMAGE архивами для игр GTA на движке RenderWare
상속: OpenIII.GameFiles.GameFile
파일 보기 프로젝트 열기: worm202/OpenIII 1 사용 예제들

공개 메소드들

메소드 설명
AddNewFileEntry ( int offset, OpenIII.GameFiles.GameFile file ) : OpenIII.GameFiles.GameFile

Adds new table of contents entry for the new file in defined offset to the ArchiveFile

Добавляет новую запись о файле file в таблицу размещения файлов в архиве ArchiveFile с заданным смещением offset

ArchiveFile ( string filePath ) : System

ArchiveFile constructor

Конструктор архива ArchiveFile

CalculateOffsetForNewEntry ( ) : int

Gets the new offset in file that can be used to write new file

Получение нового смещения в архиве для записи нового файла

Create ( string path ) : ArchiveFile
CreateInstance ( int offset, int size, string filename, ArchiveFile parentFile ) : ArchiveFile

Creates new handle instance to use archive that is archived based on the archive version

Создание нового указателя на архив, который находится в другом архиве на основании его версии

This function is not implemented. It is required by GameFile to be implemented but this configuration is never used in the real life.Эта функция не реализована. Она определена в GameFile как абстрактная и её требуется определить для ArchiveFile. Однако в реальности конфигурация с вложенными IMG файлами нигде не используется.

CreateInstance ( string path ) : ArchiveFile

Creates new handle instance to use archive from filesystem based on the archive version

Создание нового указателя на архив, расположенный в файле на основании его версии

DeleteFile ( OpenIII.GameFiles.GameFile entry ) : void

Deletes GameFile from the current ArchiveFile

Удаляет файл GameFile из текущего архива ArchiveFile

DeleteFileEntry ( GameFile file ) : void

Deletes the table of contents entry for the GameFile from the current ArchiveFile

Удаляет запись о файле GameFile из текущего архива ArchiveFile

ExtractFile ( GameFile entry, string destination ) : void

Экспортирует файл из архива

ExtractFileAsync ( GameFile entry, string destination, CancellationToken ct, UpdateProgressDelegate callback ) : void
GetFileList ( ) : List

Gets file handles list to access all archived GameFile files

Получение списка указателей на все архивированные файлы GameFile

InsertFile ( GameFile sourceFile ) : void

Inserts new GameFile into current ArchiveFile

Добавляет новый файл GameFile в текущий архив ArchiveFile

InsertFileAsync ( GameFile sourceFile, CancellationToken ct, UpdateProgressDelegate callback ) : void
RenameFile ( GameFile entry, string newName ) : void

Renames entry to newName in the current ArchiveFile

Переименовывает файл entry в newName в текущем архиве ArchiveFile

This function is not implemented yet.Эта функция ещё не реализована.

ReplaceFile ( GameFile oldEntry, GameFile newEntry ) : void

Replaces oldEntry in the ArchiveFile with new file newEntry

Заменяет файл oldEntry в архиве ArchiveFile на новый файл newEntry

This function is not implemented yet.Эта функция ещё не реализована.

메소드 상세

AddNewFileEntry() 공개 추상적인 메소드

Adds new table of contents entry for the new file in defined offset to the ArchiveFile Добавляет новую запись о файле file в таблицу размещения файлов в архиве ArchiveFile с заданным смещением offset
public abstract AddNewFileEntry ( int offset, OpenIII.GameFiles.GameFile file ) : OpenIII.GameFiles.GameFile
offset int Starting offset of a
file OpenIII.GameFiles.GameFile that needs new entry to be defined
리턴 OpenIII.GameFiles.GameFile

ArchiveFile() 공개 메소드

ArchiveFile constructor Конструктор архива ArchiveFile
public ArchiveFile ( string filePath ) : System
filePath string path
리턴 System

CalculateOffsetForNewEntry() 공개 메소드

Gets the new offset in file that can be used to write new file Получение нового смещения в архиве для записи нового файла
public CalculateOffsetForNewEntry ( ) : int
리턴 int

Create() 공개 정적인 메소드

public static Create ( string path ) : ArchiveFile
path string
리턴 ArchiveFile

CreateInstance() 공개 정적인 메소드

Creates new handle instance to use archive that is archived based on the archive version Создание нового указателя на архив, который находится в другом архиве на основании его версии
This function is not implemented. It is required by GameFile to be implemented but this configuration is never used in the real life. Эта функция не реализована. Она определена в GameFile как абстрактная и её требуется определить для ArchiveFile. Однако в реальности конфигурация с вложенными IMG файлами нигде не используется.
Thrown on function call Вызывается при вызове функции
public static CreateInstance ( int offset, int size, string filename, ArchiveFile parentFile ) : ArchiveFile
offset int Offset of the file in the archive
size int File size in the archive
filename string File name
parentFile ArchiveFile where this file belongs to
리턴 ArchiveFile

CreateInstance() 공개 정적인 메소드

Creates new handle instance to use archive from filesystem based on the archive version Создание нового указателя на архив, расположенный в файле на основании его версии
public static CreateInstance ( string path ) : ArchiveFile
path string Archive file path
리턴 ArchiveFile

DeleteFile() 공개 메소드

Deletes GameFile from the current ArchiveFile Удаляет файл GameFile из текущего архива ArchiveFile
public DeleteFile ( OpenIII.GameFiles.GameFile entry ) : void
entry OpenIII.GameFiles.GameFile to be deleted
리턴 void

DeleteFileEntry() 공개 추상적인 메소드

Deletes the table of contents entry for the GameFile from the current ArchiveFile Удаляет запись о файле GameFile из текущего архива ArchiveFile
public abstract DeleteFileEntry ( GameFile file ) : void
file GameFile which entry needs to be deleted
리턴 void

ExtractFile() 공개 메소드

Экспортирует файл из архива
public ExtractFile ( GameFile entry, string destination ) : void
entry GameFile
destination string
리턴 void

ExtractFileAsync() 공개 메소드

public ExtractFileAsync ( GameFile entry, string destination, CancellationToken ct, UpdateProgressDelegate callback ) : void
entry GameFile
destination string
ct CancellationToken
callback UpdateProgressDelegate
리턴 void

GetFileList() 공개 추상적인 메소드

Gets file handles list to access all archived GameFile files Получение списка указателей на все архивированные файлы GameFile
public abstract GetFileList ( ) : List
리턴 List

InsertFile() 공개 메소드

Inserts new GameFile into current ArchiveFile Добавляет новый файл GameFile в текущий архив ArchiveFile
public InsertFile ( GameFile sourceFile ) : void
sourceFile GameFile to be inserted into the
리턴 void

InsertFileAsync() 공개 메소드

public InsertFileAsync ( GameFile sourceFile, CancellationToken ct, UpdateProgressDelegate callback ) : void
sourceFile GameFile
ct CancellationToken
callback UpdateProgressDelegate
리턴 void

RenameFile() 공개 메소드

Renames entry to newName in the current ArchiveFile Переименовывает файл entry в newName в текущем архиве ArchiveFile
This function is not implemented yet. Эта функция ещё не реализована.
public RenameFile ( GameFile entry, string newName ) : void
entry GameFile to be renamed
newName string New file name
리턴 void

ReplaceFile() 공개 메소드

Replaces oldEntry in the ArchiveFile with new file newEntry Заменяет файл oldEntry в архиве ArchiveFile на новый файл newEntry
This function is not implemented yet. Эта функция ещё не реализована.
public ReplaceFile ( GameFile oldEntry, GameFile newEntry ) : void
oldEntry GameFile Old in the that needs to be replaced
newEntry GameFile A replacement for the
리턴 void