quantum-space-buddies/QSB/CampfireSync/Messages/CampfireStateMessage.cs
2021-12-26 18:55:54 -08:00

13 lines
346 B
C#

using QSB.CampfireSync.WorldObjects;
using QSB.Messaging;
namespace QSB.CampfireSync.Messages
{
internal class CampfireStateMessage : QSBEnumWorldObjectMessage<QSBCampfire, Campfire.State>
{
public CampfireStateMessage(Campfire.State state) => Value = state;
public override void OnReceiveRemote() => WorldObject.SetState(Value);
}
}