mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-03 17:38:30 +00:00
23 lines
527 B
C#
23 lines
527 B
C#
using QSB.WorldSync;
|
|
using System.Reflection;
|
|
|
|
namespace QSB.CampfireSync.WorldObjects
|
|
{
|
|
class QSBCampfire : WorldObject<Campfire>
|
|
{
|
|
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);
|
|
}
|
|
} |