using System; using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Serialization; using ServerCore; using ServerBase; using SESSION_ID = System.Int32; using WORLD_ID = System.UInt32; using META_ID = System.UInt32; using ENTITY_GUID = System.String; using ACCOUNT_ID = System.String; using OWNER_GUID = System.String; using USER_GUID = System.String; using CHARACTER_GUID = System.String; using ITEM_GUID = System.String; namespace ServerCommon; //=================================================================================== // 로그 주체 : UserActorLog, //=================================================================================== public class UserActorLog : ILogActor { // 서버 정보 [JsonProperty] public string RegionId { get; private set; } = string.Empty; [JsonProperty] public WORLD_ID WorldId { get; private set; } = 0; [JsonProperty] public ServerType ServerType { get; private set; } = ServerType.None; [JsonProperty] public string ServerDetail { get; private set; } = string.Empty; // 계정 정보 [JsonProperty] public string AccountIdString { get; private set; } = string.Empty; // 계정 식별 문자열 [JsonProperty] public string AccountId { get; private set; } = string.Empty; // 계정 식별키 // 유저 정보 [JsonProperty] public string UserGuid { get; private set; } = string.Empty; // 유저 식별키 [JsonProperty] public string UserNickname { get; set; } = string.Empty; [JsonProperty] public UInt16 UserLevel { get; private set; } = 0; // 캐릭터 정보 [JsonProperty] public META_ID CharacterMetaId { get; private set; } = 0; [JsonProperty] public CharRace CharacterRace { get; private set; } = CharRace.None; // 기타 [JsonProperty] public AuthAdminLevelType AuthAdminLevelType { get; private set; } = AuthAdminLevelType.None; [JsonProperty] public AccountType AccountType { get; private set; } = AccountType.None; [JsonProperty] public AccountCreationType AccountCreationType { get; private set; } = AccountCreationType.None; [JsonProperty] public Google.Protobuf.ByteString WebAuthParams { get; private set; } = Google.Protobuf.ByteString.Empty; public void initLogInfo( string regionId, WORLD_ID worldId , ServerType serverType , string serverDetail , string accountIdString, string accountId , string userGuid , string userNickname , UInt16 userLevel , META_ID charMetaId, CharRace charRace , AuthAdminLevelType authAdminLevelType , AccountType accountType , AccountCreationType accountCreationType , Google.Protobuf.ByteString webAuthParams) { RegionId = regionId; WorldId = worldId; ServerType = serverType; ServerDetail = serverDetail; AccountIdString = accountIdString; AccountId = accountId; UserGuid = userGuid; UserNickname = userNickname; UserLevel = UserLevel; CharacterMetaId = charMetaId; CharacterRace = charRace; AuthAdminLevelType = authAdminLevelType; AccountType = accountType; AccountCreationType = accountCreationType; WebAuthParams = webAuthParams; } public void setLogInfo(UserActorLog logInfo) { RegionId = logInfo.RegionId; WorldId = logInfo.WorldId; ServerType = logInfo.ServerType; ServerDetail = logInfo.ServerDetail; UserGuid = logInfo.UserGuid; AccountIdString = logInfo.AccountIdString; AccountId = logInfo.AccountId; UserNickname = logInfo.UserNickname; UserLevel = logInfo.UserLevel; CharacterMetaId = logInfo.CharacterMetaId; CharacterRace = logInfo.CharacterRace; AuthAdminLevelType = logInfo.AuthAdminLevelType; AccountType = logInfo.AccountType; AccountCreationType = logInfo.AccountCreationType; WebAuthParams = logInfo.WebAuthParams; } public UserActorLog() { } public UserActorLog(UserActorLog logInfo) { setLogInfo(logInfo); } }//UserActorLog