blob: a69c93238638cbde251f18f5b075bf8de8404c7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
---@meta
---@class ccs.Bone :cc.Node
local Bone={ }
ccs.Bone=Bone
---*
---@return boolean
function Bone:isTransformDirty () end
---*
---@param blendFunc cc.BlendFunc
---@return self
function Bone:setBlendFunc (blendFunc) end
---*
---@return boolean
function Bone:isIgnoreMovementBoneData () end
---* Update zorder
---@return self
function Bone:updateZOrder () end
---*
---@return cc.Node
function Bone:getDisplayRenderNode () end
---*
---@return boolean
function Bone:isBlendDirty () end
---* Add a child to this bone, and it will let this child call setParent(Bone *parent) function to set self to it's parent<br>
---* param child the child you want to add
---@param child ccs.Bone
---@return self
function Bone:addChildBone (child) end
---*
---@return ccs.BaseData
function Bone:getWorldInfo () end
---*
---@return ccs.Tween
function Bone:getTween () end
---* Get parent bone<br>
---* return parent bone
---@return self
function Bone:getParentBone () end
---* Update color to render display
---@return self
function Bone:updateColor () end
---*
---@param dirty boolean
---@return self
function Bone:setTransformDirty (dirty) end
---*
---@return int
function Bone:getDisplayRenderNodeType () end
---*
---@param index int
---@return self
function Bone:removeDisplay (index) end
---*
---@param boneData ccs.BoneData
---@return self
function Bone:setBoneData (boneData) end
---* Initializes a Bone with the specified name<br>
---* param name Bone's name.
---@param name string
---@return boolean
function Bone:init (name) end
---* Set parent bone.<br>
---* If parent is null, then also remove this bone from armature.<br>
---* It will not set the Armature, if you want to add the bone to a Armature, you should use Armature::addBone(Bone *bone, const char* parentName).<br>
---* param parent the parent bone.<br>
---* nullptr : remove this bone from armature
---@param parent ccs.Bone
---@return self
function Bone:setParentBone (parent) end
---@overload fun(ccs.DisplayData0:cc.Node,int:int):self
---@overload fun(ccs.DisplayData:ccs.DisplayData,int:int):self
---@param displayData ccs.DisplayData
---@param index int
---@return self
function Bone:addDisplay (displayData,index) end
---*
---@return cc.BlendFunc
function Bone:getBlendFunc () end
---* Remove itself from its parent.<br>
---* param recursion whether or not to remove childBone's display
---@param recursion boolean
---@return self
function Bone:removeFromParent (recursion) end
---*
---@return ccs.ColliderDetector
function Bone:getColliderDetector () end
---*
---@return ccs.Armature
function Bone:getChildArmature () end
---*
---@return ccs.FrameData
function Bone:getTweenData () end
---*
---@param index int
---@param force boolean
---@return self
function Bone:changeDisplayWithIndex (index,force) end
---*
---@param name string
---@param force boolean
---@return self
function Bone:changeDisplayWithName (name,force) end
---*
---@param armature ccs.Armature
---@return self
function Bone:setArmature (armature) end
---*
---@param dirty boolean
---@return self
function Bone:setBlendDirty (dirty) end
---* Removes a child Bone<br>
---* param bone the bone you want to remove
---@param bone ccs.Bone
---@param recursion boolean
---@return self
function Bone:removeChildBone (bone,recursion) end
---*
---@param childArmature ccs.Armature
---@return self
function Bone:setChildArmature (childArmature) end
---*
---@return mat4_table
function Bone:getNodeToArmatureTransform () end
---*
---@return ccs.DisplayManager
function Bone:getDisplayManager () end
---*
---@return ccs.Armature
function Bone:getArmature () end
---*
---@return ccs.BoneData
function Bone:getBoneData () end
---@overload fun(string:string):self
---@overload fun():self
---@param name string
---@return self
function Bone:create (name) end
---*
---@return mat4_table
function Bone:getNodeToWorldTransform () end
---*
---@param zOrder int
---@return self
function Bone:setLocalZOrder (zOrder) end
---*
---@param delta float
---@return self
function Bone:update (delta) end
---*
---@param parentOpacity unsigned_char
---@return self
function Bone:updateDisplayedOpacity (parentOpacity) end
---* Initializes an empty Bone with nothing init.
---@return boolean
function Bone:init () end
---*
---@param parentColor color3b_table
---@return self
function Bone:updateDisplayedColor (parentColor) end
---* js ctor
---@return self
function Bone:Bone () end
|