コード例 #1
0
        private static string getCode()
        {
            String path = ContentDistributor.getRealRootPath() + @"GENERATIONCODE\IslandGeneration.cs";

            System.IO.StreamReader myFile = new System.IO.StreamReader(path);
            string source = myFile.ReadToEnd();

            myFile.Close();
            return(source);
        }
コード例 #2
0
 public void loadFromFile(string path)
 {
     string[] file = DataLoader.getCharFile(ContentDistributor.getRealRootPath() + path);
     main = new BodyPart();
     main.loadFromFile(file, 0, new FileInfo(ContentDistributor.getRealRootPath() + path));
 }