本文整理汇总了C#中ClientProcessor类的典型用法代码示例。如果您正苦于以下问题:C# ClientProcessor类的具体用法?C# ClientProcessor怎么用?C# ClientProcessor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ClientProcessor类属于命名空间,在下文中一共展示了ClientProcessor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
开发者ID:rotmgkillroyx,项目名称:rotmg_svr_OLD,代码行数:7,代码来源:AccountListPacket.cs
示例2: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
wtr.Write(BulletId);
wtr.Write(OwnerId);
wtr.Write(ContainerType);
wtr.Write(Angle);
}
开发者ID:lcnvdl,项目名称:rotmg-server,代码行数:7,代码来源:AllyShootPacket.cs
示例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();
}
开发者ID:rotmgkillroyx,项目名称:rotmg_svr_OLD,代码行数:7,代码来源:AccountListPacket.cs
示例4: Read
protected override void Read(ClientProcessor psr, NReader rdr)
{
BulletId = rdr.ReadByte();
OwnerId = rdr.ReadInt32();
ContainerType = rdr.ReadInt16();
Angle = rdr.ReadSingle();
}
开发者ID:lcnvdl,项目名称:rotmg-server,代码行数:7,代码来源:AllyShootPacket.cs
示例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);
}
开发者ID:BlackRayquaza,项目名称:PhoenixRealms,代码行数:7,代码来源:InvSwapPacket.cs
示例6: Read
protected override void Read(ClientProcessor psr, NReader rdr)
{
Time = rdr.ReadInt32();
BulletId = rdr.ReadByte();
TargetId = rdr.ReadInt32();
Killed = rdr.ReadBoolean();
}
开发者ID:Zeroeh,项目名称:PrivateServerOld,代码行数:7,代码来源:EnemyHitPacket.cs
示例7: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
wtr.Write(Time);
Position.Write(wtr);
Obj1.Write(wtr);
Obj2.Write(wtr);
}
开发者ID:BlackRayquaza,项目名称:PhoenixRealms,代码行数:7,代码来源:InvSwapPacket.cs
示例8: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
wtr.Write(Time);
wtr.Write(BulletId);
wtr.Write(TargetId);
wtr.Write(Killed);
}
开发者ID:Zeroeh,项目名称:PrivateServerOld,代码行数:7,代码来源:EnemyHitPacket.cs
示例9: TryConnect
public static bool TryConnect(ClientProcessor psr)
{
if (Clients.Count >= MAX_CLIENT)
return false;
else
return Clients.TryAdd(psr.Account.AccountId, psr);
}
开发者ID:RoxyLalonde,项目名称:Phoenix-Realms,代码行数:7,代码来源:RealmManager.cs
示例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);
}
开发者ID:Zeroeh,项目名称:PrivateServerOld,代码行数:8,代码来源:TextBoxPacket.cs
示例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);
}
开发者ID:BlackRayquaza,项目名称:PhoenixRealms,代码行数:8,代码来源:ShowEffectPacket.cs
示例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);
}
开发者ID:BlackRayquaza,项目名称:PhoenixRealms,代码行数:8,代码来源:ShowEffectPacket.cs
示例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();
}
开发者ID:lcnvdl,项目名称:rotmg-server,代码行数:8,代码来源:PlayerShootPacket.cs
示例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();
}
开发者ID:Zeroeh,项目名称:PrivateServerOld,代码行数:8,代码来源:TextBoxPacket.cs
示例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);
}
开发者ID:lcnvdl,项目名称:rotmg-server,代码行数:8,代码来源:PlayerShootPacket.cs
示例16: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
wtr.Write(TickId);
wtr.Write(TickTime);
wtr.Write((short) UpdateStatuses.Length);
foreach (var i in UpdateStatuses)
i.Write(wtr);
}
开发者ID:RiiggedMPGH,项目名称:Owl-Realms-Source,代码行数:9,代码来源:NewTickPacket.cs
示例17: Read
protected override void Read(ClientProcessor psr, NReader rdr)
{
TickId = rdr.ReadInt32();
TickTime = rdr.ReadInt32();
UpdateStatuses = new ObjectStats[rdr.ReadInt16()];
for (var i = 0; i < UpdateStatuses.Length; i++)
UpdateStatuses[i] = ObjectStats.Read(rdr);
}
开发者ID:RiiggedMPGH,项目名称:Owl-Realms-Source,代码行数:9,代码来源:NewTickPacket.cs
示例18: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
wtr.Write(TickId);
wtr.Write(Time);
Position.Write(wtr);
wtr.Write((short) Records.Length);
foreach (var i in Records)
i.Write(wtr);
}
开发者ID:RiiggedMPGH,项目名称:Owl-Realms-Source,代码行数:9,代码来源:MovePacket.cs
示例19: Write
protected override void Write(ClientProcessor psr, NWriter wtr)
{
Position.Write(wtr);
wtr.Write(Radius);
wtr.Write(Damage);
wtr.Write((byte)Effects);
wtr.Write(EffectDuration);
wtr.Write(OriginType);
}
开发者ID:Zeroeh,项目名称:PrivateServerOld,代码行数:9,代码来源:AOEPacket.cs
示例20: Read
protected override void Read(ClientProcessor psr, NReader rdr)
{
Position = Position.Read(rdr);
Radius = rdr.ReadSingle();
Damage = rdr.ReadUInt16();
Effects = (ConditionEffectIndex)rdr.ReadByte();
EffectDuration = rdr.ReadSingle();
OriginType = rdr.ReadInt16();
}
开发者ID:Zeroeh,项目名称:PrivateServerOld,代码行数:9,代码来源:AOEPacket.cs
注:本文中的ClientProcessor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论