Changed whole project structure (split client and server into separat projects)

This commit is contained in:
hydrant
2019-02-25 22:12:05 +01:00
parent d2181c4987
commit 33abb3d04f
185 changed files with 282 additions and 596 deletions

View File

@@ -0,0 +1,38 @@
# Verschiebt die Dateien aus dem Output-Verzeichnis in den resources Ordner
param (
[string]$outDir,
[string]$outFile
)
$rootPath = "$PSScriptRoot\.."
$outputPath = "$rootPath\$outDir"
$bridgePath = "$rootPath\..\..\bridge\"
$resourcePath = "$bridgePath\resources\reallife-gamemode"
$runtimePath = "$bridgePath\runtime"
# Pruefen, ob Output-Pfad existiert
if(!(Test-Path $outputPath))
{
$absoluteOutputPath = Resolve-Path $outputPath
Write-Host "Output Folder ($absoluteOutputPath) does not exist."
Exit 0
}
# Pruefen, ob resources-Pfad existiert
# Wenn NEIN => erstellen
if(!(Test-Path $resourcePath))
{
Write-Host "Creating 'copsandrobbers' resources directory"
New-Item -ItemType Directory -Path $resourcePath | Out-Null
}
# Gamemode und Meta-Datei verschieben
Copy-Item "$outputPath\$outFile" "$resourcePath\" -Force
Copy-Item "$outputPath\meta.xml" "$resourcePath\" -Force
# Abhaengige DLLs in runtime Ordner verschieben
Copy-Item "$outputPath\*.dll" "$runtimePath\" -Exclude "CopsAndRobbers.Server.dll"