Example #1
0
 public StatusEffect()
 {
     rbc      = new ReadBytesConverter();
     data     = new List <byte>();
     uniqueID = new Random().Next();
     for (int i = 0; i < SIZE; i++)
     {
         data.Add(0);
     }
 }
Example #2
0
 public TableRecord(List <byte> fileData, bool isHeader)
 {
     rbc          = new ReadBytesConverter();
     tableRowType = rbc.GetNullTerminatedString(fileData, Size);
     //This is the size, but it will be recalculated during the write stage. Its bytes are derived by subclasses
     if (isHeader)
     {
         InitialSize = rbc.ReadInt(fileData, Size);
     }
     else
     {
         InitialSize = rbc.ReadShort(fileData, Size);
     }
 }
Example #3
0
 public HeaderPrefixRecord(List <byte> fileData)
 {
     rbc        = new ReadBytesConverter();
     TableID    = rbc.ReadShort(fileData, 0);
     NumHeaders = rbc.ReadInt(fileData, sizeof(short));
 }
Example #4
0
 public StatusEffect(List <byte> statusEffectData)
 {
     rbc      = new ReadBytesConverter();
     data     = statusEffectData;
     uniqueID = new Random().Next();
 }