Move some stuff to core

This commit is contained in:
Sardelka
2022-08-11 16:25:38 +08:00
parent 95e302a698
commit 033d0a3f2e
5 changed files with 92 additions and 56 deletions

View File

@ -280,12 +280,12 @@ namespace RageCoop.Client.Scripting
/// <param name="args">The objects conataing your data, see <see cref="CustomEventReceivedArgs"/> for a list of supported types</param>
public static void SendCustomEvent(int eventHash, params object[] args)
{
var p = new Packets.CustomEvent()
Networking.Peer.SendTo(new Packets.CustomEvent()
{
Args=args,
Hash=eventHash
};
Networking.SendTo(p,Networking.ServerConnection, ConnectionChannel.Event, Lidgren.Network.NetDeliveryMethod.ReliableOrdered);
},Networking.ServerConnection, ConnectionChannel.Event, Lidgren.Network.NetDeliveryMethod.ReliableOrdered);
}
/// <summary>