mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 09:32:38 +00:00
9e5e7bb6a1
- always send from the host - QSBNetworkBehaviour will store last known data in an array and send that, since real data will be wrong if no authority
22 lines
401 B
C#
22 lines
401 B
C#
using UnityEngine;
|
|
|
|
namespace QSB.WorldSync
|
|
{
|
|
public interface IWorldObject
|
|
{
|
|
int ObjectId { get; }
|
|
string Name { get; }
|
|
MonoBehaviour AttachedObject { get; }
|
|
|
|
void OnRemoval();
|
|
bool ShouldDisplayDebug();
|
|
string ReturnLabel();
|
|
void DisplayLines();
|
|
|
|
/// <summary>
|
|
/// called on the host to send over initial state messages
|
|
/// </summary>
|
|
void SendInitialState(uint to);
|
|
}
|
|
}
|