2022-12-04 19:19:07 +02:00
|
|
|
|
using SharedGame;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using UnityGGPO;
|
|
|
|
|
|
|
2022-12-22 00:03:51 +02:00
|
|
|
|
public class SimulationManager : GameManager
|
2022-12-04 19:19:07 +02:00
|
|
|
|
{
|
2022-12-05 19:21:17 +02:00
|
|
|
|
public override void StartLocalGame()
|
2022-12-04 19:19:07 +02:00
|
|
|
|
{
|
2023-01-13 15:28:18 +02:00
|
|
|
|
StartGame(new LocalRunner(new GameSimulation(GameplayManager.Instance.GetPlayerStats(), GameplayManager.Instance.GetAssistStats())));
|
2022-12-04 19:19:07 +02:00
|
|
|
|
}
|
2022-12-05 19:21:17 +02:00
|
|
|
|
|
|
|
|
|
|
public override void StartGGPOGame(IPerfUpdate perfPanel, IList<Connections> connections, int playerIndex)
|
|
|
|
|
|
{
|
2023-01-13 15:28:18 +02:00
|
|
|
|
var game = new GGPORunner("darklings", new GameSimulation(GameplayManager.Instance.GetPlayerStats(), GameplayManager.Instance.GetAssistStats()), perfPanel);
|
2022-12-05 19:21:17 +02:00
|
|
|
|
game.Init(connections, playerIndex);
|
|
|
|
|
|
StartGame(game);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|