v0.3.0
This commit is contained in:
1 parent
581420da87
commit
35d3fec3de
34 files changed
+336
-448
No files matched your search
@@ -0,0 +1,22 @@
|
||||
using Kitchen;
|
||||
using KitchenMods;
|
||||
|
||||
namespace MMOKitchen.Systems
|
||||
{
|
||||
public class ProfileEditorOverride : InteractionSystem, IModSystem
|
||||
{
|
||||
protected override bool IsPossible(ref InteractionData data)
|
||||
{
|
||||
return Require(data.Target, out Editor);
|
||||
}
|
||||
|
||||
protected override void Perform(ref InteractionData data)
|
||||
{
|
||||
Editor.IsTriggered = true;
|
||||
Editor.TriggerEntity = data.Interactor;
|
||||
SetComponent(data.Target, Editor);
|
||||
}
|
||||
|
||||
private CTriggerProfileEditor Editor;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user