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
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using MessagePack;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
[InspectableField, MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
[InspectableField, MessagePackObject, JsonObject(MemberSerialization.OptIn), Order(-5)]
|
||||
public class ItemUsageData : BehaviorData
|
||||
{
|
||||
[InspectableDatabaseLink(typeof(SimpleCommodityData)), JsonProperty("item"), Key(1)]
|
||||
|
|
@ -16,7 +16,6 @@ public class ItemUsageData : BehaviorData
|
|||
}
|
||||
}
|
||||
|
||||
[UpdateOrder(-5)]
|
||||
public class ItemUsage : IBehavior
|
||||
{
|
||||
private ItemUsageData _data;
|
||||
|
|
|
|||
Loading…
Reference in a new issue