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); } }
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); } }
public MovementActionData CreateMovementActionData(string characterId, string fromAreaId, string toAreaId) { var data = new MovementActionData(characterId, fromAreaId, toAreaId); return(data); }