quantum-space-buddies/QSB/CampfireSync/Messages/CampfireStateMessage.cs

12 lines
341 B
C#
Raw Normal View History

2021-12-25 05:49:18 +00:00
using QSB.CampfireSync.WorldObjects;
using QSB.Messaging;
namespace QSB.CampfireSync.Messages
2021-12-25 05:49:18 +00:00
{
internal class CampfireStateMessage : QSBWorldObjectMessage<QSBCampfire, Campfire.State>
{
public CampfireStateMessage(Campfire.State state) => Value = state;
2021-12-25 05:49:18 +00:00
public override void OnReceiveRemote() => WorldObject.SetState(Value);
}
}