quantum-space-buddies/QSB/API/IQSBAPI.cs
2023-07-29 16:48:58 -07:00

16 lines
334 B
C#

using System;
namespace QSB.API;
// TODO: document
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);
}