Example #1
0
 public void Persist(int aIdentifier, List <T> aArray, FileStreamIO IO)
 {
     IO.Write(aIdentifier, BitConverter.GetBytes);
     IO.Write(aArray.Count, BitConverter.GetBytes);
     foreach (T ELEMENT in aArray)
     {
         _Persister(IO, ELEMENT);
     }
 }
Example #2
0
 public void Persist(int aIdentifier, T aData, FileStreamIO IO)
 {
     IO.Write(aIdentifier, BitConverter.GetBytes);
     _Persister(IO, aData);
 }
 public static void WriteInt(FileStreamIO aFilestream, int aInt)
 {
     aFilestream.Write(aInt, BitConverter.GetBytes);
 }
 public static void WriteVector2(FileStreamIO aFilestream, Vector2 aVector2)
 {
     aFilestream.Write(aVector2.x, BitConverter.GetBytes);
     aFilestream.Write(aVector2.y, BitConverter.GetBytes);
 }
 public static void WriteVector3(FileStreamIO aFilestream, Vector3 aVector3)
 {
     aFilestream.Write(aVector3.x, BitConverter.GetBytes);
     aFilestream.Write(aVector3.y, BitConverter.GetBytes);
     aFilestream.Write(aVector3.z, BitConverter.GetBytes);
 }