2021-05-10 13:30:38 +00:00
|
|
|
|
using UnityEngine;
|
2021-04-16 10:40:13 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
namespace QSB.WorldSync;
|
|
|
|
|
|
|
|
|
|
public interface IWorldObject
|
2020-12-24 08:41:38 +00:00
|
|
|
|
{
|
2022-03-03 03:46:33 +00:00
|
|
|
|
int ObjectId { get; }
|
|
|
|
|
string Name { get; }
|
|
|
|
|
MonoBehaviour AttachedObject { get; }
|
2021-02-09 21:35:31 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
void OnRemoval();
|
|
|
|
|
bool ShouldDisplayDebug();
|
|
|
|
|
string ReturnLabel();
|
|
|
|
|
void DisplayLines();
|
2022-01-21 22:56:45 +00:00
|
|
|
|
|
2022-03-03 03:46:33 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// called on the host to send over initial state messages
|
|
|
|
|
/// <para/>
|
|
|
|
|
/// world objects will be ready on both sides at this point
|
|
|
|
|
/// </summary>
|
|
|
|
|
void SendInitialState(uint to);
|
2022-02-25 06:04:54 +00:00
|
|
|
|
}
|