Add other mods

This commit is contained in:
2025-03-31 13:19:47 +02:00
parent bdc5488720
commit be593696b2
2266 changed files with 109313 additions and 512 deletions

View File

@@ -0,0 +1,35 @@
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using Barotrauma;
using HarmonyLib;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
namespace FastForward
{
public partial class Mod : IAssemblyPlugin
{
public static void GameMain_Update_Postfix(GameTime gameTime, GameMain __instance)
{
bool ts = PlayerInput.GetKeyboardState.IsKeyDown(FFToggleKey);
if (!FFToggleKeyPressed && ts)
{
FFState = !FFState;
}
FFToggleKeyPressed = ts;
if (FFState ^ PlayerInput.GetKeyboardState.IsKeyDown(FFPressKey) && !__instance.Paused)
{
for (int i = 0; i < FFSpeed - 1; i++)
{
Screen.Selected?.Update(Timing.Step);
}
}
}
}
}