Scene.json 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "name" : "Scene",
  3. "sources" : ["Source/Atomic/Scene"],
  4. "includes" : ["<Atomic/Scene/LogicComponent.h>", "<Atomic/Network/Connection.h>"],
  5. "classes" : ["Animatable", "Node", "Scene", "Component", "Serializable",
  6. "ObjectAnimation", "SmoothedTransform", "SplinePath",
  7. "ValueAnimation", "ValueAnimationInfo", "PrefabComponent"],
  8. "excludes" : {
  9. "Scene" : {
  10. "GetComponent" : ["unsigned"],
  11. "MarkReplicationDirty" : ["Node"]
  12. }
  13. },
  14. "overloads" : {
  15. "Node" : {
  16. "CreateChild" : ["String", "CreateMode", "unsigned"],
  17. "GetChild" : ["String", "bool"],
  18. "SetScale" : ["Vector3"],
  19. "SetPosition2D" : ["Vector2"],
  20. "SetScale2D" : ["Vector2"],
  21. "RemoveComponent" : ["Component"]
  22. },
  23. "ValueAnimationInfo" : {
  24. "ValueAnimationInfo" : ["ValueAnimation", "WrapMode", "float"]
  25. }
  26. },
  27. "typescript_decl" : {
  28. "Serializable" : [
  29. "getAttributes():AttributeInfo[];",
  30. "getAttribute(name:string):any;",
  31. "setAttribute(name:string, value:any):void;"
  32. ],
  33. "Node" : [
  34. "saveXML(file:File):boolean;",
  35. "loadXML(file:File):boolean;",
  36. "getChildrenWithName(name:string, recursive?:boolean):Node[];",
  37. "getChildrenWithComponent(componentType:string, recursive?:boolean):Node[];",
  38. "getComponents(componentType?:string, recursive?:boolean):Component[];",
  39. "getChildAtIndex(index:number):Node;",
  40. "createJSComponent(name:string, args?:{});",
  41. "getJSComponent(name:string, recursive?:boolean):JSComponent;",
  42. "createChildPrefab(childName:string, prefabPath:string):Node;",
  43. "loadPrefab(prefabPath:string):boolean;"
  44. ],
  45. "Scene" : [
  46. "getMainCamera():Camera;"
  47. ]
  48. },
  49. "haxe_decl" : {
  50. "Node" : [
  51. "function saveXML(file:File):Bool;",
  52. "function getChildrenWithName(name:String, ?recursive:Bool):Array<Node>;",
  53. "function getChildrenWithComponent(componentType:String, ?recursive:Bool):Array<Node>;",
  54. "function getComponents(?componentType:String, ?recursive:Bool):Array<Component>;",
  55. "function getChildAtIndex(index:UInt):Node;",
  56. "function createJSComponent(name:String, ?args:Dynamic):JSComponent;",
  57. "function getJSComponent(name:String, ?recursive:Bool):JSComponent;",
  58. "function createChildPrefab(childName:String, prefabPath:String):Node;",
  59. "function loadPrefab(prefabPath:String):Bool;"
  60. ],
  61. "Scene" : [
  62. "function getMainCamera():Camera;"
  63. ]
  64. }
  65. }