SwampConfig class final
- Mixed-in types
- Annotations
Constructors
- SwampConfig({String description = "", int maxPlayersPerRoom = 1024, int maxConcurrentPlayers = 0, int maxRooms = 0, bool noDarkRooms = false})
-
const
-
SwampConfig.withEnvironment(Map<
String, dynamic> data, {String? description, int? maxPlayersPerRoom, int? maxConcurrentPlayers, int? maxRooms, bool? noDarkRooms}) -
Creates a SwampConfig merging default values, environment variables, and provided parameters.
factory
Properties
-
copyWith
→ SwampConfigCopyWith<
SwampConfig, SwampConfig, SwampConfig> -
no setterinherited
- description → String
-
A description of the server.
final
- flags → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxConcurrentPlayers → int
-
The maximum number of players across all rooms. Zero means unlimited.
final
- maxPlayersPerRoom → int
-
The maximum number of players allowed in a room.
final
- maxRooms → int
-
The maximum number of active rooms. Zero means unlimited.
final
- noDarkRooms → bool
-
Whether dark rooms are disabled on this server.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
inherited
-
toMap(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- descriptionEnvironment → const String
- Environment variable for the server description.
- maxConcurrentPlayersEnvironment → const String
- Environment variable for the maximum concurrent players on the server.
- maxPlayersPerRoomEnvironment → const String
- Environment variable for the maximum players allowed in one room.
- maxRoomsEnvironment → const String
- Environment variable for the maximum number of rooms.
- noDarkRoomsEnvironment → const String
- Environment variable to disable dark rooms.