mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
basic isolated track section hierarchy, track vertical radius property, ai passenger stop logic tweaks, ai signal speed limit tracking logic tweaks
This commit is contained in:
@@ -67,6 +67,7 @@ state_serializer::deserialize( cParser &Input, scene::scratch_data &Scratchpad )
|
||||
std::pair<
|
||||
std::string,
|
||||
deserializefunction> > functionlist = {
|
||||
{ "area", &state_serializer::deserialize_area },
|
||||
{ "atmo", &state_serializer::deserialize_atmo },
|
||||
{ "camera", &state_serializer::deserialize_camera },
|
||||
{ "config", &state_serializer::deserialize_config },
|
||||
@@ -125,6 +126,20 @@ state_serializer::deserialize( cParser &Input, scene::scratch_data &Scratchpad )
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
state_serializer::deserialize_area( cParser &Input, scene::scratch_data &Scratchpad ) {
|
||||
// first parameter specifies name of parent piece...
|
||||
auto token { Input.getToken<std::string>() };
|
||||
auto *groupowner { TIsolated::Find( token ) };
|
||||
// ...followed by list of its children
|
||||
while( ( false == ( token = Input.getToken<std::string>() ).empty() )
|
||||
&& ( token != "endarea" ) ) {
|
||||
// bind the children with their parent
|
||||
auto *isolated { TIsolated::Find( token ) };
|
||||
isolated->parent( groupowner );
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
state_serializer::deserialize_atmo( cParser &Input, scene::scratch_data &Scratchpad ) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user