当前位置: 首页>>代码示例>>C#>>正文


C# ClientProcessor类代码示例

本文整理汇总了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);
 }
开发者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


注:本文中的ClientProcessor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。