Prevent verbs from same component appearing multiple times.
This commit is contained in:
@@ -113,7 +113,7 @@ namespace Content.Shared.GameObjects
|
|||||||
// This works for now though.
|
// This works for now though.
|
||||||
public static IEnumerable<(IComponent, Verb)> GetVerbs(IEntity entity)
|
public static IEnumerable<(IComponent, Verb)> GetVerbs(IEntity entity)
|
||||||
{
|
{
|
||||||
foreach (var component in entity.GetAllComponents())
|
foreach (var component in entity.GetComponentInstances())
|
||||||
{
|
{
|
||||||
var type = component.GetType();
|
var type = component.GetType();
|
||||||
foreach (var nestedType in type.GetNestedTypes())
|
foreach (var nestedType in type.GetNestedTypes())
|
||||||
|
|||||||
Reference in New Issue
Block a user