Пример #1
0
        /// <summary>
        /// インスタンス生成直後に実行される処理
        /// </summary>
        protected override void Awake()
        {
            base.Awake();

            _inputModule = GetComponent <IUIInputModule>();
            _keyConfig   = GetComponent <IKeyConfig>();
        }
Пример #2
0
 private static string GetHeaderSegment(IKeyConfig key)
 {
     if (key.Algorithm.IsHmac())
     {
         return new JsonWebTokenHeader
                {
                    Algorithm = key.Algorithm
                }
     }
Пример #3
0
        /// <summary>
        /// コンストラクタ
        /// </summary>
        /// <param name="keyNum">キー設定に含むキーの数</param>
        /// <param name="keyConfig">キー設定のインターフェイス</param>
        public KeyGroup(int keyNum, IKeyConfig keyConfig)
        {
            _alters = new KeyAlterer[keyConfig.Count];
            _fields = new List <IKeyFieldAccesser>(keyNum);
            _keys   = new Dictionary <int, KeyCode>(keyNum);

            IKeyMap map;

            for (int i = 1; i < _alters.Length; i++)
            {
                map        = keyConfig.GetKeyMap(i);
                _alters[i] = new KeyAlterer(map.Count, _keys);
            }
        }
Пример #4
0
        /// <summary>
        /// 初回のみ実行される更新処理。
        /// 全てのAwake関数を実行した後に呼ばれる
        /// </summary>
        void Start()
        {
            _uiConfig = InputManager.Instance.KeyConfig;
            _plConfig = Player.PlayerManager.Instance.KeyConfig;
            _uiGroup  = new KeyGroup(UIKeyId.Num, _uiConfig);
            _plGroup  = new KeyGroup(PKeyId.Num, _plConfig);

            GetSaveData();

            // 初期処理が完了したことを通知
            initialized();

            SetKeyFromSaveData();
        }
Пример #5
0
 /// <summary>
 /// インスタンス生成直後に実行される処理
 /// </summary>
 void Awake()
 {
     _keyConfig = GetComponent <IKeyConfig>();
     _events    = new Dictionary <int, EventSender>(_inputActionCount);
 }
Пример #6
0
 public ConfigFileSymmetricKeyProvider(IKeyConfig issuer, IConsumerConfig consumer)
 {
     _issuer   = issuer;
     _consumer = consumer;
 }
Пример #7
0
 public TokenGenerator(IJwtConfiguration tokenConfiguration, IKeyConfig keyConfig)
 {
     _tokenConfiguration = tokenConfiguration ?? throw new ArgumentNullException(nameof(tokenConfiguration));
     _keyConfig          = keyConfig ?? throw new ArgumentNullException(nameof(keyConfig));
 }
Пример #8
0
 public CngKeyProvider(IKeyConfig keyConfig)
 {
     _keyConfig = keyConfig;
 }
 public KeyManager(IKeyConfig config)
 {
     _keyHandlers = new Dictionary <Keyboard.Key, ApplicationAction>(config.KeyMap);
     _actionMap   = new Dictionary <ApplicationActionType, Action>();
 }
Пример #10
0
        /// <summary>
        /// インスタンス生成直後に実行される処理
        /// </summary>
        protected override void Awake()
        {
            base.Awake();

            _keyConfig = GetComponent <PlayerKeyConfig>();
        }
Пример #11
0
 public CngKeyProvider(IKeyConfig keyConfig)
 {
     _keyConfig = keyConfig;
 }
Пример #12
0
 public ConfigFileSymmetricKeyProvider(IKeyConfig issuer, IConsumerConfig consumer)
 {
     _issuer = issuer;
     _consumer = consumer;
 }