MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / cScriptingEngine

Method cScriptingEngine

Source/ScriptingEngine.cpp:169–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169cScriptingEngine::cScriptingEngine() {
170
171 mContext = duk_create_heap_default();
172
173 init();
174 spritesCreateObject();
175
176 scriptsLoadFolder("Terrain/");
177 scriptsLoadFolder("Terrain/Jungle/");
178
179 scriptsLoadFolder("General/");
180 scriptsLoadFolder("General/Names/");
181 scriptsLoadFolder("General/Structures/");
182
183 scriptsLoadFolder("Objectives/");
184 scriptsLoadFolder("Objectives/Kill.All.Enemy/");
185 scriptsLoadFolder("Objectives/Destroy.Enemy.Buildings/");
186 scriptsLoadFolder("Objectives/Rescue.Hostages/");
187 scriptsLoadFolder("Objectives/Protect.Civilians/");
188 scriptsLoadFolder("Objectives/Kidnap.Leader/");
189 scriptsLoadFolder("Objectives/Destroy.Factory/");
190 scriptsLoadFolder("Objectives/Destroy.Computer/");
191 scriptsLoadFolder("Objectives/Get.Civilian.Home/");
192 // CF2 Engine
193 scriptsLoadFolder("Objectives/Activate.Switches/");
194 scriptsLoadFolder("Objectives/Rescue.Hostage/");
195
196
197 scriptsLoadFolder("Scenarios/");
198 Run("Settings.js");
199}
200
201cScriptingEngine::~cScriptingEngine() {
202

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected