SetonixData class

Constructors

SetonixData(Archive archive, {ArchiveState state = const ArchiveState(), String identifier = ''})
SetonixData.empty()
SetonixData.fromData(List<int> data, [String? identifier])
SetonixData.fromMode(PackItem<GameMode>? mode, {Set<String> packs = const {}})
factory

Properties

archive → Archive
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
identifier → String
final
isEncrypted → bool
no setterinherited
password → String?
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → ArchiveState
finalinherited

Methods

changePassword(String? password) → SetonixData
inherited
export() → Archive
inherited
exportAsBytes() → Uint8List
inherited
getAllTranslations() → Iterable<MapEntry<String, PackTranslation>>
getAsset(String name) → Uint8List?
inherited
getAssets(String path, [bool removeExtension = false]) → Iterable<String>
inherited
getBackground(String id) → BackgroundDefinition?
getBackgroundItem(String id, [String namespace = '']) → PackItem<BackgroundDefinition>?
getBackgroundItems([String namespace = '']) → Iterable<PackItem<BackgroundDefinition>>
getBackgrounds() → Iterable<String>
getBoard(String id) → BoardDefinition?
getBoardItem(String id, [String namespace = '']) → PackItem<BoardDefinition>?
getBoardItems([String namespace = '']) → Iterable<PackItem<BoardDefinition>>
getBoards() → Iterable<String>
getDeck(String id) → DeckDefinition?
getDeckItem(String id, [String namespace = '']) → PackItem<DeckDefinition>?
getDeckItems([String namespace = '']) → Iterable<PackItem<DeckDefinition>>
getDecks() → Iterable<String>
getFigure(String id) → FigureDefinition?
getFigureItem(String id, [String namespace = '']) → PackItem<FigureDefinition>?
getFigureItems([String namespace = '']) → Iterable<PackItem<FigureDefinition>>
getFigures() → Iterable<String>
getInfo() → GameInfo?
getInfoOrDefault() → GameInfo
getMetadata() → FileMetadata?
getMetadataOrDefault() → FileMetadata
getMode(String id) → GameMode?
getModeItem(String id, [String namespace = '']) → PackItem<GameMode>?
getModes() → Iterable<String>
getModesData() → Map<String, GameMode>
getNote(String name) → String?
getNotes() → Iterable<String>
getScript(String id) → String?
getScripts() → Iterable<String>
getScriptState(String plugin) → String
getScriptStates() → Map<String, String>
getTable([String name = '']) → GameTable?
getTableOrDefault([String name = '']) → GameTable
getTables() → Iterable<String>
getTexture(String path) → Uint8List?
getTextures() → Iterable<String>
getTexturesData() → Map<String, Uint8List>
getTranslation([String id = kFallbackLocale]) → PackTranslation?
getTranslationOrDefault([String id = kFallbackLocale]) → PackTranslation
getTranslationsStore({String? getLocale() = getDefaultLocale}) → TranslationsStore
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAsset(String name) → SetonixData
inherited
removeAssets(Iterable<String> names) → SetonixData
inherited
removeBackground(String background) → SetonixData
removeBoard(String id) → SetonixData
removeDeck(String id) → SetonixData
removeFigure(String figure) → SetonixData
removeMode(String id) → SetonixData
removeNote(String name) → SetonixData
removeScript(String id) → SetonixData
removeScriptState(String plugin) → SetonixData
removeTable(String name) → SetonixData
removeTexture(String texture) → SetonixData
setAsset(String name, Uint8List data) → SetonixData
inherited
setBackground(String background, BackgroundDefinition definition) → SetonixData
setBoard(String id, BoardDefinition definition) → SetonixData
setDeck(String id, DeckDefinition definition) → SetonixData
setFigure(String figure, FigureDefinition definition) → SetonixData
setInfo(GameInfo info) → SetonixData
setMetadata(FileMetadata metadata) → SetonixData
setMode(String id, GameMode mode) → SetonixData
setNote(String name, String content) → SetonixData
setScript(String id, String content) → SetonixData
setScriptState(String plugin, String state) → SetonixData
setScriptStates(Map<String, String> states) → SetonixData
setTable(GameTable table, [String name = '']) → SetonixData
setTexture(String texture, Uint8List data) → SetonixData
setTranslation(PackTranslation translation, [String locale = kFallbackLocale]) → SetonixData
toString() → String
A string representation of this object.
inherited
unencrypt() → SetonixData
inherited
updateState(ArchiveState state) → SetonixData

Operators

operator ==(Object other) → bool
The equality operator.
inherited