SetonixServer class final

Properties

address → Uri?
no setter
assetManager → ServerAssetManager
final
challengeManager → ChallengeManager?
final
channels → Set<Channel>
no setter
configManager → ConfigManager
final
consoler → Consoler<ConsoleProgram>
final
defaultEventSystem → EventSystem
no setter
defaultState → WorldState
no setter
defaultWorld → WorldBloc
no setter
hashCode → int
The hash code for this object.
no setterinherited
isClosing → bool
no setter
players → Map<int, ConnectionInfo>
no setter
rootDirectory → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thumbnailFile → File?
no setter
userManager → UserManager
final
worldNames → Iterable<String>
no setter

Methods

allowAuthenticationAttempt(Channel channel) → bool
broadcastAllServerStates() → Future<void>
broadcastServerState(WorldBloc world) → Future<void>
buildServerState(Channel viewer, WorldBloc world, {Iterable<SetonixUser> bannedUsers = const []}) → ServerState
close() → Future<void>
completeAuthentication(Channel channel) → void
getUserWorld(Channel channel) → WorldBloc?
getUserWorldName(Channel channel) → String
getUserWorldState(Channel channel) → WorldState?
getWorld(String name) → WorldBloc?
hasThumbnail() → Future<bool>
init({bool verbose = false}) → Future<void>
kick(int id, [KickMessage? reason]) → bool
loadThumbnail() → Future<ServerThumbnail?>
loadWorlds() → Future<void>
log(Object? message, {LogLevel? level}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
process(WorldEvent event, [bool force = true]) → void
run() → Future<void>
saveAll({bool force = false}) → Future<void>
sendEvent(PlayableWorldEvent event, {Channel target = kAnyChannel, String? worldName}) → Future<void>
sendMessage(String message, [Channel target = kAnyChannel]) → void
spawnDeck(ItemLocation location, GlobalVectorDefinition cell, [bool force = true]) → bool
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

load({String? worldFile, SetonixConfig argsConfig = const SetonixConfig(), String? rootPath}) → Future<SetonixServer>

Constants

worldDirectory → const String
worldSuffix → const String