MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / saveIni

Method saveIni

ogsr_engine/xr_3da/Environment_misc.cpp:89–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89bool CEnvModifier::saveIni(CInifile& ini, LPCSTR section)
90{
91 ini.w_fvector3(section, "position", position);
92 ini.w_float(section, "radius", radius);
93 ini.w_float(section, "power", power);
94 ini.w_float(section, "far_plane", far_plane);
95 ini.w_fvector3(section, "fog_color", fog_color);
96 ini.w_float(section, "fog_density", fog_density);
97 ini.w_fvector3(section, "ambient", ambient);
98 ini.w_fvector3(section, "sky_color", sky_color);
99 ini.w_fvector3(section, "hemi_color", hemi_color);
100
101 ini.w_u16(section, "use_flags", use_flags.get());
102
103 ini.w_u8(section, "shape_type", shape_type);
104 ini.w_fvector3(section, "shape_rotate", shape_rotate);
105 ini.w_fvector3(section, "shape_halfsize", shape_halfsize);
106
107 return true;
108}
109
110float CEnvModifier::sum(CEnvModifier& M, Fvector3& view)
111{

Callers 1

mods_loadMethod · 0.45

Calls 5

w_fvector3Method · 0.80
w_floatMethod · 0.45
w_u16Method · 0.45
getMethod · 0.45
w_u8Method · 0.45

Tested by

no test coverage detected