This repository was archived by the owner on Apr 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
30 lines (28 loc) · 1.47 KB
/
Copy pathProgram.cs
File metadata and controls
30 lines (28 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using TextRPG.Data;
using TextRPG.Living;
using TextRPG.Location;
namespace TextRPG {
class Program {
public static EnemyDataDungeon enemyData;
static void Main(string[] args) {
enemyData = new EnemyDataDungeon();
Places.init();
foreach(Place p in Places.places) {
Console.WriteLine(p.name);
Console.WriteLine("Connection: ");
if(p.connection.north!= null)Console.WriteLine("North: " + p.connection.north.name);
if(p.connection.south!= null)Console.WriteLine("South: " + p.connection.south.name);
if(p.connection.east!= null)Console.WriteLine("East: " + p.connection.east.name);
if(p.connection.west!= null)Console.WriteLine("West: " + p.connection.west.name);
if(p.connection.outside!= null)Console.WriteLine("Outside: " + p.connection.outside.name);
if(p.connection.ne!= null)Console.WriteLine("North-East: " + p.connection.ne.name);
if(p.connection.nw!= null)Console.WriteLine("North-West: " + p.connection.nw.name);
if(p.connection.se!= null)Console.WriteLine("South-East: " + p.connection.se.name);
if(p.connection.sw!= null)Console.WriteLine("South-West: " + p.connection.sw.name);
Console.WriteLine("==========================================================");
}
Console.ReadLine();
}
}
}