quantum-space-buddies/APITestMod/IQSBAPI.cs
2023-07-31 19:55:17 +01:00

15 lines
372 B
C#

using System;
namespace APITestMod;
// 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, bool receiveLocally = false);
void RegisterHandler<T>(string messageType, Action<uint, T> handler);
}