3.2.3
π§ Changes
[!IMPORTANT] You don't need to assign classes to
SDKorC3variables in global scope, Lost automatically adds assignment at build >time, making the addon files much cleaner. But note that you must use for exampleexport type { <className> }for the file to be >detected as used and compiled into Javascript.
New Plugin bare bones
New Drawing Plugin bare bones
New Behavior bare bones
- Added new
Editorfolder for editing editorInstance.tsandType.tsclasses. - The
lost.config.tsconfig file must usedefineConfigmethod from library. - Added new field for 'plugin' addon type
pluginType: 'object' | 'world' /** 'world' for drawing plugins */For drawing plugin you should set pluginType to world
lost.config.ts
import { defineConfig } from 'jsr:@lost-c3/[email protected]';
export default defineConfig<'plugin'>({
type: 'plugin',
pluginType: 'object',
// deprecated?: boolean;
// minConstructVersion?: string;
// canBeBundled?: boolean;
isSingleGlobal: true,
objectName: 'LostPlugin',
addonId: 'LostPluginId',
category: 'general',
addonName: 'Lost plugin for Construct 3',
addonDescription: 'My awesome addon was made with Lost',
version: '1.0.0.0',
author: 'lostinmind.',
docsUrl: 'https://myaddon.com/docs',
helpUrl: {
EN: 'https://myaddon.com/help/en'
},
websiteUrl: 'https://myaddon.com'
})- The
addon.tsconfig file must usedefineAddonmethod from library.
addon.ts
import { defineAddon, Plugin } from 'jsr:@lost-c3/[email protected]';
import config from './lost.config.ts';
export default defineAddon(
new Plugin<EditorInstance, EditorType>(config)
)π New features
- Added drawing plugin support (also added new fields in config for drawing plugins)
- Added behavior addon support
- Now you can use types of your
EditorInstanceandEditorTypeinnew Plugin<EditorInstance, EditorType>andnew Behavior<EditorInstance>. It will automatically detect your editor instance class type for using it inProperty.LinkorProperty.Infoplugin property type for example
π Improvements
- Increased addon build time