초기커밋
This commit is contained in:
42
GameServer/Entity/EntityGetSet.cs
Normal file
42
GameServer/Entity/EntityGetSet.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
using Google.Protobuf;
|
||||
using Google.Protobuf.WellKnownTypes;
|
||||
|
||||
|
||||
using ServerCore;
|
||||
using ServerBase;
|
||||
using ServerCommon;
|
||||
using ServerCommon.BusinessLogDomain;
|
||||
using MetaAssets;
|
||||
|
||||
|
||||
using SESSION_ID = System.Int32;
|
||||
using WORLD_META_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 GameServer;
|
||||
|
||||
public partial class Player : UserBase, IEntityWithSession, IMergeWithInventory, IInitNotifyPacket
|
||||
{
|
||||
public string getOtpForServerConnect()
|
||||
{
|
||||
var account_attribute = getOriginEntityAttribute<AccountAttribute>();
|
||||
NullReferenceCheckHelper.throwIfNull(account_attribute, () => $"account_attribute is null !!!");
|
||||
|
||||
return account_attribute.OtpForServerConnect;
|
||||
}
|
||||
|
||||
public LanguageType getLanguageType()
|
||||
{
|
||||
var account_attribute = getOriginEntityAttribute<AccountAttribute>();
|
||||
NullReferenceCheckHelper.throwIfNull(account_attribute, () => $"account_attribute is null !!!");
|
||||
|
||||
return account_attribute.LanguageType;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user