void WriteMinion(Minion m, DoubleStream stream) { int index = m.ID; stream.WriteOneHot(MinionOneHot, index); stream.Write(m.Sleeping ? 0 : 1); stream.Write(m.Atack / MinionMaxAttack); stream.Write(m.Health / MinionMaxHealth); }
void WriteSpell(Spell s, DoubleStream stream) { int index = s.ID; stream.WriteOneHot(CardOneHot, index); }
void WriteMCard(MinionCard m, DoubleStream stream) { int index = SpellsCount + m.ID; stream.WriteOneHot(CardOneHot, index); }