SetonixServer class final
Properties
- assetManager → ServerAssetManager
-
final
- autosave ↔ bool
-
getter/setter pair
-
channels
→ Set<
Channel> -
no setter
-
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
- multiWorld → bool
-
no setter
-
players
→ Map<
int, ConnectionInfo> -
no setter
- pluginSystem ↔ PluginSystem
-
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- worldFile → String?
-
final
Methods
-
close(
) → Future< void> -
getUserWorld(
Channel channel) → WorldBloc? -
getUserWorldName(
Channel channel) → String -
getUserWorldState(
Channel channel) → WorldState? -
getWorld(
String name) → WorldBloc? -
init(
{int port = kDefaultPort, int maxPlayers = 10, bool verbose = false, bool autosave = false, bool multiWorld = false, String description = ''}) → Future< void> -
kick(
int id) → bool -
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}) → 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 Properties
- defaultWorldFile → String
-
final
Static Methods
-
load(
{String? worldFile, bool disableLoading = false}) → Future< SetonixServer>