Editor
in package
Table of Contents
Methods
- __construct() : mixed
- applyValues() : mixed
- findGameFile() : SplFileInfo
- getArchiveBuilder() : ArchiveBuilderInterface
- getArchiveExtractor() : ArchiveExtractorInterface
- getArchiveNode() : ArchiveNode
- getFileNode() : FileContainer
- getSavegameNode() : SavegameNode
- load() : void
- loadArchive() : ArchiveNode
- loadFile() : FileContainer
- loadSavegame() : SavegameNode
- writeGameFile() : SplFileInfo
Methods
__construct()
public
__construct(EditorConfig $config) : mixed
Parameters
- $config : EditorConfig
applyValues()
public
applyValues(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
findGameFile()
public
findGameFile(string $path) : SplFileInfo
Parameters
- $path : string
Return values
SplFileInfogetArchiveBuilder()
public
getArchiveBuilder(string $type) : ArchiveBuilderInterface
Parameters
- $type : string
Return values
ArchiveBuilderInterfacegetArchiveExtractor()
public
getArchiveExtractor(string $type) : ArchiveExtractorInterface
Parameters
- $type : string
Return values
ArchiveExtractorInterfacegetArchiveNode()
public
getArchiveNode(string $archivePath) : ArchiveNode
Parameters
- $archivePath : string
Return values
ArchiveNodegetFileNode()
public
getFileNode(string $archiveName, string $fileName) : FileContainer
Parameters
- $archiveName : string
- $fileName : string
Return values
FileContainergetSavegameNode()
public
getSavegameNode() : SavegameNode
Return values
SavegameNodeload()
public
load() : void
loadArchive()
public
loadArchive(string $archivePath[, bool $loadFiles = false ]) : ArchiveNode
Parameters
- $archivePath : string
- $loadFiles : bool = false
Return values
ArchiveNodeloadFile()
public
loadFile(string $archivePath, string $fileId) : FileContainer
Parameters
- $archivePath : string
- $fileId : string
Return values
FileContainerloadSavegame()
public
loadSavegame([bool $loadArchives = false ][, bool $loadFiles = false ]) : SavegameNode
Parameters
- $loadArchives : bool = false
- $loadFiles : bool = false
Return values
SavegameNodewriteGameFile()
public
writeGameFile(string $path, StringWriterInterface $writer) : SplFileInfo
Parameters
- $path : string
- $writer : StringWriterInterface