quantum-space-buddies/QSB/CampfireSync/WorldObjects/QSBCampfire.cs
2022-03-02 19:46:33 -08:00

20 lines
516 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) =>
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);
}