quantum-space-buddies/QSB/API/IQSBAPI.cs

15 lines
316 B
C#
Raw Normal View History

2023-07-29 00:26:12 +00:00
using System;
namespace QSB.API;
2023-07-29 23:34:46 +00:00
public interface IQSBAPI
2023-07-29 00:26:12 +00:00
{
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);
}