⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 x.cs

📁 ASP.NET构建的笑傲江湖社区(C#,全源码提供)
💻 CS
字号:
using System;

namespace xajh
{
	/// <summary>
	/// x 的摘要说明。
	/// </summary>
	public class x
	{
		public struct UserInfo
		{
			public string UserName;
			public string DataID;
			public string RoomID;
			public string Sex;
			public string MyClass;
			public string MyHead;
			public string MyJob;
			public DateTime LastSave;
			public DateTime LastSaid;
			public int MsgLine;
			public int Ico;
			public int Grade;
			public int FGrade;
			public int Gold;
			public bool CloseDoor;
		}

		public struct RoomInfo
		{
			public string RoomName;
			public string AutoMan;
			public int MinGrade;
			public int MinFGrade;
			public int MinGGrade;
			public int MaxGrade;
			public int MaxFGrade;
			public int MaxGGrade;
			public string CheckSex;
			public string CheckIn;
			public int MaxOnline;
			public bool CanUseWG;
			public bool CanUseThing;
			public bool CanManage;
		}

		public struct CheckUse
		{
			public int MinGrade;
			public int MinFGrade;
			public int MinGGrade;
			public int MaxGrade;
			public int MaxFGrade;
			public int MaxGGrade;
			public string CheckSex;
			public string CheckIn;
			public string[] Run_Name;
			public int[] Run_Value;
			public string sql;
		}

		public CheckUse MakeCheck(string OldValue)
		{
			string[] tempI = OldValue.Split('|');
			CheckUse tempv = new CheckUse();
			tempv.MinGrade = int.Parse(tempI[0]);
			tempv.MaxGrade = int.Parse(tempI[1]);
			tempv.MinFGrade = int.Parse(tempI[2]);
			tempv.MaxFGrade = int.Parse(tempI[3]);
			tempv.MinGGrade = int.Parse(tempI[4]);
			tempv.MaxGGrade = int.Parse(tempI[5]);
			tempv.CheckSex = tempI[6];
			if (tempI[7] == null || tempI[7] == "" || tempI[7] == "(无)")
			{
				tempv.CheckIn = "(无)";
			}
			else
			{
				tempv.CheckIn = tempI[7];
			}
			tempv.Run_Name = new string[3];
			tempv.Run_Value = new int[3];
			int j = 0;
			string sql = "";
			for (int i = 8; i <= 12; i = i + 2)
			{
				tempv.Run_Name[j] = tempI[i];
				try
				{
					tempv.Run_Value[j] = int.Parse(tempI[i + 1]);
				}
				catch
				{
					tempv.Run_Value[j] = -1;
				}
				if (tempI[i] != null && tempI[i] != "" && tempI[i] != "(无)")
				{
					sql += "[" + tempI[i] + "]=[" + tempI[i] + "]-" + tempI[i + 1] + ",";
				}
				j ++;
			}
			tempv.sql = sql;
			return tempv;
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -