Scene.json 2.7 KB

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