| 167 | } |
| 168 | |
| 169 | cScriptingEngine::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 | |
| 201 | cScriptingEngine::~cScriptingEngine() { |
| 202 |
nothing calls this directly
no outgoing calls
no test coverage detected