protected override void OnSubModuleLoad()
        {
            _harmony = new Harmony("GIRUCombatOverhaul");

            Config.InitConfig();
            CompatibilityCheck.CheckAndApplyCleaveCompatibility();

            _harmony.PatchAll(typeof(GCOSubModule).Assembly);
            Config.ConfigureHarmonyPatches(_harmony);
        }
 public override void OnMissionTick(float dt)
 {
     if (_battleSizeNotDetermined)
     {
         if (Mission.AllAgents != null && Mission.AllAgents.Count > 0)
         {
             DetermineBattleSize();
             CompatibilityCheck.CheckForShoulderCam();
             _battleSizeNotDetermined = false;
         }
         else
         {
             _battleSizeNotDetermined = true;
         }
     }
 }
Beispiel #3
0
    public void Produce()
    {
        int[] source =
        {
            1,
            2,
            3,
            4
        };

        CompatibilityCheck <int>[,] m = Matrix(source);

        foreach (CompatibilityCheck <int> x in m)
        {
            this._output.WriteLine($"{x.From},{x.To}");
        }

        Assert.True(condition: true, userMessage: "Not really a test");
    }
Beispiel #4
0
    private static CompatibilityCheck <T>[,] Matrix <T>(IReadOnlyList <T> make)
    {
        CompatibilityCheck <T>[,] x = new CompatibilityCheck <T> [make.Count, make.Count - 1];

        for (int i = 0; i < make.Count; ++i)
        {
            int ypos = 0;

            for (int j = 0; j < make.Count; ++j)
            {
                if (i == j)
                {
                    continue;
                }

                x[i, ypos] = new(make[i], make[j]);
                ++ypos;
            }
        }

        return(x);
    }