private static IEnumerable <Widgets.DropdownMenuElement <HostilityResponseMode> > DrawResponseButton_GenerateMenu(Pawn p)
        {
            IEnumerator enumerator = Enum.GetValues(typeof(HostilityResponseMode)).GetEnumerator();

            try
            {
                while (enumerator.MoveNext())
                {
                    HostilityResponseMode response = (HostilityResponseMode)enumerator.Current;
                    yield return(new Widgets.DropdownMenuElement <HostilityResponseMode>
                    {
                        option = new FloatMenuOption(response.GetLabel(), delegate()
                        {
                            p.playerSettings.hostilityResponse = response;
                        }, MenuOptionPriority.Default, null, null, 0f, null, null),
                        payload = response
                    });
                }
            }
            finally
            {
                IDisposable disposable;
                if ((disposable = (enumerator as IDisposable)) != null)
                {
                    disposable.Dispose();
                }
            }
            yield break;
        }
            public bool MoveNext()
            {
                uint num = (uint)this.$PC;

                this.$PC = -1;
                bool flag = false;

                switch (num)
                {
                case 0u:
                    enumerator = Enum.GetValues(typeof(HostilityResponseMode)).GetEnumerator();
                    num        = 4294967293u;
                    break;

                case 1u:
                    break;

                default:
                    return(false);
                }
                try
                {
                    switch (num)
                    {
                    }
                    if (enumerator.MoveNext())
                    {
                        HostilityResponseMode response = (HostilityResponseMode)enumerator.Current;
                        this.$current = new Widgets.DropdownMenuElement <HostilityResponseMode>
                        {
                            option = new FloatMenuOption(response.GetLabel(), delegate()
                            {
                                < DrawResponseButton_GenerateMenu > c__AnonStorey.p.playerSettings.hostilityResponse = response;
                            }, MenuOptionPriority.Default, null, null, 0f, null, null),
                            payload = response
                        };
                        if (!this.$disposing)
                        {
                            this.$PC = 1;
                        }
                        flag = true;
                        return(true);
                    }
        private static IEnumerable <Widgets.DropdownMenuElement <HostilityResponseMode> > DrawResponseButton_GenerateMenu(Pawn p)
        {
            IEnumerator enumerator = Enum.GetValues(typeof(HostilityResponseMode)).GetEnumerator();

            try
            {
                while (enumerator.MoveNext())
                {
                    _003CDrawResponseButton_GenerateMenu_003Ec__Iterator0 _003CDrawResponseButton_GenerateMenu_003Ec__Iterator = (_003CDrawResponseButton_GenerateMenu_003Ec__Iterator0) /*Error near IL_007e: stateMachine*/;
                    HostilityResponseMode response = (HostilityResponseMode)enumerator.Current;
                    if (response != HostilityResponseMode.Attack || !p.story.WorkTagIsDisabled(WorkTags.Violent))
                    {
                        yield return(new Widgets.DropdownMenuElement <HostilityResponseMode>
                        {
                            option = new FloatMenuOption(response.GetLabel(), delegate
                            {
                                p.playerSettings.hostilityResponse = response;
                            }),
                            payload = response
                        });

                        /*Error: Unable to find new state assignment for yield return*/;
                    }
                }
            }
            finally
            {
                IDisposable disposable;
                IDisposable disposable2 = disposable = (enumerator as IDisposable);
                if (disposable != null)
                {
                    disposable2.Dispose();
                }
            }
            yield break;
IL_0196:
            /*Error near IL_0197: Unexpected return in MoveNext()*/;
        }