20 lines
516 B
C#
Raw Normal View History

2022-01-21 15:13:16 -08:00
using QSB.CampfireSync.Messages;
using QSB.Messaging;
using QSB.WorldSync;
2021-03-29 14:36:16 +01:00
2022-03-02 19:46:33 -08:00
namespace QSB.CampfireSync.WorldObjects;
public class QSBCampfire : WorldObject<Campfire>
2021-03-29 14:36:16 +01:00
{
2022-03-02 19:46:33 -08:00
public override void SendInitialState(uint to) =>
this.SendMessage(new CampfireStateMessage(GetState()) { To = to });
2022-01-21 15:13:16 -08:00
2022-03-02 19:46:33 -08:00
public void StartRoasting()
=> AttachedObject.StartRoasting();
2021-03-29 23:36:51 +01:00
2022-03-02 19:46:33 -08:00
public Campfire.State GetState()
=> AttachedObject.GetState();
2021-03-29 23:41:12 +01:00
2022-03-02 19:46:33 -08:00
public void SetState(Campfire.State newState)
=> AttachedObject.SetState(newState);
}