コード例 #1
0
ファイル: CBanInfo.cs プロジェクト: bensonk/Procon-1
        // Only used for a pbguid
        public CBanInfo(string strSoldierName, string strGUID, string strIP, TimeoutSubset ctsBanLength,
                       string strReason) {
            this.SoldierName = strSoldierName;
            this.Guid = strGUID;
            this.IpAddress = strIP;
            this.IdType = "pbguid";

            this.BanLength = ctsBanLength;
            this.Reason = strReason;
        }
コード例 #2
0
        // Only used for a pbguid
        public CBanInfo(string strSoldierName, string strGUID, string strIP, TimeoutSubset ctsBanLength,
                        string strReason)
        {
            this.SoldierName = strSoldierName;
            this.Guid        = strGUID;
            this.IpAddress   = strIP;
            this.IdType      = "pbguid";

            this.BanLength = ctsBanLength;
            this.Reason    = strReason;
        }
コード例 #3
0
ファイル: CBanInfo.cs プロジェクト: bensonk/Procon-1
        // Ban added
        public CBanInfo(string strBanType, string strId, TimeoutSubset ctsBanLength, string strReason) {
            this.IdType = strBanType;
            this.BanLength = ctsBanLength;
            this.Reason = strReason;

            if (String.Compare(this.IdType, "name") == 0 || String.Compare(this.IdType, "persona") == 0) {
                this.SoldierName = strId;
            }
            else if (String.Compare(this.IdType, "ip") == 0) {
                this.IpAddress = strId;
            }
            else if (String.Compare(this.IdType, "guid") == 0) {
                this.Guid = strId;
            }
        }
コード例 #4
0
        // Ban added
        public CBanInfo(string strBanType, string strId, TimeoutSubset ctsBanLength, string strReason)
        {
            this.IdType    = strBanType;
            this.BanLength = ctsBanLength;
            this.Reason    = strReason;

            if (String.Compare(this.IdType, "name") == 0 || String.Compare(this.IdType, "persona") == 0)
            {
                this.SoldierName = strId;
            }
            else if (String.Compare(this.IdType, "ip") == 0)
            {
                this.IpAddress = strId;
            }
            else if (String.Compare(this.IdType, "guid") == 0)
            {
                this.Guid = strId;
            }
        }