Ejemplo n.º 1
0
 public ItemConfig(EndianBinaryReaderEx er, bool isPlayer) : this(isPlayer)
 {
     RouletteSpeed  = new MK7Timer(er.ReadUInt16());
     GiveItemOffset = new MK7Timer(er.ReadUInt16());
     GiveItemEach   = new MK7Timer(er.ReadUInt16());
     GiveItemID     = er.ReadByte();
     ConfigMode     = (ItemConfigMode)er.ReadByte();
     for (int i = 0; i < Probabilities.Length; i++)
     {
         for (int j = 0; j < Probabilities[i].Length; j++)
         {
             Probabilities[i][j] = er.ReadByte();
         }
     }
     er.ReadPadding(4);
 }
Ejemplo n.º 2
0
 public ItemConfig(bool isPlayer)
 {
     IsPlayer      = isPlayer;
     Probabilities = new byte[8][];
     for (int i = 0; i < Probabilities.Length; i++)
     {
         Probabilities[i] = new byte[ItemAmount];
         for (int j = 0; j < Probabilities[i].Length; j++)
         {
             Probabilities[i][j] = 0;
         }
     }
     ConfigMode     = ItemConfigMode.Rank;
     GiveItemOffset = new MK7Timer(0);
     GiveItemEach   = new MK7Timer(0);
     GiveItemID     = 255;
     RouletteSpeed  = new MK7Timer(0);
 }