public CharacterValidationOperationHandler(int userId, Action <CharacterParameters?> onCharacterSelected)
        {
            this.userId = userId;
            this.onCharacterSelected = onCharacterSelected;

            characterServiceAPI = ServerComponents.GetComponent <ICharacterServiceAPI>().AssertNotNull();
        }
        public ChangeSceneOperationHandler(int userId, PlayerGameObject playerGameObject)
        {
            this.userId           = userId;
            this.playerGameObject = playerGameObject;

            sceneContainer = ServerComponents.GetComponent <ISceneContainer>().AssertNotNull();
            CharacterSpawnDetailsProvider = ServerComponents.GetComponent <ICharacterSpawnDetailsProvider>().AssertNotNull();
            characterServiceApi           = ServerComponents.GetComponent <ICharacterServiceAPI>().AssertNotNull();
        }
示例#3
0
        public GetCharactersOperationHandler(int userId)
        {
            this.userId = userId;

            characterServiceAPI = ServerComponents.GetComponent <ICharacterServiceAPI>().AssertNotNull();
        }