Editor
in package
Table of Contents
Methods
- __construct() : mixed
- applyValues() : mixed
- findGameFile() : SplFileInfo
- getArchiveBuilder() : ArchiveBuilderInterface
- getArchiveExtractor() : ArchiveExtractorInterface
- getArchiveNode() : ArchiveNode
- getArchiveNodes() : iterable<string|int, mixed>
- getFileNode() : FileContainer
- getSavegameNode() : SavegameNode
- load() : void
- loadAllArchives() : void
- loadArchive() : void
- shouldLoadArchive() : bool
- 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 $name) : SplFileInfo
Parameters
- $name : 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 $archiveName) : ArchiveNode
Parameters
- $archiveName : string
Return values
ArchiveNodegetArchiveNodes()
public
getArchiveNodes() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>getFileNode()
public
getFileNode(string $archiveName, string $fileName) : FileContainer
Parameters
- $archiveName : string
- $fileName : string
Return values
FileContainergetSavegameNode()
public
getSavegameNode() : SavegameNode
Return values
SavegameNodeload()
public
load() : void
loadAllArchives()
public
loadAllArchives() : void
loadArchive()
public
loadArchive(string $archiveId) : void
Parameters
- $archiveId : string
shouldLoadArchive()
public
shouldLoadArchive(mixed $name) : bool
Parameters
- $name : mixed
Return values
boolwriteGameFile()
public
writeGameFile(string $name, FileWriterInterface $writer) : SplFileInfo
Parameters
- $name : string
- $writer : FileWriterInterface