WorldState class final

Mixed in types
Annotations

Constructors

WorldState({String? name, GameTable table = const GameTable(), String tableName = '', GameInfo info = const GameInfo(), FileMetadata metadata = const FileMetadata(), Map<String, Set<Channel>> teamMembers = const {}, List<ChatMessage> messages = const [], Channel id = kAuthorityChannel, List<GameDialog> dialogs = const [], required SetonixData data})
const

Properties

copyWith WorldStateCopyWith<WorldState, WorldState, WorldState>
no setterinherited
data SetonixData
final
dialogs List<GameDialog>
final
hashCode int
The hash code for this object.
no setterinherited
id Channel
final
info GameInfo
final
messages List<ChatMessage>
final
metadata FileMetadata
final
name String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
table GameTable
final
tableName String
final
teamMembers Map<String, Set<Channel>>
final

Methods

getTable(String name) GameTable?
getTableOrDefault(String name) GameTable
isCellVisible(GlobalVectorDefinition cell, [Channel? id]) bool
mapTable(String name, GameTable mapper(GameTable?)) WorldState
mapTableOrDefault(String name, GameTable mapper(GameTable)) WorldState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restrict(Channel user) GameTable
restrictCell(VectorDefinition cell, Channel user) TableCell?
save() SetonixData
toGlobal(VectorDefinition position) GlobalVectorDefinition
toJson() String
inherited
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
updateTable(String name, GameTable table) WorldState

Operators

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