mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-28 18:25:18 +00:00
20 lines
516 B
C#
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);
|
|
} |