sschmid / Entitas

Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
MIT License
7.03k stars 1.11k forks source link

Components Containing Enums #1033

Closed FutureProg closed 1 year ago

FutureProg commented 1 year ago

Describe the bug Jenny doesn't recognize enums and creates a "flag component" instead.

Expected behavior A regular component should be made with "BuildingNavigationType" as a value that can be set.

public enum BuildingNavigationType
{
    Origin,
    Destination,
    OriginDestination
}

[Game]
public class BuildingComponent : IComponent
{
    BuildingNavigationType buildingNavigationType;
}

Entitas Version Entitas 1.14.0

FutureProg commented 1 year ago

Gonna open another one, the issue is worse than I thought.