예제 #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            string[] tab = listBox4.Items[listBox4.SelectedIndex].ToString().Split(' ');
            Mahjong.Plugin.Player.IPlayer.RuleGroup tmp = new Mahjong.Plugin.Player.IPlayer.RuleGroup();
            tmp.Group = new List<Mahjong.Plugin.Player.IPlayer.NetTile>();
            tmp.name = tab[0];
            for (int i = 1; i < tab.Length; )
            {
                Mahjong.Plugin.Player.IPlayer.NetTile ins = new Mahjong.Plugin.Player.IPlayer.NetTile();
                ins.family = tab[i];
                ins.number = Convert.ToInt32(tab[i + 1]);
                tmp.Group.Add(ins);
                i += 2;
            }

            NetWork.Player.Call(tmp);
        }
예제 #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            string[] tab = listBox4.Items[listBox4.SelectedIndex].ToString().Split(' ');
            Mahjong.Plugin.Player.IPlayer.RuleGroup tmp = new Mahjong.Plugin.Player.IPlayer.RuleGroup();
            tmp.Group = new List <Mahjong.Plugin.Player.IPlayer.NetTile>();
            tmp.name  = tab[0];
            for (int i = 1; i < tab.Length;)
            {
                Mahjong.Plugin.Player.IPlayer.NetTile ins = new Mahjong.Plugin.Player.IPlayer.NetTile();
                ins.family = tab[i];
                ins.number = Convert.ToInt32(tab[i + 1]);
                tmp.Group.Add(ins);
                i += 2;
            }

            NetWork.Player.Call(tmp);
        }