- add: more interaction shit

This commit is contained in:
2024-02-26 21:43:11 +03:00
parent b63a46e032
commit a31947423c
27 changed files with 752 additions and 97 deletions

View File

@@ -15,16 +15,20 @@ public sealed class InteractionSelectedMessage : EuiMessageBase
}
}
[Serializable,NetSerializable]
public sealed class InteractionUpdateMessage : EuiMessageBase
{
}
[Serializable,NetSerializable]
public sealed class InteractionState: EuiStateBase
{
public NetEntity Performer { get; }
public NetEntity Target { get; }
public HashSet<string> AvailableInteractions;
public HashSet<InteractionEntry> AvailableInteractions;
public byte? Arousal;
public InteractionState(NetEntity performer, NetEntity target, HashSet<string> availableInteractions, byte? arousal)
public InteractionState(NetEntity performer, NetEntity target, HashSet<InteractionEntry> availableInteractions, byte? arousal)
{
Performer = performer;
Target = target;
@@ -33,3 +37,15 @@ public sealed class InteractionState: EuiStateBase
}
}
[Serializable, NetSerializable]
public sealed class InteractionEntry
{
public string Prototype;
public bool Enabled;
public InteractionEntry(string prototype, bool enabled)
{
Prototype = prototype;
Enabled = enabled;
}
}