AxiosEngine-old 

AxiosEngine-old Commit Details


Date:2012-05-21 21:53:00 (12 years 7 months ago)
Author:Natalie Adams
Branch:default
Commit:6d8bf265d2ec
Parents: 078e3406f0a6
Message:+ * - Changing AxiosTitleFile.GetStream() to return Stream instead of FileStream

+ * - Changing IAxiosFile.GetStream() to return Stream instead of FileStream
Changes:
Maxios/Axios_settings.cs (1 diff)
Maxios/Engine/File/AxiosFile.cs (1 diff)
Maxios/Engine/File/AxiosIsolatedFile.cs (2 diffs)
Maxios/Engine/File/AxiosRegularFile.cs (1 diff)
Maxios/Engine/File/AxiosTitleFile.cs (1 diff)
Maxios/Engine/Gleed2D/Level.cs (1 diff)
Maxios/Engine/Interfaces/IAxiosFile.cs (1 diff)

File differences

axios/Axios_settings.cs
8989
9090
9191
92
93
9294
9395
9496
* - Changing location of GetTexture to extensions
* - Enabling commented log messages
* - Fixing bug where loadrecentangleitem wouldn't be called by Gleed2D library
* - Changing AxiosTitleFile.GetStream() to return Stream instead of FileStream
* - Changing IAxiosFile.GetStream() to return Stream instead of FileStream
*
*/
#endregion
axios/Engine/File/AxiosFile.cs
2929
3030
3131
32
32
3333
3434
3535
throw new NotImplementedException();
}
public virtual FileStream GetStream(FileMode mode)
public virtual Stream GetStream(FileMode mode)
{
throw new NotImplementedException();
}
axios/Engine/File/AxiosIsolatedFile.cs
5151
5252
5353
54
54
5555
5656
5757
......
6060
6161
6262
63
63
6464
6565
6666
return ret;
}
public override FileStream GetStream(FileMode mode)
public override Stream GetStream(FileMode mode)
{
#if WINDOWS
IsolatedStorageFile savegameStorage = IsolatedStorageFile.GetUserStoreForDomain();
#endif
IsolatedStorageFileStream fs = null;
fs = savegameStorage.OpenFile(_filename, mode);
return fs;
return (Stream)fs;
}
}
axios/Engine/File/AxiosRegularFile.cs
3737
3838
3939
40
40
4141
4242
43
43
4444
4545
4646
return ret;
}
public override FileStream GetStream(FileMode mode)
public override Stream GetStream(FileMode mode)
{
FileStream fs = new FileStream(_filename, mode);
return fs;
return (Stream)fs;
}
}
}
axios/Engine/File/AxiosTitleFile.cs
2828
2929
3030
31
31
3232
33
34
33
3534
3635
3736
return this.Content;
}
public override FileStream GetStream(FileMode mode)
public override Stream GetStream(FileMode mode)
{
FileStream fs = (FileStream)TitleContainer.OpenStream(_filename);
return fs;
return (Stream)TitleContainer.OpenStream(_filename);;
}
}
}
axios/Engine/Gleed2D/Level.cs
7474
7575
7676
77
77
7878
7979
8080
return level;
}
public static Level FromStream(FileStream stream, AxiosGameScreen gameScreen)
public static Level FromStream(Stream stream, AxiosGameScreen gameScreen)
{
Dictionary<string, Texture2D> cache = new Dictionary<string, Texture2D>();
XmlSerializer serializer = new XmlSerializer(typeof(Level));
axios/Engine/Interfaces/IAxiosFile.cs
66
77
88
9
9
1010
1111
{
void WriteData(string data, FileMode mode);
string ReadData();
FileStream GetStream(FileMode mode);
Stream GetStream(FileMode mode);
}
}

Archive Download the corresponding diff file

Page rendered in 0.83076s using 14 queries.