def METHOD_NAME(dcsc: DinoCharacterStatusComponent, movementW: MovementModes) -> StaminaRates:
    result = StaminaRates()
    if movementW.walk and movementW.walk.sprint:
        result.sprint = dcsc.RunningStaminaConsumptionRate[0]
    if movementW.fly or movementW.swim:
        result.swimOrFly = dcsc.SwimmingOrFlyingStaminaConsumptionRate[0]
    return result