Equity15 271021 Project
@@ -227,6 +227,13 @@ | ||
227 | 227 | |
228 | 228 | Create_Level_Folder(); |
229 | 229 | |
230 | + Add_World(); | |
231 | + | |
232 | + strcpy(App->CL_Vm_Model->Model_FolderPath, Level_Folder_Path); | |
233 | + strcpy(App->CL_Vm_Model->FileName, "World.mesh"); | |
234 | + | |
235 | + App->CL_Bullet_AddRoom->AddToScene(1); | |
236 | + | |
230 | 237 | App->Say("Created"); |
231 | 238 | return 1; |
232 | 239 | } |
@@ -290,6 +297,14 @@ | ||
290 | 297 | |
291 | 298 | } |
292 | 299 | |
300 | + return 1; | |
301 | +} | |
302 | + | |
303 | +// ************************************************************************* | |
304 | +// * Add_World Terry Flanigan * | |
305 | +// ************************************************************************* | |
306 | +bool SB_Project::Add_World() | |
307 | +{ | |
293 | 308 | char Source[1024]; |
294 | 309 | char Destination[1024]; |
295 | 310 |
@@ -298,9 +313,9 @@ | ||
298 | 313 | strcpy(Destination, Level_Folder_Path); |
299 | 314 | strcat(Destination, "\\"); |
300 | 315 | strcat(Destination, "World.mesh"); |
301 | - | |
302 | - CopyFile(Source, Destination,true); | |
303 | 316 | |
317 | + CopyFile(Source, Destination, true); | |
318 | + | |
304 | 319 | // -------------------------------------------------------------------- |
305 | 320 | strcpy(Source, "C:\\Users\\Equity\\Desktop\\Equity15\\Bin\\Data\\World_Ogre\\World.material"); |
306 | 321 |
@@ -307,7 +322,7 @@ | ||
307 | 322 | strcpy(Destination, Level_Folder_Path); |
308 | 323 | strcat(Destination, "\\"); |
309 | 324 | strcat(Destination, "World.material"); |
310 | - | |
325 | + | |
311 | 326 | CopyFile(Source, Destination, true); |
312 | 327 | |
313 | 328 | // -------------------------------------------------------------------- |
@@ -316,7 +331,7 @@ | ||
316 | 331 | strcpy(Destination, Level_Folder_Path); |
317 | 332 | strcat(Destination, "\\"); |
318 | 333 | strcat(Destination, "Wall.bmp"); |
319 | - | |
334 | + | |
320 | 335 | CopyFile(Source, Destination, true); |
321 | 336 | |
322 | 337 | // -------------------------------------------------------------------- |
@@ -325,7 +340,7 @@ | ||
325 | 340 | strcpy(Destination, Level_Folder_Path); |
326 | 341 | strcat(Destination, "\\"); |
327 | 342 | strcat(Destination, "stfloor1.bmp"); |
328 | - | |
343 | + | |
329 | 344 | CopyFile(Source, Destination, true); |
330 | 345 | |
331 | 346 | // -------------------------------------------------------------------- |
@@ -334,7 +349,8 @@ | ||
334 | 349 | strcpy(Destination, Level_Folder_Path); |
335 | 350 | strcat(Destination, "\\"); |
336 | 351 | strcat(Destination, "concrete.bmp"); |
337 | - | |
352 | + | |
338 | 353 | CopyFile(Source, Destination, true); |
354 | + | |
339 | 355 | return 1; |
340 | 356 | } |
@@ -47,7 +47,9 @@ | ||
47 | 47 | bool Set_Paths(); |
48 | 48 | bool Write_Project_Ini(); |
49 | 49 | bool Create_Level_Folder(); |
50 | + bool Add_World(); | |
50 | 51 | |
52 | + | |
51 | 53 | FILE *Write_Ini; |
52 | 54 | }; |
53 | 55 |