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

22 lines
530 B
C#
Raw 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
namespace QSB.CampfireSync.WorldObjects
{
2021-03-31 09:30:51 +00:00
public class QSBCampfire : WorldObject<Campfire>
2021-03-29 13:36:16 +00:00
{
public override void SendInitialState(uint to) =>
this.SendMessage(new CampfireStateMessage(GetState()) { To = to });
2022-01-21 23:13:16 +00:00
2021-03-29 22:37:36 +00:00
public void StartRoasting()
2021-12-27 04:42:07 +00:00
=> AttachedObject.StartRoasting();
2021-03-29 22:36:51 +00:00
2021-03-29 22:41:12 +00:00
public Campfire.State GetState()
=> AttachedObject.GetState();
2021-03-29 22:37:36 +00:00
public void SetState(Campfire.State newState)
2021-03-29 13:36:16 +00:00
=> AttachedObject.SetState(newState);
}
2022-01-21 23:13:16 +00:00
}