Browse Source

Added some missing typescript definitions

Matt Benic 10 years ago
parent
commit
0750894a37
2 changed files with 11 additions and 0 deletions
  1. 1 0
      Script/Packages/Atomic/Scene.json
  2. 10 0
      Script/TypeScript/AtomicWork.d.ts

+ 1 - 0
Script/Packages/Atomic/Scene.json

@@ -34,6 +34,7 @@
 		],
 		"Node" : [
 			"saveXML(file:File):boolean;",
+			"loadXML(file:File):boolean;",
 			"getChildrenWithName(name:string, recursive?:boolean):Node[];",
 			"getChildrenWithComponent(componentType:string, recursive?:boolean):Node[];",
 			"getComponents(componentType?:string, recursive?:boolean):Component[];",

+ 10 - 0
Script/TypeScript/AtomicWork.d.ts

@@ -180,6 +180,16 @@ declare module Atomic {
     export function getGraphics(): Graphics;
     export function getFileSystem(): FileSystem;
     export function getResourceCache(): ResourceCache;
+    export function getRenderer(): Atomic.Renderer;
+    export function getNetwork(): Atomic.Network;
+
+    export function assert();
+    export function js_module_read_file(path: string);
+    export function openConsoleWindow();
+    export function script(script: string): boolean;
+    export function destroy(node: Atomic.Node): boolean;
+    export function destroy(scene: Atomic.Scene): boolean;
+    export function destroy(component: Atomic.JSComponent): boolean;
 
     export function getParentPath(path: string): string;
     export function addTrailingSlash(path: string): string;