mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 08:09:02 +00:00
细微修改
This commit is contained in:
parent
cf811e9225
commit
9d33d28b51
@ -5,7 +5,7 @@ namespace Milimoe.FunGame.Core.Api.Factory
|
|||||||
{
|
{
|
||||||
internal class RoomFactory
|
internal class RoomFactory
|
||||||
{
|
{
|
||||||
internal static Room GetInstance(DataSet? DsRoom, DataSet? DsUser, int Index)
|
internal static Room GetInstance(DataSet? DsRoom, DataSet? DsUser, int Index = 0)
|
||||||
{
|
{
|
||||||
return new Room(DsRoom, DsUser, Index);
|
return new Room(DsRoom, DsUser, Index);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,8 +10,9 @@ namespace Milimoe.FunGame.Core.Api.Utility
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取Room实例
|
/// 获取Room实例
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="DrRoom">RoomRow</param>
|
/// <param name="DsRoom">Room</param>
|
||||||
/// <param name="DrUser">UserRow(RoomMaster)</param>
|
/// <param name="DsUser">User(RoomMaster)</param>
|
||||||
|
/// <param name="Index">取指定行</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static Room GetRoom(DataSet? DsRoom, DataSet? DsUser, int Index = 0)
|
public static Room GetRoom(DataSet? DsRoom, DataSet? DsUser, int Index = 0)
|
||||||
{
|
{
|
||||||
@ -23,6 +24,7 @@ namespace Milimoe.FunGame.Core.Api.Utility
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="DataSet">SkillRow</param>
|
/// <param name="DataSet">SkillRow</param>
|
||||||
/// <param name="SkillType">Skill类型</param>
|
/// <param name="SkillType">Skill类型</param>
|
||||||
|
/// <param name="Index">取指定行</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static Skill GetSkill(DataSet? DataSet, SkillType SkillType = SkillType.Passive, int Index = 0)
|
public static Skill GetSkill(DataSet? DataSet, SkillType SkillType = SkillType.Passive, int Index = 0)
|
||||||
{
|
{
|
||||||
@ -33,6 +35,7 @@ namespace Milimoe.FunGame.Core.Api.Utility
|
|||||||
/// 获取User实例
|
/// 获取User实例
|
||||||
/// </summary>awaa
|
/// </summary>awaa
|
||||||
/// <param name="DataSet">UserRow</param>
|
/// <param name="DataSet">UserRow</param>
|
||||||
|
/// <param name="Index">取指定行</param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static User GetUser(DataSet? DataSet, int Index = 0)
|
public static User GetUser(DataSet? DataSet, int Index = 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -28,7 +28,7 @@ namespace Milimoe.FunGame.Core.Entity
|
|||||||
public string Password { get; set; } = "";
|
public string Password { get; set; } = "";
|
||||||
public GameStatistics? Statistics { get; set; } = null;
|
public GameStatistics? Statistics { get; set; } = null;
|
||||||
|
|
||||||
internal Room(DataSet? DsRoom, DataSet? DsUser, int Index)
|
internal Room(DataSet? DsRoom, DataSet? DsUser, int Index = 0)
|
||||||
{
|
{
|
||||||
if (DsRoom != null && DsRoom.Tables[0].Rows.Count > 0)
|
if (DsRoom != null && DsRoom.Tables[0].Rows.Count > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -149,6 +149,7 @@ namespace Milimoe.FunGame.Desktop.UI
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MainInvokeType.Disconnected:
|
case MainInvokeType.Disconnected:
|
||||||
|
RoomList.Items.Clear();
|
||||||
Config.FunGame_isRetrying = false;
|
Config.FunGame_isRetrying = false;
|
||||||
Config.FunGame_isConnected = false;
|
Config.FunGame_isConnected = false;
|
||||||
SetServerStatusLight((int)LightType.Red);
|
SetServerStatusLight((int)LightType.Red);
|
||||||
@ -159,6 +160,7 @@ namespace Milimoe.FunGame.Desktop.UI
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case MainInvokeType.Disconnect:
|
case MainInvokeType.Disconnect:
|
||||||
|
RoomList.Items.Clear();
|
||||||
Config.FunGame_isAutoRetry = false;
|
Config.FunGame_isAutoRetry = false;
|
||||||
Config.FunGame_isRetrying = false;
|
Config.FunGame_isRetrying = false;
|
||||||
Config.FunGame_isAutoConnect = false;
|
Config.FunGame_isAutoConnect = false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user