Exemplo n.º 1
0
        public void UpdateConfig()
        {
            if (!Started)
            {
                return;
            }

            MisaMinoParameters param = CurrentStyle();

            param.Parameters.strategy_4w = 400 * Convert.ToInt32(C4W());

            MisaMino.Configure(param, HoldAllowed(), AllSpins(), TSDOnly(), Intelligence(), Allow180(), SRSPlus());
        }
Exemplo n.º 2
0
        static Style ReadStyle(BinaryReader reader, int version)
        {
            string name = reader.ReadString();

            byte[] bytes = reader.ReadBytes(20 * sizeof(int));
            int[]  param = new int[21];

            for (int j = 0; j < 20; j++)
            {
                param[j] = BitConverter.ToInt32(bytes, j * 4);
            }

            return(new Style(name, MisaMinoParameters.FromArray(param)));
        }
Exemplo n.º 3
0
        static Style ReadStyle(BinaryReader reader, int version)
        {
            string name = reader.ReadString();

            int size = (version <= 1)? 16 : 20;

            byte[] bytes = reader.ReadBytes(size * 4);
            int[]  param = new int[21];

            for (int j = 0; j < size; j++)
            {
                param[j] = BitConverter.ToInt32(bytes, j * 4);
            }

            if (version <= 1)
            {
                param[16] = 0;
                param[17] = 30;
                param[18] = 0;
                param[19] = 24;
            }

            return(new Style(name, MisaMinoParameters.FromArray(param)));
        }