quantum-space-buddies/APITestMod/IQSBAPI.cs

15 lines
372 B
C#
Raw Normal View History

2023-07-31 18:55:17 +00:00
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);
}