You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

244 lines
6.4 KiB

/*
Sog 游戏基础库
2016 by zouwei
*/
using System;
using Sog;
using ProtoCSStruct;
namespace Game
{
public class ClientInfo
{
public string lang;
public string osLang; //操作系统语言
public string os;
public string osVersion;
public string sdkLib;
public string sdkLibVersion;
public string networkType;
public string carrier;
public string bundleId;
public string appVersion; //app的版本
public string apkVersion; //apk的版本
public string deviceInfo; //samsung GT-P5210
public PlatformType Platform; //android ,ios ,windows
public long channelId; //渠道id
public string appChannelId;
public string DeviceId; // 本次登录设备
public string IPAddr;
public int pkgType; // 包类型
public string deviceType; //设备类型,如iPad,iPhone等
public string manufacturer; //设备制造商,如Apple,Vivo等
public string pcode;
public string device_aid ;
public string device_bid ;
public string device_aid_init ;
public string device_bid_init ;
public string device_appid;
public string DeviceIdBdc; // 本次登录设备
public string appChannelIdBdc;
public BdcData bdcData; //bdc信息
}
public class PlayerSession
{
public long SessionID { get; private set; }
public uint GateServerID { get; private set; }
public string Os
{
get => clientInfo.os;
set => clientInfo.os = value;
}
public string OsVersion
{
get => clientInfo.osVersion;
set => clientInfo.osVersion = value;
}
public string sdkLib
{
get => clientInfo.sdkLib;
set => clientInfo.sdkLib = value;
}
public string sdkLibVersion
{
get => clientInfo.sdkLibVersion;
set => clientInfo.sdkLibVersion = value;
}
public string networkType
{
get => clientInfo.networkType;
set => clientInfo.networkType = value;
}
public string carrier
{
get => clientInfo.carrier;
set => clientInfo.carrier = value;
}
public string bundleId
{
get => clientInfo.bundleId;
set => clientInfo.bundleId = value;
}
public string appVersion
{
get => clientInfo.appVersion;
set => clientInfo.appVersion = value;
}
public string ApkVersion
{
get => clientInfo.apkVersion;
set => clientInfo.apkVersion = value;
}
public string Lang //语言版本
{
get => clientInfo.lang;
set => clientInfo.lang = value;
}
public string OsLang //操作系统语言
{
get => clientInfo.osLang;
set => clientInfo.osLang = value;
}
public string DeviceInfo //samsung GT-P5210
{
get => clientInfo.deviceInfo;
set => clientInfo.deviceInfo = value;
}
public string DeviceType
{
get => clientInfo.deviceType;
set => clientInfo.deviceType = value;
}
public string Manufacturer
{
get => clientInfo.manufacturer;
set => clientInfo.manufacturer = value;
}
public string DeviceAId
{
get => clientInfo.device_aid;
set => clientInfo.device_aid = value;
}
public string DeviceAppId
{
get => clientInfo.device_appid;
set => clientInfo.device_appid = value;
}
public string DeviceBId
{
get => clientInfo.device_bid;
set => clientInfo.device_bid = value;
}
public string DeviceAIdInit
{
get => clientInfo.device_aid_init;
set => clientInfo.device_aid_init = value;
}
public string DeviceBIdInit
{
get => clientInfo.device_bid;
set => clientInfo.device_bid_init = value;
}
public BdcData BdcData
{
get => clientInfo.bdcData;
set => clientInfo.bdcData = value;
}
public AccountInfo AccountInfo;
public QQPayInfo QQPayInfo;
public long UserID;
//public long GameID;
public int RealmID;
public string Nick;
public int Gender;
public string Icon;
public string Email;
public int battleVersion;//战斗的版本号
public bool ZipHotpatch;
public string DeviceId // 本次登录设备
{
get => clientInfo.DeviceId;
set => clientInfo.DeviceId = value;
}
public string IPAddr
{
get => clientInfo.IPAddr;
set => clientInfo.IPAddr = value;
}
public string HotpatchMd5;
public PlatformType Platform //android ,ios ,windows
{
get => clientInfo.Platform;
set => clientInfo.Platform = value;
}
public uint CurLoginSerialNum;//记录登陆唯一号
public long channelId //渠道id
{
get => clientInfo.channelId;
set => clientInfo.channelId = value;
}
public string appChannelId
{
get => clientInfo.appChannelId;
set => clientInfo.appChannelId = value;
}
public string DeviceIdBdc // 登录设备
{
get => clientInfo.DeviceIdBdc;
set => clientInfo.DeviceIdBdc = value;
}
public string appChannelIdBdc
{
get => clientInfo.appChannelIdBdc;
set => clientInfo.appChannelIdBdc = value;
}
public long accountCreateTime;
public uint accountCreateIp;
public string taDistinctID;
public int roleCount;
public int userType;
public string openId;
public ClientInfo clientInfo;
[NonSerialized]
public PlayerOnGame Player;
public PlayerSession(long sessionID, uint gateServerID)
{
SessionID = sessionID;
GateServerID = gateServerID;
clientInfo = new ClientInfo();
}
}
}