mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-06 09:39:52 +00:00
27 lines
569 B
C#
27 lines
569 B
C#
using QSB.CampfireSync.Messages;
|
|
using QSB.Messaging;
|
|
using QSB.WorldSync;
|
|
|
|
namespace QSB.CampfireSync.WorldObjects
|
|
{
|
|
public class QSBCampfire : WorldObject<Campfire>
|
|
{
|
|
public override void SendInitialState(uint to)
|
|
{
|
|
if (QSBCore.IsHost)
|
|
{
|
|
this.SendMessage(new CampfireStateMessage(GetState()) { To = to });
|
|
}
|
|
}
|
|
|
|
public void StartRoasting()
|
|
=> AttachedObject.StartRoasting();
|
|
|
|
public Campfire.State GetState()
|
|
=> AttachedObject.GetState();
|
|
|
|
public void SetState(Campfire.State newState)
|
|
=> AttachedObject.SetState(newState);
|
|
}
|
|
}
|