quantum-space-buddies/QSB/API/IQSBAPI.cs
2023-07-30 00:34:46 +01:00

15 lines
316 B
C#

using System;
namespace QSB.API;
public interface IQSBAPI
{
uint GetLocalPlayerID();
void SetCustomData<T>(uint playerId, string key, T data);
T GetCustomData<T>(uint playerId, string key);
void SendMessage<T>(string messageType, T data);
void RegisterHandler<T>(string messageType, Action<T> action);
}