Browse Source

Some minor TS improvements based on suggestions by @shaddockh. Ignored cache and autogenerated tsconfig.atomic

Matt Benic 9 years ago
parent
commit
fa6ef331a5

+ 2 - 0
EditorPluginExample/.gitignore

@@ -0,0 +1,2 @@
+Cache
+Resources/tsconfig.atomic

+ 3 - 3
EditorPluginExample/Resources/EditorData/Example.plugin.ts

@@ -4,7 +4,7 @@
 const ExamplePluginUILabel = "Example Plugin";
 const ExamplePluginTBPath = "EditorData/Example.tb.txt";
 
-class ExamplePluginService implements Editor.HostExtensions.HostEditorService, Editor.HostExtensions.ProjectService {
+class ExamplePluginService implements Editor.HostExtensions.HostEditorService, Editor.HostExtensions.ProjectService, Editor.HostExtensions.UIService {
 
     name: string = "ExampleService";
     description: string = "This service demonstrates plugin functionality functionality.";
@@ -15,10 +15,10 @@ class ExamplePluginService implements Editor.HostExtensions.HostEditorService, E
     private helloLabel: Atomic.UITextField;
     private nameField: Atomic.UIEditField;
 
-    initialize(serviceLoader: Editor.Extensions.ServiceLoader) {
+    initialize(serviceLoader: Editor.HostExtensions.HostServiceLocator) {
         Atomic.print("ExamplePluginService.initialize");
 
-        this.serviceLocator = <Editor.HostExtensions.HostServiceLocator>(serviceLoader);
+        this.serviceLocator = (serviceLoader);
         if (this.serviceLocator) {
             this.serviceLocator.projectServices.register(this);
             this.serviceLocator.uiServices.register(this);

+ 0 - 1
EditorPluginExample/Resources/tsconfig.atomic

@@ -1 +0,0 @@
-{"files":["Resources/Scripts/main.ts","Resources/EditorData/Example.plugin.ts","F:/Shared/Work/LumaAnimation/VSE/Atomic/AtomicGameEngine_git/Data/AtomicEditor/TypeScriptSupport/lib.core.d.ts","F:/Shared/Work/LumaAnimation/VSE/Atomic/AtomicGameEngine_git/Data/AtomicEditor/TypeScriptSupport/duktape.d.ts","F:/Shared/Work/LumaAnimation/VSE/Atomic/AtomicExamples_git/EditorPluginExample/typings/Atomic/Atomic.d.ts","F:/Shared/Work/LumaAnimation/VSE/Atomic/AtomicExamples_git/EditorPluginExample/typings/Atomic/AtomicPlayer.d.ts","F:/Shared/Work/LumaAnimation/VSE/Atomic/AtomicExamples_git/EditorPluginExample/typings/Atomic/AtomicWork.d.ts","F:/Shared/Work/LumaAnimation/VSE/Atomic/AtomicExamples_git/EditorPluginExample/typings/Atomic/Editor.d.ts","F:/Shared/Work/LumaAnimation/VSE/Atomic/AtomicExamples_git/EditorPluginExample/typings/Atomic/EditorWork.d.ts","F:/Shared/Work/LumaAnimation/VSE/Atomic/AtomicExamples_git/EditorPluginExample/typings/Atomic/AtomicNET.d.ts","F:/Shared/Work/LumaAnimation/VSE/Atomic/AtomicExamples_git/EditorPluginExample/typings/Atomic/ToolCore.d.ts","F:/Shared/Work/LumaAnimation/VSE/Atomic/AtomicExamples_git/EditorPluginExample/typings/Atomic/duktape.d.ts","F:/Shared/Work/LumaAnimation/VSE/Atomic/AtomicExamples_git/EditorPluginExample/typings/Atomic/WebView.d.ts"]}