public Entity AddstateFacing(MTON._enum.FState newFstate)
        {
            var component = _stateFacingComponentPool.Count > 0 ? _stateFacingComponentPool.Pop() : new stateFacingComponent();

            component.fstate = newFstate;
            return(AddComponent(ComponentIds.stateFacing, component));
        }
        public Entity AddeventFacing(int newID, MTON._enum.FState newFstate)
        {
            var component = _eventFacingComponentPool.Count > 0 ? _eventFacingComponentPool.Pop() : new eventFacingComponent();

            component.ID     = newID;
            component.fstate = newFstate;
            return(AddComponent(ComponentIds.eventFacing, component));
        }
        public Entity ReplacestateFacing(MTON._enum.FState newFstate)
        {
            var previousComponent = hasstateFacing ? stateFacing : null;
            var component         = _stateFacingComponentPool.Count > 0 ? _stateFacingComponentPool.Pop() : new stateFacingComponent();

            component.fstate = newFstate;
            ReplaceComponent(ComponentIds.stateFacing, component);
            if (previousComponent != null)
            {
                _stateFacingComponentPool.Push(previousComponent);
            }
            return(this);
        }
        public Entity ReplaceeventFacing(int newID, MTON._enum.FState newFstate)
        {
            var previousComponent = haseventFacing ? eventFacing : null;
            var component         = _eventFacingComponentPool.Count > 0 ? _eventFacingComponentPool.Pop() : new eventFacingComponent();

            component.ID     = newID;
            component.fstate = newFstate;
            ReplaceComponent(ComponentIds.eventFacing, component);
            if (previousComponent != null)
            {
                _eventFacingComponentPool.Push(previousComponent);
            }
            return(this);
        }