Coding classes for version 2
Having established that we have a licence for Visual Studio, so we can distribute the MS dll, and that we can get JS Bridge working, I'm starting into the actual updating of Transformer, taking it to version 2; this will be targetted initially at producing a tool which can do the whole transformation of DB's Waterloo Script files.
Today I wrote a new unit (about 1,000 lines) with four classes: TTransformItem
(base class for the next two), TReplaceItem
, TScriptItem
, and TTransformList
. Much of the code for these is adapted from the old TReplaceItem/TReplaceList, but there are new properties and a slightly more complex hierarchy. Everything is done (although not tested) with the exception of TTransformList.ExecuteScript
, which will execute script directly. It's a method of the list rather than of the item, because is a GlobalScript
field where global stuff can be stashed, and that'll need to be bundled in with any code from the item.
Looking forward to getting into the use of JS Bridge...