public static bool Campfire_OnPressInteract(Campfire __instance, Campfire.State ____state)
        {
            var qsbCampfire = QSBWorldSync.GetWorldFromUnity <QSBCampfire, Campfire>(__instance);

            if (____state == Campfire.State.LIT)
            {
                qsbCampfire.StartRoasting();
            }
            else
            {
                qsbCampfire.SetState(Campfire.State.LIT);
                QSBEventManager.FireEvent(EventNames.QSBCampfireState, qsbCampfire.ObjectId, Campfire.State.LIT);
                Locator.GetFlashlight().TurnOff(false);
            }
            return(false);
        }
Example #2
0
 public void SetState(Campfire.State newState)
 => AttachedObject.SetState(newState);