33using PearlCalculatorLib . PearlCalculationLib . Entity ;
44using PearlCalculatorLib . PearlCalculationLib . World ;
55using System ;
6+ using System . ComponentModel . Design ;
7+ using System . Diagnostics . CodeAnalysis ;
68using System . Dynamic ;
79using System . IO ;
810using System . Runtime . InteropServices . WindowsRuntime ;
@@ -25,12 +27,14 @@ class Program
2527 static void Main ( string [ ] args )
2628 {
2729 Console . WriteLine ( "Welcome to the Pearl Calculator Core Settings Generator." ) ;
30+ Console . WriteLine ( "Please make sure you can see all the symbols(=) in the following line" ) ;
31+ Console . WriteLine ( "=====================================================================================================================" ) ;
2832 Console . WriteLine ( "Note :" ) ;
2933 Console . WriteLine ( "Please keep in mind that," ) ;
3034 Console . WriteLine ( "There will be precision loss for those settings generated by this application." ) ;
3135 Console . WriteLine ( "Press any key to proceed if you acknowledge the above remark and prefer using this application." ) ;
32- Console . ReadKey ( ) ;
3336 string temp = "Start" ;
37+ Console . ReadKey ( ) ;
3438 Settings settings = new Settings
3539 {
3640 Pearl = new PearlEntity ( ) ,
@@ -43,12 +47,12 @@ static void Main(string[] args)
4347 if ( temp == "1" || temp == "Start" )
4448 {
4549 Console . WriteLine ( "Please enter the corrdinate of the center Of your FTL blast chamber :" ) ;
46- chamber = ReadSurface2DFromConsole ( "FTL blast chamber ceter" ) ;
50+ chamber = ReadSurface2DFromConsole ( "FTL blast chamber ceter coordinate " ) ;
4751 }
4852 if ( temp == "2" || temp == "Start" )
4953 {
5054 Console . WriteLine ( "Please enter the coordinate of the pearl:" ) ;
51- settings . Pearl . Position = ReadSpace3DFromConsole ( "Pearl position " ) ;
55+ settings . Pearl . Position = ReadSpace3DFromConsole ( "Pearl coordinate " ) ;
5256 }
5357 if ( temp == "3" || temp == "Start" )
5458 {
@@ -58,24 +62,85 @@ static void Main(string[] args)
5862 if ( temp == "4" || temp == "Start" )
5963 {
6064 Console . WriteLine ( "Please enter the coordinates of the north west TNT :" ) ;
61- settings . NorthWestTNT = ReadSpace3DFromConsole ( "North west TNT position " ) ;
65+ settings . NorthWestTNT = ReadSpace3DFromConsole ( "North west TNT coordinate " ) ;
6266 }
6367 if ( temp == "5" || temp == "Start" )
6468 {
6569 Console . WriteLine ( "Please enter the coordinates of the north east TNT :" ) ;
66- settings . NorthEastTNT = ReadSpace3DFromConsole ( "North east TNT position " ) ;
70+ settings . NorthEastTNT = ReadSpace3DFromConsole ( "North east TNT coordinate " ) ;
6771 }
6872 if ( temp == "6" || temp == "Start" )
6973 {
7074 Console . WriteLine ( "Please enter the coordinates of the south west TNT :" ) ;
71- settings . SouthWestTNT = ReadSpace3DFromConsole ( "South west TNT position " ) ;
75+ settings . SouthWestTNT = ReadSpace3DFromConsole ( "South west TNT coordinate " ) ;
7276 }
7377 if ( temp == "7" || temp == "Start" )
7478 {
7579 Console . WriteLine ( "Please enter the coordinates of the south east TNT :" ) ;
76- settings . SouthEastTNT = ReadSpace3DFromConsole ( "South east TNT position " ) ;
80+ settings . SouthEastTNT = ReadSpace3DFromConsole ( "South east TNT coordinate " ) ;
7781 }
82+ //if(temp == "9" || temp == "Start")
83+ //{
84+ // Console.WriteLine("Please set the direction of your FTL in east mode");
85+ // Console.WriteLine("Please enter the coordinates of the red TNT");
86+ // Space3D redTNT = ReadSpace3DFromConsole("Red TNT coordinate");
87+ // Console.WriteLine("Please enter the coordinates of the blue TNT");
88+ // Space3D blueTNT = ReadSpace3DFromConsole("Blue TNT coordinate");
89+ // if(redTNT.IsNorth(blueTNT))
90+ // {
91+ // settings.NorthWestTNT = redTNT;
92+ // settings.SouthWestTNT = blueTNT;
93+ // settings.DefaultRedTNTDirection = Direction.North;
94+ // settings.DefaultBlueTNTDirection = Direction.South;
95+ // }
96+ // else
97+ // {
98+ // settings.NorthWestTNT = blueTNT;
99+ // settings.SouthWestTNT = redTNT;
100+ // settings.DefaultBlueTNTDirection = Direction.North;
101+ // settings.DefaultRedTNTDirection = Direction.South;
102+ // }
103+ // Console.WriteLine("Please set the direction of your FTL in west mode");
104+ // Console.WriteLine("Please enter the coordinate of the red TNT");
105+ // redTNT = ReadSpace3DFromConsole("Red TNT coordinate");
106+ // Console.WriteLine("Please enter the coordinate of the blue TNT");
107+ // blueTNT = ReadSpace3DFromConsole("Blue TNT coordinate");
108+ // if(redTNT.IsNorth(blueTNT))
109+
110+ //}
78111 if ( temp == "8" || temp == "Start" )
112+ {
113+ Console . Clear ( ) ;
114+ Console . WriteLine ( "Welcome to the Pearl Calculator Core Settings Generator." ) ;
115+ Console . WriteLine ( "Please make sure you can see all the symbols(=) in the following line" ) ;
116+ Console . WriteLine ( "=====================================================================================================================" ) ;
117+ Console . WriteLine ( "Note :" ) ;
118+ Console . WriteLine ( "Please keep in mind that," ) ;
119+ Console . WriteLine ( "There will be precision loss for those settings generated by this application." ) ;
120+ Console . WriteLine ( "Press any key to proceed if you acknowledge the above remark and prefer using this application." ) ;
121+ Console . WriteLine ( " | | " ) ;
122+ Console . WriteLine ( " | | " ) ;
123+ Console . WriteLine ( " | | " ) ;
124+ Console . WriteLine ( "--------+---------------------------------+--------" ) ;
125+ Console . WriteLine ( " | | " ) ;
126+ Console . WriteLine ( " | | " ) ;
127+ Console . WriteLine ( " | | " ) ;
128+ Console . WriteLine ( " | | " ) ;
129+ Console . WriteLine ( " | | " ) ;
130+ Console . WriteLine ( " | | " ) ;
131+ Console . WriteLine ( " | | " ) ;
132+ Console . WriteLine ( " | | " ) ;
133+ Console . WriteLine ( " | | " ) ;
134+ Console . WriteLine ( " | | " ) ;
135+ Console . WriteLine ( " | | " ) ;
136+ Console . WriteLine ( " | | " ) ;
137+ Console . WriteLine ( " | | " ) ;
138+ Console . WriteLine ( "--------+---------------------------------+--------" ) ;
139+ Console . WriteLine ( " | | " ) ;
140+ Console . WriteLine ( " | | " ) ;
141+ Console . WriteLine ( " | | " ) ;
142+ }
143+ if ( temp == "9" || temp == "Start" )
79144 {
80145 Console . WriteLine ( "Please enter the maximum amount of TNT :" ) ;
81146 temp = Console . ReadLine ( ) ;
0 commit comments