本文整理汇总了C#中ClientProcessor类的典型用法代码示例。如果您正苦于以下问题:C# ClientProcessor类的具体用法?C# ClientProcessor怎么用?C# ClientProcessor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ClientProcessor类属于命名空间,在下文中一共展示了ClientProcessor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
wtr.Write(AccountListId);
wtr.Write((short)AccountIds.Length);
foreach (var i in AccountIds)
wtr.Write(i);
}
示例2: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
wtr.Write(BulletId);
wtr.Write(OwnerId);
wtr.Write(ContainerType);
wtr.Write(Angle);
}
示例3: Read
protected override void Read(ClientProcessor psr, NReader rdr)
{
AccountListId = rdr.ReadInt32();
AccountIds = new int[rdr.ReadInt16()];
for (int i = 0; i < AccountIds.Length; i++)
AccountIds[i] = rdr.ReadInt32();
}
示例4: Read
protected override void Read(ClientProcessor psr, NReader rdr)
{
BulletId = rdr.ReadByte();
OwnerId = rdr.ReadInt32();
ContainerType = rdr.ReadInt16();
Angle = rdr.ReadSingle();
}
示例5: Read
protected override void Read(ClientProcessor psr, NReader rdr)
{
Time = rdr.ReadInt32();
Position = Position.Read(rdr);
Obj1 = ObjectSlot.Read(rdr);
Obj2 = ObjectSlot.Read(rdr);
}
示例6: Read
protected override void Read(ClientProcessor psr, NReader rdr)
{
Time = rdr.ReadInt32();
BulletId = rdr.ReadByte();
TargetId = rdr.ReadInt32();
Killed = rdr.ReadBoolean();
}
示例7: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
wtr.Write(Time);
Position.Write(wtr);
Obj1.Write(wtr);
Obj2.Write(wtr);
}
示例8: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
wtr.Write(Time);
wtr.Write(BulletId);
wtr.Write(TargetId);
wtr.Write(Killed);
}
示例9: TryConnect
public static bool TryConnect(ClientProcessor psr)
{
if (Clients.Count >= MAX_CLIENT)
return false;
else
return Clients.TryAdd(psr.Account.AccountId, psr);
}
示例10: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
wtr.WriteUTF(Title);
wtr.WriteUTF(Message);
wtr.WriteUTF(Button1);
wtr.WriteUTF(Button2);
wtr.WriteUTF(Type);
}
示例11: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
wtr.Write((byte)EffectType);
wtr.Write(TargetId);
PosA.Write(wtr);
PosB.Write(wtr);
Color.Write(wtr);
}
示例12: Read
protected override void Read(ClientProcessor psr, NReader rdr)
{
EffectType = (EffectType)rdr.ReadByte();
TargetId = rdr.ReadInt32();
PosA = Position.Read(rdr);
PosB = Position.Read(rdr);
Color = ARGB.Read(rdr);
}
示例13: Read
protected override void Read(ClientProcessor psr, NReader rdr)
{
Time = rdr.ReadInt32();
BulletId = rdr.ReadByte();
ContainerType = rdr.ReadInt16();
Position = Position.Read(rdr);
Angle = rdr.ReadSingle();
}
示例14: Read
protected override void Read(ClientProcessor psr, NReader rdr)
{
Title = rdr.ReadUTF();
Message = rdr.ReadUTF();
Button1 = rdr.ReadUTF();
Button2 = rdr.ReadUTF();
Type = rdr.ReadUTF();
}
示例15: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
wtr.Write(Time);
wtr.Write(BulletId);
wtr.Write(ContainerType);
Position.Write(wtr);
wtr.Write(Angle);
}