コード例 #1
0
ファイル: ActionDelay.cs プロジェクト: Tydus1/RagnarokRebuild
        public static float CooldownTime(CooldownActionType type)
        {
            switch (type)
            {
            case CooldownActionType.Click: return(ClickCooldownTime);

            case CooldownActionType.FaceDirection: return(FaceDirectionCooldown);

            case CooldownActionType.SitStand: return(SitStandCooldown);

            case CooldownActionType.StopAction: return(StopActionCooldown);

            default:
                ServerLogger.LogWarning($"Could not get ActionDelay Cooldown for type {type} (value {(int)type}.");
                return(0.3f);
            }
        }
コード例 #2
0
 public void AddActionDelay(CooldownActionType type) => CurrentCooldown += ActionDelay.CooldownTime(type);