Beispiel #1
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);
        }
Beispiel #2
0
 public void OnApianCommand(ApianCommand cmd)
 {
     logger.Debug($"OnApianCommand() Seq#: {cmd.SequenceNum} Cmd: {cmd.CliMsgType}");
     CoreData.UpdateCommandSequenceNumber(cmd.SequenceNum);
     commandHandlers[cmd.ClientMsg.MsgType](cmd.ClientMsg as BeamMessage);
 }