Exemplo n.º 1
0
 public void RemovePlacesForBike(IBike bike)
 {
     Logger.Info($"RemovePlacesForBike({bike.bikeId})");
     foreach (BeamPlace p in PlacesForBike(bike))
     {
         PostPlaceRemoval(p);
     }
 }
Exemplo n.º 2
0
 public void OnPeerLeftGameEvt(object sender, PeerLeftArgs args)
 {
     logger.Info($"OnPeerLeftEvt(): {SID(args.p2pId)}");
 }
Exemplo n.º 3
0
 public virtual void Start(object param = null)
 {
     logger.Info($"Starting {(ModeName())}");
 }
Exemplo n.º 4
0
        public void OnCheckpointCommand(long seqNum, long timeStamp)
        {
            logger.Info($"OnCheckpointCommand() seqNum: {seqNum}, timestamp: {timeStamp}, Now: {FrameApianTime}");
            CoreData.UpdateCommandSequenceNumber(seqNum);
            string stateJson = CoreData.ApianSerialized(new BeamCoreState.SerialArgs(seqNum, FrameApianTime, timeStamp));

            logger.Debug($"**** Checkpoint:\n{stateJson}\n************\n");
            apian.SendCheckpointState(FrameApianTime, seqNum, stateJson);

            // BeamGameState newState =  BeamGameState.FromApianSerialized(GameData, seqNum,  timeStamp,  "blahblah", stateJson);
        }
Exemplo n.º 5
0
 public void OnPeerLeftGameEvt(object sender, PeerLeftGameArgs args)
 {
     logger.Info("Peer Left: {args.p2pId}");
 }
Exemplo n.º 6
0
 // IGameNetClient
 public void OnGameCreated(string gameP2pChannel)
 {
     Logger.Info($"OnGameCreated({gameP2pChannel}");
     GameCreatedEvt?.Invoke(this, gameP2pChannel);
 }