Пример #1
0
        private GameKeybindActor(GameKeybindActorType type, ref GameController controller)
        {
            _type       = type;
            _controller = controller;

            _keybindHost = null;

            Parameter = new object[0];
        }
Пример #2
0
        public Func <GameKeybindContext, object> this[GameKeybindActorType type]
        {
            get
            {
                switch (type)
                {
                case GameKeybindActorType.AI:
                    return(AI);

                case GameKeybindActorType.Keyboard:
                    return(Keyboard);

                case GameKeybindActorType.Controller:
                    return(Controller);

                default:
                    throw new ArgumentOutOfRangeException(nameof(type), type, null);
                }
            }
        }