Ejemplo n.º 1
0
        public static TipConfig ReadTipConfig(this ByteReader reader)
        {
            var tip = new TipConfig();

            tip.TipID      = reader.ReadSByte();
            tip.ColorID    = reader.ReadSByte();
            tip.DurationID = reader.ReadSByte();
            tip.Flags      = reader.ReadSByte();
            return(tip);
        }
Ejemplo n.º 2
0
 public static void WriteTipConfig(this ByteWriter writer, TipConfig tip)
 {
     if (tip == null)
     {
         tip = new TipConfig();
     }
     writer.WriteSByte(tip.TipID);
     writer.WriteSByte(tip.ColorID);
     writer.WriteSByte(tip.DurationID);
     writer.WriteSByte(tip.Flags);
 }