public void DoDragonLordCount(PlayerInfo[] PlayerInfo) { CountUnitTypeForAllPlayers.Apply(CurrentData, CurrentUnits, UnitType.DragonLord, Output: Multigrid[0]); var count = (PlayerTuple)MultigridReduce(CountReduce_4x1byte.Apply); PlayerInfo[1].DragonLords = Int(count.PlayerOne); PlayerInfo[2].DragonLords = Int(count.PlayerTwo); PlayerInfo[3].DragonLords = Int(count.PlayerThree); PlayerInfo[4].DragonLords = Int(count.PlayerFour); }
public void DoJadeMineCount(PlayerInfo[] PlayerInfo) { CountUnitTypeForAllPlayers.Apply(CurrentData, CurrentUnits, UnitType.JadeMine, Output: Multigrid[0]); var count = (PlayerTuple)MultigridReduce(CountReduce_4x1byte.Apply); PlayerInfo[1][UnitType.JadeMine].Count = Int(count.PlayerOne); PlayerInfo[2][UnitType.JadeMine].Count = Int(count.PlayerTwo); PlayerInfo[3][UnitType.JadeMine].Count = Int(count.PlayerThree); PlayerInfo[4][UnitType.JadeMine].Count = Int(count.PlayerFour); }