Add Demonstrator Spawn Locations
This commit is contained in:
1 parent
03d129e216
commit
11c8b427c7
6 files changed
+482
-5
No files matched your search
@@ -99,8 +99,8 @@ namespace CommunityMapTool {
|
||||
sb.Append("\n{");
|
||||
string[] jsonKVP = new[] {
|
||||
"name", $"\"{spawnPoint.name}\"",
|
||||
"position", $"{{\"x\":{spawnPoint.transform.position.x},\"y\":{spawnPoint.transform.position.y},\"z\":{spawnPoint.transform.position.z}}}",
|
||||
"isUsed", spawnPoint.pointUsed ? "true" : "false"
|
||||
"type", $"\"demonstratorSpawn\"",
|
||||
"position", $"{{\"x\":{spawnPoint.transform.position.x - WorldMover.currentMove.x},\"y\":{spawnPoint.transform.position.y - WorldMover.currentMove.y},\"z\":{spawnPoint.transform.position.z - WorldMover.currentMove.z}}}"
|
||||
};
|
||||
for(int i = 0; i < jsonKVP.Length; i++) {
|
||||
if(i % 2 == 0) sb.Append($"\n\t\"{jsonKVP[i]}\":");
|
||||
|
||||
Reference in new issue
Block a user