Scene.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. },
  22. "ValueAnimationInfo" : {
  23. "ValueAnimationInfo" : ["ValueAnimation", "WrapMode", "float"]
  24. }
  25. },
  26. "typescript_decl" : {
  27. "Serializable" : [
  28. "getAttributes():AttributeInfo[];",
  29. "getAttribute(name:string):any;",
  30. "setAttribute(name:string, value:any):void;"
  31. ],
  32. "Node" : [
  33. "saveXML(file:File):boolean;",
  34. "loadXML(file:File):boolean;",
  35. "getChildrenWithName(name:string, recursive?:boolean):Node[];",
  36. "getChildrenWithComponent(componentType:string, recursive?:boolean):Node[];",
  37. "getComponents(componentType?:string, recursive?:boolean):Component[];",
  38. "getChildAtIndex(index:number):Node;",
  39. "createJSComponent(name:string, args?:{});",
  40. "getJSComponent(name:string):JSComponent;",
  41. "createChildPrefab(childName:string, prefabPath:string):Node;",
  42. "loadPrefab(prefabPath:string):boolean;"
  43. ],
  44. "Scene" : [
  45. "getMainCamera():Camera;"
  46. ]
  47. },
  48. "haxe_decl" : {
  49. "Node" : [
  50. "function saveXML(file:File):Bool;",
  51. "function getChildrenWithName(name:String, ?recursive:Bool):Array<Node>;",
  52. "function getChildrenWithComponent(componentType:String, ?recursive:Bool):Array<Node>;",
  53. "function getComponents(?componentType:String, ?recursive:Bool):Array<Component>;",
  54. "function getChildAtIndex(index:UInt):Node;",
  55. "function createJSComponent(name:String, ?args:Dynamic):JSComponent;",
  56. "function getJSComponent(name:String):JSComponent;",
  57. "function createChildPrefab(childName:String, prefabPath:String):Node;",
  58. "function loadPrefab(prefabPath:String):Bool;"
  59. ],
  60. "Scene" : [
  61. "function getMainCamera():Camera;"
  62. ]
  63. }
  64. }