Visual Behavior Sorting
Behaviors in DB Inspector now visibly sort according to their execution order
This commit is contained in:
parent
8cd4ea3dc5
commit
3ffd88ade5
13 changed files with 45 additions and 27 deletions
|
|
@ -3,7 +3,7 @@ using System.Linq;
|
|||
using MessagePack;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
[InspectableField, MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
[InspectableField, MessagePackObject, JsonObject(MemberSerialization.OptIn), Order(-20)]
|
||||
public class TriggerData : BehaviorData
|
||||
{
|
||||
public override IBehavior CreateInstance(GameContext context, Entity entity, Gear item)
|
||||
|
|
@ -12,7 +12,6 @@ public class TriggerData : BehaviorData
|
|||
}
|
||||
}
|
||||
|
||||
[UpdateOrder(-20)]
|
||||
public class Trigger : IBehavior
|
||||
{
|
||||
private TriggerData _data;
|
||||
|
|
|
|||
Loading…
Reference in a new issue