public virtual void SendSerializedComponent(ISerializableComponent comp, DeliveryMethod deliveryMethod)
        {
            NetDataWriter.Reset();
            NetDataWriter.Put((byte)PacketType.SerializedComponent);
            comp.Serialize(NetDataWriter);

            SendRaw(NetDataWriter.Data, deliveryMethod);
        }
        public virtual void SendSerializedComponent(ISerializableComponent comp, DeliveryMethod deliveryMethod)
        {
            NetDataWriter.Reset();
            NetDataWriter.Put((byte)PacketType.SerializedComponent);
            comp.Serialize(NetDataWriter);

            foreach (var key in ServerNetworkEntities.Keys)
            {
                SendRaw(ServerNetworkEntities[key].Peer, NetDataWriter.Data, deliveryMethod);
            }
        }
Beispiel #3
0
 public virtual string BuildRequest()
 {
     return(_root.Serialize(_serializer).Build());
 }