using QSB.WorldSync; using System.Reflection; namespace QSB.CampfireSync.WorldObjects { class QSBCampfire : WorldObject { public override void Init(Campfire campfire, int id) { ObjectId = id; AttachedObject = campfire; } public void StartRoasting() => AttachedObject .GetType() .GetMethod("StartRoasting", BindingFlags.NonPublic | BindingFlags.Instance) .Invoke(AttachedObject, null); public void SetState(Campfire.State newState) => AttachedObject.SetState(newState); } }