Scene.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. "getComponent<T extends Atomic.Component>(type: string, recursive?: boolean): T;",
  40. "getParentComponent<T extends Atomic.Component>(type: string, fullTraversal?: boolean): T;",
  41. "getChildAtIndex(index:number):Node;",
  42. "createJSComponent(name:string, args?:{});",
  43. "getJSComponent(name:string, recursive?:boolean): JSComponent;",
  44. "getJSComponent<T extends Atomic.JSComponent>(name:string, recursive?:boolean): T;",
  45. "createChildPrefab(childName:string, prefabPath:string):Node;",
  46. "loadPrefab(prefabPath:string):boolean;",
  47. "createComponent<T extends Atomic.Component>(type: string, mode?: CreateMode, id?: number): T;",
  48. "getOrCreateComponent<T extends Atomic.Component>(type: string, mode?: CreateMode, id?: number): T;"
  49. ],
  50. "Scene" : [
  51. "getMainCamera():Camera;"
  52. ],
  53. "Component": [
  54. "getComponent<T extends Atomic.Component>(type: string): T;"
  55. ]
  56. },
  57. "haxe_decl" : {
  58. "Node" : [
  59. "function saveXML(file:File):Bool;",
  60. "function getChildrenWithName(name:String, ?recursive:Bool):Array<Node>;",
  61. "function getChildrenWithComponent(componentType:String, ?recursive:Bool):Array<Node>;",
  62. "function getComponents(?componentType:String, ?recursive:Bool):Array<Component>;",
  63. "function getChildAtIndex(index:UInt):Node;",
  64. "function createJSComponent(name:String, ?args:Dynamic):JSComponent;",
  65. "function getJSComponent(name:String, ?recursive:Bool):JSComponent;",
  66. "function createChildPrefab(childName:String, prefabPath:String):Node;",
  67. "function loadPrefab(prefabPath:String):Bool;"
  68. ],
  69. "Scene" : [
  70. "function getMainCamera():Camera;"
  71. ]
  72. }
  73. }