コード例 #1
0
        static void Main(string[] args)
        {
            if (!Directory.Exists("Patched"))
            {
                Directory.CreateDirectory("Patched");
            }
            Console.Title = "Redox patcher";
            Console.WriteLine("Choose the game you want to patch by selecting one of the listed numbers:\n 1. Rust");

            string result = Console.ReadLine();

            if (int.TryParse(result, out int number))
            {
                switch (number)
                {
                case 1:
                    Rust = new Rust();
                    Rust.Patch();
                    break;
                }
            }
        }
コード例 #2
0
ファイル: PlayerTakedmgEvent.cs プロジェクト: Notulp/Pluton
 public PlayerTakedmgEvent(Player p, float amount, Rust.DamageType type)
 {
     Type = type;
     Amount = amount;
     Victim = p;
 }