コード例 #1
0
ファイル: Forest.cs プロジェクト: Jamesc554/ConsoleRPG
 public override void Goto(Location location)
 {
     OnLeave();
     Game.instance.currentLocation = location;
     if (location.Locations == null)
     {
         location.Locations = new List<Location>()
         {
             this
         };
     }
     location.OnEnter();
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: Jamesc554/ConsoleRPG
 public Game()
 {
     instance = this;
     currentLocation = new Town("<NAME>", false);
     Start();
 }
コード例 #3
0
ファイル: Location.cs プロジェクト: Jamesc554/ConsoleRPG
 public abstract void Goto(Location location);