コード例 #1
0
        /*
         * [LangOption]
         * public readonly string KEY = VALUE;
         */

        public override void OnEnable()
        {
            FriendlyFireAutobanPlugin.instance = this;
            if (this.outall)
            {
                this.PrintConfigs();
            }
        }
コード例 #2
0
 public WhitelistCommand(FriendlyFireAutobanPlugin plugin)
 {
     this.plugin = plugin;
 }
コード例 #3
0
 public ToggleCommand(FriendlyFireAutobanPlugin plugin)
 {
     this.plugin = plugin;
 }
コード例 #4
0
 public CallCommandHandler(Plugin plugin)
 {
     this.plugin = (FriendlyFireAutobanPlugin)plugin;
 }
コード例 #5
0
        public string GetRoleDisplay()
        {
            string retval = "(";

            switch (KillerTeamRole.Role)
            {
            case Smod2.API.RoleType.CLASSD:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_dclass");
                break;

            case Smod2.API.RoleType.SCIENTIST:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_scientist");
                break;

            case Smod2.API.RoleType.FACILITY_GUARD:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_guard");
                break;

            case Smod2.API.RoleType.NTF_CADET:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_cadet");
                break;

            case Smod2.API.RoleType.NTF_LIEUTENANT:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_lieutenant");
                break;

            case Smod2.API.RoleType.NTF_COMMANDER:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_commander");
                break;

            case Smod2.API.RoleType.NTF_SCIENTIST:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_ntf_scientist");
                break;

            case Smod2.API.RoleType.CHAOS_INSURGENCY:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_chaos");
                break;

            case Smod2.API.RoleType.TUTORIAL:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_tutorial");
                break;
            }
            retval += " " + FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_separator") + " ";
            if (VictimDisarmed)
            {
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_disarmed");
            }
            switch (VictimTeamRole.Role)
            {
            case Smod2.API.RoleType.CLASSD:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_dclass");
                break;

            case Smod2.API.RoleType.SCIENTIST:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_scientist");
                break;

            case Smod2.API.RoleType.FACILITY_GUARD:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_guard");
                break;

            case Smod2.API.RoleType.NTF_CADET:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_cadet");
                break;

            case Smod2.API.RoleType.NTF_LIEUTENANT:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_lieutenant");
                break;

            case Smod2.API.RoleType.NTF_COMMANDER:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_commander");
                break;

            case Smod2.API.RoleType.NTF_SCIENTIST:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_ntf_scientist");
                break;

            case Smod2.API.RoleType.CHAOS_INSURGENCY:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_chaos");
                break;

            case Smod2.API.RoleType.TUTORIAL:
                retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_tutorial");
                break;
            }
            retval += ")";
            return(retval);
        }