Esempio n. 1
0
 public void AddToBundle(MovementActionData action)
 {
     logService.Log($"Adding Movement Action to queue: {action.CharacterId}");
     gameStateService.CharacterCollection.FindById(action.CharacterId).movementStatus = CharacterMovementStatus.Moving;
     lock (queueLock) {
         bundle.Movement.Add(action);
     }
 }
Esempio n. 2
0
 public bool RequestMovementAction(MovementActionData data)
 {
     try {
         logService.Log($"Recieved Movement Request {data.CharacterId}");
         playerActionQueue.AddToBundle(data);
         return(true);
     }
     catch (Exception e) {
         logService.Log(e);
         return(false);
     }
 }
Esempio n. 3
0
        public MovementActionData CreateMovementActionData(string characterId, string fromAreaId, string toAreaId)
        {
            var data = new MovementActionData(characterId, fromAreaId, toAreaId);

            return(data);
        }