Scene.json 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. "GetRequiredPackageFiles" : []
  13. }
  14. },
  15. "overloads" : {
  16. "Node" : {
  17. "CreateChild" : ["String", "CreateMode", "unsigned"],
  18. "GetChild" : ["String", "bool"],
  19. "SetScale" : ["Vector3"],
  20. "SetPosition2D" : ["Vector2"],
  21. "SetScale2D" : ["Vector2"],
  22. "RemoveComponent" : ["Component"]
  23. },
  24. "ValueAnimationInfo" : {
  25. "ValueAnimationInfo" : ["ValueAnimation", "WrapMode", "float"]
  26. }
  27. },
  28. "typescript_decl" : {
  29. "Serializable" : [
  30. "getAttributes():AttributeInfo[];",
  31. "getAttribute(name:string, index?:number):any;",
  32. "setAttribute(name:string, value:any, index?:number):void;"
  33. ],
  34. "Node" : [
  35. "saveXML(file:File):boolean;",
  36. "loadXML(file:File):boolean;",
  37. "getChildrenWithName(name:string, recursive?:boolean):Node[];",
  38. "getChildrenWithComponent(componentType:string, recursive?:boolean):Node[];",
  39. "getComponents(componentType?:string, recursive?:boolean):Component[];",
  40. "getComponent<T extends Atomic.Component>(type: string, recursive?: boolean): T;",
  41. "getParentComponent<T extends Atomic.Component>(type: string, fullTraversal?: boolean): T;",
  42. "getChildAtIndex(index:number):Node;",
  43. "createJSComponent(name:string, args?:{});",
  44. "getJSComponent(name:string, recursive?:boolean): JSComponent;",
  45. "getJSComponent<T extends Atomic.JSComponent>(name:string, recursive?:boolean): T;",
  46. "createChildPrefab(childName:string, prefabPath:string):Node;",
  47. "loadPrefab(prefabPath:string):boolean;",
  48. "createComponent<T extends Atomic.Component>(type: string, mode?: CreateMode, id?: number): T;",
  49. "getOrCreateComponent<T extends Atomic.Component>(type: string, mode?: CreateMode, id?: number): T;"
  50. ],
  51. "Scene" : [
  52. "getMainCamera():Camera;"
  53. ],
  54. "Component": [
  55. "getComponent<T extends Atomic.Component>(type: string): T;"
  56. ]
  57. },
  58. "haxe_decl" : {
  59. "Node" : [
  60. "function saveXML(file:File):Bool;",
  61. "function getChildrenWithName(name:String, ?recursive:Bool):Array<Node>;",
  62. "function getChildrenWithComponent(componentType:String, ?recursive:Bool):Array<Node>;",
  63. "function getComponents(?componentType:String, ?recursive:Bool):Array<Component>;",
  64. "function getChildAtIndex(index:UInt):Node;",
  65. "function createJSComponent(name:String, ?args:Dynamic):JSComponent;",
  66. "function getJSComponent(name:String, ?recursive:Bool):JSComponent;",
  67. "function createChildPrefab(childName:String, prefabPath:String):Node;",
  68. "function loadPrefab(prefabPath:String):Bool;"
  69. ],
  70. "Scene" : [
  71. "function getMainCamera():Camera;"
  72. ]
  73. }
  74. }