2014-07-08 12:58:53 +00:00
|
|
|
|
using ProtoBuf;
|
2015-06-05 21:07:37 +00:00
|
|
|
|
using xServer.Core.Networking;
|
2014-07-08 12:58:53 +00:00
|
|
|
|
|
2015-01-13 18:29:11 +00:00
|
|
|
|
namespace xServer.Core.Packets.ClientPackets
|
2014-07-08 12:58:53 +00:00
|
|
|
|
{
|
|
|
|
|
[ProtoContract]
|
|
|
|
|
public class Initialize : IPacket
|
|
|
|
|
{
|
|
|
|
|
[ProtoMember(1)]
|
|
|
|
|
public string Version { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
|
|
|
|
public string OperatingSystem { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(3)]
|
|
|
|
|
public string AccountType { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(4)]
|
|
|
|
|
public string Country { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(5)]
|
|
|
|
|
public string CountryCode { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(6)]
|
|
|
|
|
public string Region { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(7)]
|
|
|
|
|
public string City { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(8)]
|
|
|
|
|
public int ImageIndex { get; set; }
|
|
|
|
|
|
2015-03-20 13:45:58 +00:00
|
|
|
|
[ProtoMember(9)]
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
2015-05-31 17:22:00 +00:00
|
|
|
|
[ProtoMember(10)]
|
|
|
|
|
public string Username { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(11)]
|
|
|
|
|
public string PCName { get; set; }
|
|
|
|
|
|
2015-04-21 18:27:52 +00:00
|
|
|
|
public Initialize()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Initialize(string version, string operatingsystem, string accounttype, string country, string countrycode,
|
2015-05-31 17:22:00 +00:00
|
|
|
|
string region, string city, int imageindex, string id, string username, string pcname)
|
2014-07-08 12:58:53 +00:00
|
|
|
|
{
|
|
|
|
|
Version = version;
|
|
|
|
|
OperatingSystem = operatingsystem;
|
|
|
|
|
AccountType = accounttype;
|
|
|
|
|
Country = country;
|
|
|
|
|
CountryCode = countrycode;
|
|
|
|
|
Region = region;
|
|
|
|
|
City = city;
|
|
|
|
|
ImageIndex = imageindex;
|
2015-03-20 13:45:58 +00:00
|
|
|
|
Id = id;
|
2015-05-31 17:22:00 +00:00
|
|
|
|
Username = username;
|
|
|
|
|
PCName = pcname;
|
2014-07-08 12:58:53 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Execute(Client client)
|
|
|
|
|
{
|
2015-05-19 01:01:38 +00:00
|
|
|
|
client.Send(this);
|
2014-07-08 12:58:53 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-04-21 18:27:52 +00:00
|
|
|
|
}
|