CARLA
载入中...
搜索中...
未找到
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Game
CarlaGameInstance.cpp
浏览该文件的文档.
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
;
CarlaGameInstance.h
CarlaSettings.h
Carla.h
FCarlaEngine::SetRecorder
void SetRecorder(ACarlaRecorder *InRecorder)
Definition
CarlaEngine.h:60
UCarlaGameInstance::UCarlaGameInstance
UCarlaGameInstance()
Definition
CarlaGameInstance.cpp:12
UCarlaGameInstance::Recorder
ACarlaRecorder * Recorder
Definition
CarlaGameInstance.h:124
UCarlaGameInstance::CarlaEngine
FCarlaEngine CarlaEngine
Definition
CarlaGameInstance.h:121
UCarlaGameInstance::~UCarlaGameInstance
~UCarlaGameInstance()
UCarlaGameInstance::CarlaSettings
UCarlaSettings * CarlaSettings
Definition
CarlaGameInstance.h:119
UCarlaSettings::LoadSettings
void LoadSettings()
Load the settings based on the command-line arguments and the INI file if provided.
Definition
CarlaSettings.cpp:107
UCarlaSettings::LogSettings
void LogSettings() const
Log settings values.
Definition
CarlaSettings.cpp:175
制作者
1.10.0