SetonixData class

Constructors

SetonixData(Archive archive, {ArchiveState state = const ArchiveState(), String identifier = ''})
SetonixData.empty()
SetonixData.fromData(Uint8List data, [String? identifier])
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
getNote(String name) String?
getNotes() Iterable<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
removeNote(String name) 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
setNote(String name, String content) 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