コード例 #1
0
 public SSessionBase SendAsync(NpcOthersInfosResponse value) =>
 SendAsync(ClientOpcode.NpcOtherInfos, (PacketWriter writer) =>
 {
     writer.Write((ushort)value.Values.Count());
     foreach (NpcOthersInfosResponse.Entity entity in value.Values)
     {
         writer.Write(entity.Id);
         writer.WriteVector3(entity.Position);
         writer.Write(entity.Rotation);
         writer.Write(uint.MinValue);
         writer.Write(entity.Waypoint);
         writer.Write(uint.MinValue);
         writer.WriteNpcVisability(NpcVisablity.Visible);
         writer.Write(entity.CreatureId);
     }
 });
コード例 #2
0
ファイル: SSessionBase.cs プロジェクト: Karveit/OpenWorker
 public SSessionBase SendDeferred(NpcOthersInfosResponse value) =>
 SendDeferred(SCCategory.World, SCWorld.OtherInfosNpc, (SPacketWriter writer) =>
 {
     writer.Write((ushort)value.Values.Count());
     foreach (NpcOthersInfosResponse.Entity entity in value.Values)
     {
         writer.Write(entity.Id);
         writer.Write(entity.Position);
         writer.Write(entity.Rotation);
         writer.Write(uint.MinValue);
         writer.Write(entity.Waypoint);
         writer.Write(uint.MinValue);
         writer.WriteNpcVisability(NpcVisablity.Visible);
         writer.Write(entity.CreatureId);
     }
 });