Skip to content

ModAPI SDK v2.5.203

Compare
Choose a tag to compare
@emd4600 emd4600 released this 27 Sep 21:01
· 187 commits to master since this release

Several improvements to classes EditorRigblock, EditorModel, cEditorResource, EditorBaseHandle, TuningSpine. Apart from completing the structure and fields of these classes, several interesting methods have been added related to editor models. An example of what you can do:

auto resource = new Editors::cEditorResource();
Editor.GetEditorModel()->Save(resource);

// ... 
// Later:
auto model = new Editors::EditorModel();
model->Load(resource);
Editor.SetEditorModel(model);

This saves the current creation into the resource object. That creation can be later restored in the editor creating a new model, loading the resource and setting it in the Editor.