quantum-space-buddies/QSB/CampfireSync/WorldObjects/QSBCampfire.cs

20 lines
516 B
C#
Raw Permalink Normal View History

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