using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FunGame.Core.Api.Model.Enum { /// /// 这里存放框架实现相关的State Type Result Method /// 添加FunGame.Core.Api接口和实现时,需要在这里同步添加:InterfaceType和InterfaceMethod /// public static class CommonEnums { #region State public enum StartMatch_State { Matching = 1, Success = 2, Enable = 3, Cancel = 4 } public enum CreateRoom_State { Creating = 1, Success = 2 } public enum RoomState { Created = 1, Gaming = 2, Close = 3, Complete = 4 } public enum OnlineState { Offline = 1, Online = 2, Matching = 3, InRoom = 4, Gaming = 5 } #endregion #region Type public enum RoomType { Mix = 1, Team = 2, MixHasPass = 3, TeamHasPass = 4 } public enum InterfaceType { ClientConnectInterface = 1, ServerInterface = 2 } #endregion #region Result public enum MessageResult { OK = 1, Cancel = 2, Yes = 3, No = 4, Retry = 5 } #endregion #region Method public enum WebHelperMethod { CreateSocket = 1, CloseSocket = 2, StartWebHelper = 3, } public enum InterfaceMethod { RemoteServerIP = 1, DBConnection = 2, GetServerSettings = 3 } #endregion } }