updateTable method

WorldState updateTable(
  1. String name,
  2. GameTable table
)

Implementation

WorldState updateTable(String name, GameTable table) {
  if (name == tableName) return copyWith(table: table);
  return copyWith(
    data: data.setTable(table, name),
  );
}