CARLA
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Game
CarlaGameInstance.cpp
Go to the documentation of this file.
1
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2
// de Barcelona (UAB).
3
//
4
// This work is licensed under the terms of the MIT license.
5
// For a copy, see <https://opensource.org/licenses/MIT>.
6
7
#include "
Carla.h
"
8
#include "
Carla/Game/CarlaGameInstance.h
"
9
10
#include "
Carla/Settings/CarlaSettings.h
"
11
12
UCarlaGameInstance::UCarlaGameInstance
() {
13
CarlaSettings
= CreateDefaultSubobject<UCarlaSettings>(TEXT(
"CarlaSettings"
));
14
Recorder
= CreateDefaultSubobject<ACarlaRecorder>(TEXT(
"Recorder"
));
15
CarlaEngine
.
SetRecorder
(Recorder);
16
17
check(
CarlaSettings
!=
nullptr
);
18
CarlaSettings
->
LoadSettings
();
19
CarlaSettings
->
LogSettings
();
20
}
21
22
UCarlaGameInstance::~UCarlaGameInstance
() =
default
;
UCarlaGameInstance::Recorder
ACarlaRecorder * Recorder
Definition:
CarlaGameInstance.h:124
CarlaSettings.h
UCarlaSettings::LoadSettings
void LoadSettings()
Load the settings based on the command-line arguments and the INI file if provided.
Definition:
CarlaSettings.cpp:107
FCarlaEngine::SetRecorder
void SetRecorder(ACarlaRecorder *InRecorder)
Definition:
CarlaEngine.h:60
UCarlaGameInstance::~UCarlaGameInstance
~UCarlaGameInstance()
UCarlaGameInstance::CarlaEngine
FCarlaEngine CarlaEngine
Definition:
CarlaGameInstance.h:121
CarlaGameInstance.h
Carla.h
UCarlaGameInstance::UCarlaGameInstance
UCarlaGameInstance()
Definition:
CarlaGameInstance.cpp:12
UCarlaGameInstance::CarlaSettings
UCarlaSettings * CarlaSettings
Definition:
CarlaGameInstance.h:119
UCarlaSettings::LogSettings
void LogSettings() const
Log settings values.
Definition:
CarlaSettings.cpp:175
Generated by
1.8.13