• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 7 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.

Instantiate of abstract MVRScript's when using *.cslist's

MacGruber

Invaluable member
Developer
Wiki Contributor
Featured Contributor
Joined
May 11, 2020
Messages
1,749
Solutions
93
Reactions
3,380
In some cases it would make sense to have an abstract base class. For example an improved script base class that provides some utility methods, derived from MVRScript. It would need to be abstract, so it does not actually create a script instance. Some other class in the *.cslist would derive from it and provide the actual script instance.

Currently trying something like that causes an error message.

This should be a simple check for ScriptType.RawType.IsAbstract in MVRPluginManager.SyncPluginUrl before calling CreateScriptController (two locations). The warning "No MVRScript types found" would need to be triggered also when the array turns out to be only containing abstract classes.
 
Last edited:
Back
Top Bottom