コード例 #1
0
    public static void SaveMainDoorKey(MainDoorKeyScript mainDoorKeyScript)
    {
        BinaryFormatter binaryFormatter = new BinaryFormatter();
        FileStream      fileStream      = new FileStream(PathForFile(), FileMode.Create);

        MainDoorDataScript mainDoorDataScript = new MainDoorDataScript(mainDoorKeyScript);

        binaryFormatter.Serialize(fileStream, mainDoorDataScript);
        fileStream.Close();
    }
コード例 #2
0
ファイル: MainDoorDataScript.cs プロジェクト: boguwyrw/Wyrwal
 public MainDoorDataScript(MainDoorKeyScript mainDoorKeyScript)
 {
     nameOfKey = mainDoorKeyScript.nameOfKeyToDestroy;
 }