supertuxkart-sourceforge-migration / stk-migration-test2

0 stars 0 forks source link

Refactor track exporter #864

Open supertuxkart-sourceforge-migration opened 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria

At this time, the exporter uses a design that doesn't scale when adding new object types. We just have too many objects list :

def writeSceneFile(self, sPath, sTrackName, lWater, lTrack, lItems, lObjects, lBillboards,
                       lParticleEmitters, lSoundEmitters, lActionTriggers, lChecks, lSun, mainDriveline,
                       lStart, lEndCameras, lCameraCurves, lLights)

this should be refactored so that it's easier to add new object types

Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/ticket/864

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Good start in r12405. More refactoring could help, drivelines and objects for instance are still "monolithic" as before

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria More refactoring was done later but I forgot to close the ticket, it's now in a good state