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< teamMembers = const {}, List<Channel> >ChatMessage> messages = const [], Channel id = kAuthorityChannel, List<GameDialog> dialogs = const [], Map<String, Uint8List> images = 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
-
images
→ Map<
String, Uint8List> -
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 -
getTeams(
[Channel? id]) → Set< String> -
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
-
protectCell(
VectorDefinition cell, [Channel? id]) → TableCell -
protectTable(
[Channel? id]) → GameTable -
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