02-16-2013, 05:29 AM
(This post was last modified: 02-16-2013, 05:30 AM by Bombshell93.)
binary reader / writer doesn't deal in bits, you should never need to play with them for a modern game unless your doing very low level work. (or your using flags or doing some specialised math)
C# dont use unsafe pointers, reference types (class / array) do the job of pointers and unsafe code as the name suggests is not a common practice in C#.
size of file you dont need, so long as your save and load loops aren't all over the place your load loop should never even have the option of reading past the end of file.
relocation table? I'm not familiar with the concept, if it offsets loaded positions then forget it, single floating point values will suffice, just save the original positions.
all in all it really should be as simple as
What am I loading? Load it! Is there any more to load? if not Finish loading.
C# dont use unsafe pointers, reference types (class / array) do the job of pointers and unsafe code as the name suggests is not a common practice in C#.
size of file you dont need, so long as your save and load loops aren't all over the place your load loop should never even have the option of reading past the end of file.
relocation table? I'm not familiar with the concept, if it offsets loaded positions then forget it, single floating point values will suffice, just save the original positions.
all in all it really should be as simple as
What am I loading? Load it! Is there any more to load? if not Finish loading.