Skip to content

Commit

Permalink
Added script to run multiple clients
Browse files Browse the repository at this point in the history
  • Loading branch information
hyalkaf committed Mar 13, 2016
1 parent e87388e commit b56b1ff
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Client/Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -49,8 +52,13 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="startMultipleClients.bat" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
5 changes: 5 additions & 0 deletions Client/startMultipleClients.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo off
set /p num=How many clients you want to run?
for /l %%x in (1, 1, %num%) do (
start "Client" "%~dp0bin\Debug\Client.exe"
)
5 changes: 5 additions & 0 deletions Game.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server", "Server\Server.csp
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client", "Client\Client.csproj", "{907BE8C5-4340-48E0-B968-10947F83D62E}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Scripts", "Scripts", "{9B7D117D-A4C0-4BC4-B3B8-027C30341462}"
ProjectSection(SolutionItems) = preProject
Scripts\startMultipleClients.bat = Scripts\startMultipleClients.bat
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down
6 changes: 6 additions & 0 deletions Scripts/startMultipleClients.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
%FNR% --cl --dir ".."
set /p num=How many clients you want to run?
for /l %%x in (1, 1, %num%) do (
start "Client" "%~dp0\bin\Debug\Client.exe"
)

0 comments on commit b56b1ff

Please sign in to comment.