mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
15 lines
372 B
C#
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);
|
|
} |