Class BonusProbability

java.lang.Object
com.prineside.tdi2.gameplayMods.BonusProbability
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable

public final class BonusProbability extends Object implements com.esotericsoftware.kryo.KryoSerializable
  • Field Details

  • Constructor Details

    • BonusProbability

      public BonusProbability(GameplayMod bonus, int probability)
      Parameters:
      bonus - new bonus or a more powerful version of a bonus
      probability - chance to appear. Normal range is 1..100
  • Method Details

    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable