mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-04 21:39:49 +00:00
20 lines
489 B
C#
20 lines
489 B
C#
using QSB.WorldSync;
|
|
using System.Reflection;
|
|
|
|
namespace QSB.CampfireSync.WorldObjects
|
|
{
|
|
public class QSBCampfire : WorldObject<Campfire>
|
|
{
|
|
public void StartRoasting()
|
|
=> AttachedObject
|
|
.GetType()
|
|
.GetMethod("StartRoasting", BindingFlags.NonPublic | BindingFlags.Instance)
|
|
.Invoke(AttachedObject, null);
|
|
|
|
public Campfire.State GetState()
|
|
=> AttachedObject.GetState();
|
|
|
|
public void SetState(Campfire.State newState)
|
|
=> AttachedObject.SetState(newState);
|
|
}
|
|
} |