flutter_scene_net library

dashwire multiplayer for flutter_scene.

Replicas whose types extend TransformReplica become scene nodes through a SceneReplication binding. Poses you do not own render slightly in the past through interpolation; the entity you own can instead be predicted so local input renders instantly. SceneHost runs a room inside the app on dart:io platforms so a game can host without a separate server.

Classes

NetworkTransformCodec
Codec for NetworkTransformComponent (networkTransform).
NetworkTransformComponent
Drives the owning node's transform from a TransformReplica.
PredictedController
Client-side driver for an owned, predicted entity.
PredictedPhysicsComponent
Drives the node of an owned TransformReplica by physics rollback prediction with authoritative input-replay reconciliation.
PredictedPhysicsController
Client-side driver for an owned entity simulated by a physics world.
PredictedTransformComponent
Drives the node of an owned TransformReplica by client-side prediction with authoritative input-replay reconciliation, so local input renders instantly while the sim stays server-authoritative.
PredictionController
A client-side prediction driver for an owned entity, either the analytic PredictedController or the physics-rollback PredictedPhysicsController.
SceneHost
Web stub; hosting requires dart:io. See hosting_io.dart for the API.
SceneReplication
Binds a replication client to a scene graph.

Extensions

TransformReplicaVectors on TransformReplica
vector_math adapters over TransformReplica's record-typed pose.

Functions

registerNetComponentCodecs([FsceneComponentRegistry? registry]) → void
Registers this package's component codecs into registry (the process default when omitted).

Typedefs

LocalPredictionBuilder = PredictionController? Function(Replica replica)
Supplies the client-side prediction controller for an owned replica (a PredictedController or a PredictedPhysicsController), or null to interpolate it like any other entity.
ReplicaNodeBuilder = Node Function(Replica replica)
Builds the scene subtree representing replica at spawn time.