Exemple #1
0
        private static void DeckCPBChoice(bool result, string[] decklist, PlayerInfo sender, string deckname)
        {
            if (!result)
            {
                return;
            }
            string name = sender.Username + "_" + deckname + "_" + DateTime.Now.ToString("dd_MM_yyyy_hh_mm_ss") + ".ydk";

            name = name.Replace(' ', '_');
            File.WriteAllLines(Path.Combine(path, "BattleCityAlpha", "deck", name), decklist);
            YgoProHelper.LaunchYgoPro("-d " + name);
        }
Exemple #2
0
        private static void ReplayCPBChoice(bool result, byte[] replay, PlayerInfo sender, string replayname)
        {
            if (!result)
            {
                return;
            }

            string name = sender.Username + "_" + replayname + "_" + DateTime.Now.ToString("dd_MM_yyyy_hh_mm_ss") + ".yrp";

            name = name.Replace(' ', '_');
            File.WriteAllBytes(Path.Combine(path, "BattleCityAlpha", "replay", name), replay);
            YgoProHelper.LaunchYgoPro("-r " + name);
        }
Exemple #3
0
 private void btnCGU_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     YgoProHelper.LaunchYgoPro("-r");
 }
Exemple #4
0
 private static void Client_LaunchYGOProWithoutRoom(string arg)
 {
     YgoProHelper.LaunchYgoPro(arg);
 }