예제 #1
0
        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);
        }
예제 #2
0
        void WriteSpell(Spell s, DoubleStream stream)
        {
            int index = s.ID;

            stream.WriteOneHot(CardOneHot, index);
        }
예제 #3
0
        void WriteMCard(MinionCard m, DoubleStream stream)
        {
            int index = SpellsCount + m.ID;

            stream.WriteOneHot(CardOneHot, index);
        }