public TransactionBrokerService(Scene scene) { this._scene = scene; this._logger = scene.DependencyResolver.Resolve <ILogger>(); _scene.AddRoute <string>("tbt.desync", OnDesynchCallBack); _scene.AddProcedure("transaction.execute", OnExecuteTransaction, true); _scene.AddProcedure("tbt.replayTLog", OnReplayLogs, true); }
public override void Init(Scene s) { if (s != null) { Debug.Log("replicator initializing"); Clock = s.DependencyResolver.GetComponent<IClock>(); s.AddProcedure("RequestObjects", OnRequestObjects); s.AddRoute("PlayerDisconnected", OnPlayerDisconnect); s.AddRoute("CreateObject", OnCreateObject); s.AddRoute("DestroyObject", OnDestroyObject); s.AddRoute("ForceUpdate", OnForceUpdate); s.AddRoute("UpdateObject", OnUpdateObject); } }