Advertisement
kevansevans

Untitled

Feb 11th, 2018
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.41 KB | None | 0 0
  1. // Generated by Haxe 3.4.5
  2. #include <hxcpp.h>
  3.  
  4. #ifndef INCLUDED_lr_rider_phys_anchors_CPoint
  5. #include <lr/rider/phys/anchors/CPoint.h>
  6. #endif
  7.  
  8. HX_DEFINE_STACK_FRAME(_hx_pos_dbf7266dd2913d86_31_new,"lr.rider.phys.anchors.CPoint","new",0x8cc579cf,"lr.rider.phys.anchors.CPoint.new","lr/rider/phys/anchors/CPoint.hx",31,0x789d7381)
  9. HX_LOCAL_STACK_FRAME(_hx_pos_dbf7266dd2913d86_42_verlet,"lr.rider.phys.anchors.CPoint","verlet",0xafde6f49,"lr.rider.phys.anchors.CPoint.verlet","lr/rider/phys/anchors/CPoint.hx",42,0x789d7381)
  10. HX_LOCAL_STACK_FRAME(_hx_pos_dbf7266dd2913d86_53_get_n,"lr.rider.phys.anchors.CPoint","get_n",0x5ca2c874,"lr.rider.phys.anchors.CPoint.get_n","lr/rider/phys/anchors/CPoint.hx",53,0x789d7381)
  11. HX_LOCAL_STACK_FRAME(_hx_pos_dbf7266dd2913d86_59_save,"lr.rider.phys.anchors.CPoint","save",0xa35022ee,"lr.rider.phys.anchors.CPoint.save","lr/rider/phys/anchors/CPoint.hx",59,0x789d7381)
  12. namespace lr{
  13. namespace rider{
  14. namespace phys{
  15. namespace anchors{
  16.  
  17. void CPoint_obj::__construct(Float _x,Float _y,Float _fr,int _id){
  18. HX_STACKFRAME(&_hx_pos_dbf7266dd2913d86_31_new)
  19. HXLINE( 32) this->x = _x;
  20. HXLINE( 33) this->y = _y;
  21. HXLINE( 34) this->dx = (this->dy = (int)0);
  22. HXLINE( 35) this->vx = (this->vy = (int)0);
  23. HXLINE( 36) this->fr = _fr;
  24. HXLINE( 37) this->ID = _id;
  25. HXLINE( 38) ::Dynamic this1 = ::Dynamic(hx::Anon_obj::Create(0));
  26. HXDLIN( 38) this->lgrav = this1;
  27. HXLINE( 39) this->lgrav->__SetField(HX_("x",78,00,00,00),(int)0,hx::paccDynamic);
  28. HXLINE( 40) this->lgrav->__SetField(HX_("y",79,00,00,00),((Float)0.175),hx::paccDynamic);
  29. }
  30.  
  31. Dynamic CPoint_obj::__CreateEmpty() { return new CPoint_obj; }
  32.  
  33. void *CPoint_obj::_hx_vtable = 0;
  34.  
  35. Dynamic CPoint_obj::__Create(hx::DynamicArray inArgs)
  36. {
  37. hx::ObjectPtr< CPoint_obj > _hx_result = new CPoint_obj();
  38. _hx_result->__construct(inArgs[0],inArgs[1],inArgs[2],inArgs[3]);
  39. return _hx_result;
  40. }
  41.  
  42. bool CPoint_obj::_hx_isInstanceOf(int inClassId) {
  43. return inClassId==(int)0x00000001 || inClassId==(int)0x66a2fb89;
  44. }
  45.  
  46. void CPoint_obj::verlet( ::Dynamic grav){
  47. HX_STACKFRAME(&_hx_pos_dbf7266dd2913d86_42_verlet)
  48. HXLINE( 43) this->dx = ( (Float)(((this->x - this->vx) + ::Dynamic(grav->__Field(HX_("x",78,00,00,00),hx::paccDynamic)))) );
  49. HXLINE( 44) this->dy = ( (Float)(((this->y - this->vy) + ::Dynamic(grav->__Field(HX_("y",79,00,00,00),hx::paccDynamic)))) );
  50. HXLINE( 45) this->vx = this->x;
  51. HXLINE( 46) this->vy = this->y;
  52. HXLINE( 47) this->x = (this->x + this->dx);
  53. HXLINE( 48) this->y = (this->y + this->dy);
  54. HXLINE( 49) this->lgrav = grav;
  55. HXLINE( 50) this->get_n();
  56. }
  57.  
  58.  
  59. HX_DEFINE_DYNAMIC_FUNC1(CPoint_obj,verlet,(void))
  60.  
  61. void CPoint_obj::get_n(){
  62. HX_STACKFRAME(&_hx_pos_dbf7266dd2913d86_53_get_n)
  63. HXLINE( 54) Float tdx = ( (Float)(((this->x - this->vx) + ::Dynamic(this->lgrav->__Field(HX_("x",78,00,00,00),hx::paccDynamic)))) );
  64. HXLINE( 55) Float tdy = ( (Float)(((this->y - this->vy) + ::Dynamic(this->lgrav->__Field(HX_("y",79,00,00,00),hx::paccDynamic)))) );
  65. HXLINE( 56) this->nx = (this->x + tdx);
  66. HXLINE( 57) this->ny = (this->y + tdy);
  67. }
  68.  
  69.  
  70. HX_DEFINE_DYNAMIC_FUNC0(CPoint_obj,get_n,(void))
  71.  
  72. void CPoint_obj::save(){
  73. HX_STACKFRAME(&_hx_pos_dbf7266dd2913d86_59_save)
  74. HXLINE( 60) this->sx = this->x;
  75. HXLINE( 61) this->sy = this->y;
  76. HXLINE( 62) this->svx = this->vx;
  77. HXLINE( 63) this->svy = this->vy;
  78. HXLINE( 64) this->sdx = this->dx;
  79. HXLINE( 65) this->sdy = this->dy;
  80. }
  81.  
  82.  
  83. HX_DEFINE_DYNAMIC_FUNC0(CPoint_obj,save,(void))
  84.  
  85.  
  86. CPoint_obj::CPoint_obj()
  87. {
  88. }
  89.  
  90. void CPoint_obj::__Mark(HX_MARK_PARAMS)
  91. {
  92. HX_MARK_BEGIN_CLASS(CPoint);
  93. HX_MARK_MEMBER_NAME(lgrav,"lgrav");
  94. HX_MARK_MEMBER_NAME(x,"x");
  95. HX_MARK_MEMBER_NAME(y,"y");
  96. HX_MARK_MEMBER_NAME(vx,"vx");
  97. HX_MARK_MEMBER_NAME(vy,"vy");
  98. HX_MARK_MEMBER_NAME(dx,"dx");
  99. HX_MARK_MEMBER_NAME(dy,"dy");
  100. HX_MARK_MEMBER_NAME(nx,"nx");
  101. HX_MARK_MEMBER_NAME(ny,"ny");
  102. HX_MARK_MEMBER_NAME(fr,"fr");
  103. HX_MARK_MEMBER_NAME(ID,"ID");
  104. HX_MARK_MEMBER_NAME(sx,"sx");
  105. HX_MARK_MEMBER_NAME(sy,"sy");
  106. HX_MARK_MEMBER_NAME(svx,"svx");
  107. HX_MARK_MEMBER_NAME(svy,"svy");
  108. HX_MARK_MEMBER_NAME(sdx,"sdx");
  109. HX_MARK_MEMBER_NAME(sdy,"sdy");
  110. HX_MARK_END_CLASS();
  111. }
  112.  
  113. void CPoint_obj::__Visit(HX_VISIT_PARAMS)
  114. {
  115. HX_VISIT_MEMBER_NAME(lgrav,"lgrav");
  116. HX_VISIT_MEMBER_NAME(x,"x");
  117. HX_VISIT_MEMBER_NAME(y,"y");
  118. HX_VISIT_MEMBER_NAME(vx,"vx");
  119. HX_VISIT_MEMBER_NAME(vy,"vy");
  120. HX_VISIT_MEMBER_NAME(dx,"dx");
  121. HX_VISIT_MEMBER_NAME(dy,"dy");
  122. HX_VISIT_MEMBER_NAME(nx,"nx");
  123. HX_VISIT_MEMBER_NAME(ny,"ny");
  124. HX_VISIT_MEMBER_NAME(fr,"fr");
  125. HX_VISIT_MEMBER_NAME(ID,"ID");
  126. HX_VISIT_MEMBER_NAME(sx,"sx");
  127. HX_VISIT_MEMBER_NAME(sy,"sy");
  128. HX_VISIT_MEMBER_NAME(svx,"svx");
  129. HX_VISIT_MEMBER_NAME(svy,"svy");
  130. HX_VISIT_MEMBER_NAME(sdx,"sdx");
  131. HX_VISIT_MEMBER_NAME(sdy,"sdy");
  132. }
  133.  
  134. hx::Val CPoint_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
  135. {
  136. switch(inName.length) {
  137. case 1:
  138. if (HX_FIELD_EQ(inName,"x") ) { return hx::Val( x ); }
  139. if (HX_FIELD_EQ(inName,"y") ) { return hx::Val( y ); }
  140. break;
  141. case 2:
  142. if (HX_FIELD_EQ(inName,"vx") ) { return hx::Val( vx ); }
  143. if (HX_FIELD_EQ(inName,"vy") ) { return hx::Val( vy ); }
  144. if (HX_FIELD_EQ(inName,"dx") ) { return hx::Val( dx ); }
  145. if (HX_FIELD_EQ(inName,"dy") ) { return hx::Val( dy ); }
  146. if (HX_FIELD_EQ(inName,"nx") ) { return hx::Val( nx ); }
  147. if (HX_FIELD_EQ(inName,"ny") ) { return hx::Val( ny ); }
  148. if (HX_FIELD_EQ(inName,"fr") ) { return hx::Val( fr ); }
  149. if (HX_FIELD_EQ(inName,"ID") ) { return hx::Val( ID ); }
  150. if (HX_FIELD_EQ(inName,"sx") ) { return hx::Val( sx ); }
  151. if (HX_FIELD_EQ(inName,"sy") ) { return hx::Val( sy ); }
  152. break;
  153. case 3:
  154. if (HX_FIELD_EQ(inName,"svx") ) { return hx::Val( svx ); }
  155. if (HX_FIELD_EQ(inName,"svy") ) { return hx::Val( svy ); }
  156. if (HX_FIELD_EQ(inName,"sdx") ) { return hx::Val( sdx ); }
  157. if (HX_FIELD_EQ(inName,"sdy") ) { return hx::Val( sdy ); }
  158. break;
  159. case 4:
  160. if (HX_FIELD_EQ(inName,"save") ) { return hx::Val( save_dyn() ); }
  161. break;
  162. case 5:
  163. if (HX_FIELD_EQ(inName,"lgrav") ) { return hx::Val( lgrav ); }
  164. if (HX_FIELD_EQ(inName,"get_n") ) { return hx::Val( get_n_dyn() ); }
  165. break;
  166. case 6:
  167. if (HX_FIELD_EQ(inName,"verlet") ) { return hx::Val( verlet_dyn() ); }
  168. }
  169. return super::__Field(inName,inCallProp);
  170. }
  171.  
  172. hx::Val CPoint_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
  173. {
  174. switch(inName.length) {
  175. case 1:
  176. if (HX_FIELD_EQ(inName,"x") ) { x=inValue.Cast< Float >(); return inValue; }
  177. if (HX_FIELD_EQ(inName,"y") ) { y=inValue.Cast< Float >(); return inValue; }
  178. break;
  179. case 2:
  180. if (HX_FIELD_EQ(inName,"vx") ) { vx=inValue.Cast< Float >(); return inValue; }
  181. if (HX_FIELD_EQ(inName,"vy") ) { vy=inValue.Cast< Float >(); return inValue; }
  182. if (HX_FIELD_EQ(inName,"dx") ) { dx=inValue.Cast< Float >(); return inValue; }
  183. if (HX_FIELD_EQ(inName,"dy") ) { dy=inValue.Cast< Float >(); return inValue; }
  184. if (HX_FIELD_EQ(inName,"nx") ) { nx=inValue.Cast< Float >(); return inValue; }
  185. if (HX_FIELD_EQ(inName,"ny") ) { ny=inValue.Cast< Float >(); return inValue; }
  186. if (HX_FIELD_EQ(inName,"fr") ) { fr=inValue.Cast< Float >(); return inValue; }
  187. if (HX_FIELD_EQ(inName,"ID") ) { ID=inValue.Cast< int >(); return inValue; }
  188. if (HX_FIELD_EQ(inName,"sx") ) { sx=inValue.Cast< Float >(); return inValue; }
  189. if (HX_FIELD_EQ(inName,"sy") ) { sy=inValue.Cast< Float >(); return inValue; }
  190. break;
  191. case 3:
  192. if (HX_FIELD_EQ(inName,"svx") ) { svx=inValue.Cast< Float >(); return inValue; }
  193. if (HX_FIELD_EQ(inName,"svy") ) { svy=inValue.Cast< Float >(); return inValue; }
  194. if (HX_FIELD_EQ(inName,"sdx") ) { sdx=inValue.Cast< Float >(); return inValue; }
  195. if (HX_FIELD_EQ(inName,"sdy") ) { sdy=inValue.Cast< Float >(); return inValue; }
  196. break;
  197. case 5:
  198. if (HX_FIELD_EQ(inName,"lgrav") ) { lgrav=inValue.Cast< ::Dynamic >(); return inValue; }
  199. }
  200. return super::__SetField(inName,inValue,inCallProp);
  201. }
  202.  
  203. void CPoint_obj::__GetFields(Array< ::String> &outFields)
  204. {
  205. outFields->push(HX_HCSTRING("lgrav","\x4c","\x76","\xb2","\x73"));
  206. outFields->push(HX_HCSTRING("x","\x78","\x00","\x00","\x00"));
  207. outFields->push(HX_HCSTRING("y","\x79","\x00","\x00","\x00"));
  208. outFields->push(HX_HCSTRING("vx","\x42","\x67","\x00","\x00"));
  209. outFields->push(HX_HCSTRING("vy","\x43","\x67","\x00","\x00"));
  210. outFields->push(HX_HCSTRING("dx","\x94","\x57","\x00","\x00"));
  211. outFields->push(HX_HCSTRING("dy","\x95","\x57","\x00","\x00"));
  212. outFields->push(HX_HCSTRING("nx","\x4a","\x60","\x00","\x00"));
  213. outFields->push(HX_HCSTRING("ny","\x4b","\x60","\x00","\x00"));
  214. outFields->push(HX_HCSTRING("fr","\x4c","\x59","\x00","\x00"));
  215. outFields->push(HX_HCSTRING("ID","\xdb","\x3f","\x00","\x00"));
  216. outFields->push(HX_HCSTRING("sx","\xa5","\x64","\x00","\x00"));
  217. outFields->push(HX_HCSTRING("sy","\xa6","\x64","\x00","\x00"));
  218. outFields->push(HX_HCSTRING("svx","\x75","\xaa","\x57","\x00"));
  219. outFields->push(HX_HCSTRING("svy","\x76","\xaa","\x57","\x00"));
  220. outFields->push(HX_HCSTRING("sdx","\xc7","\x9a","\x57","\x00"));
  221. outFields->push(HX_HCSTRING("sdy","\xc8","\x9a","\x57","\x00"));
  222. super::__GetFields(outFields);
  223. };
  224.  
  225. #if HXCPP_SCRIPTABLE
  226. static hx::StorageInfo CPoint_obj_sMemberStorageInfo[] = {
  227. {hx::fsObject /*Dynamic*/ ,(int)offsetof(CPoint_obj,lgrav),HX_HCSTRING("lgrav","\x4c","\x76","\xb2","\x73")},
  228. {hx::fsFloat,(int)offsetof(CPoint_obj,x),HX_HCSTRING("x","\x78","\x00","\x00","\x00")},
  229. {hx::fsFloat,(int)offsetof(CPoint_obj,y),HX_HCSTRING("y","\x79","\x00","\x00","\x00")},
  230. {hx::fsFloat,(int)offsetof(CPoint_obj,vx),HX_HCSTRING("vx","\x42","\x67","\x00","\x00")},
  231. {hx::fsFloat,(int)offsetof(CPoint_obj,vy),HX_HCSTRING("vy","\x43","\x67","\x00","\x00")},
  232. {hx::fsFloat,(int)offsetof(CPoint_obj,dx),HX_HCSTRING("dx","\x94","\x57","\x00","\x00")},
  233. {hx::fsFloat,(int)offsetof(CPoint_obj,dy),HX_HCSTRING("dy","\x95","\x57","\x00","\x00")},
  234. {hx::fsFloat,(int)offsetof(CPoint_obj,nx),HX_HCSTRING("nx","\x4a","\x60","\x00","\x00")},
  235. {hx::fsFloat,(int)offsetof(CPoint_obj,ny),HX_HCSTRING("ny","\x4b","\x60","\x00","\x00")},
  236. {hx::fsFloat,(int)offsetof(CPoint_obj,fr),HX_HCSTRING("fr","\x4c","\x59","\x00","\x00")},
  237. {hx::fsInt,(int)offsetof(CPoint_obj,ID),HX_HCSTRING("ID","\xdb","\x3f","\x00","\x00")},
  238. {hx::fsFloat,(int)offsetof(CPoint_obj,sx),HX_HCSTRING("sx","\xa5","\x64","\x00","\x00")},
  239. {hx::fsFloat,(int)offsetof(CPoint_obj,sy),HX_HCSTRING("sy","\xa6","\x64","\x00","\x00")},
  240. {hx::fsFloat,(int)offsetof(CPoint_obj,svx),HX_HCSTRING("svx","\x75","\xaa","\x57","\x00")},
  241. {hx::fsFloat,(int)offsetof(CPoint_obj,svy),HX_HCSTRING("svy","\x76","\xaa","\x57","\x00")},
  242. {hx::fsFloat,(int)offsetof(CPoint_obj,sdx),HX_HCSTRING("sdx","\xc7","\x9a","\x57","\x00")},
  243. {hx::fsFloat,(int)offsetof(CPoint_obj,sdy),HX_HCSTRING("sdy","\xc8","\x9a","\x57","\x00")},
  244. { hx::fsUnknown, 0, null()}
  245. };
  246. static hx::StaticInfo *CPoint_obj_sStaticStorageInfo = 0;
  247. #endif
  248.  
  249. static ::String CPoint_obj_sMemberFields[] = {
  250. HX_HCSTRING("lgrav","\x4c","\x76","\xb2","\x73"),
  251. HX_HCSTRING("x","\x78","\x00","\x00","\x00"),
  252. HX_HCSTRING("y","\x79","\x00","\x00","\x00"),
  253. HX_HCSTRING("vx","\x42","\x67","\x00","\x00"),
  254. HX_HCSTRING("vy","\x43","\x67","\x00","\x00"),
  255. HX_HCSTRING("dx","\x94","\x57","\x00","\x00"),
  256. HX_HCSTRING("dy","\x95","\x57","\x00","\x00"),
  257. HX_HCSTRING("nx","\x4a","\x60","\x00","\x00"),
  258. HX_HCSTRING("ny","\x4b","\x60","\x00","\x00"),
  259. HX_HCSTRING("fr","\x4c","\x59","\x00","\x00"),
  260. HX_HCSTRING("ID","\xdb","\x3f","\x00","\x00"),
  261. HX_HCSTRING("sx","\xa5","\x64","\x00","\x00"),
  262. HX_HCSTRING("sy","\xa6","\x64","\x00","\x00"),
  263. HX_HCSTRING("svx","\x75","\xaa","\x57","\x00"),
  264. HX_HCSTRING("svy","\x76","\xaa","\x57","\x00"),
  265. HX_HCSTRING("sdx","\xc7","\x9a","\x57","\x00"),
  266. HX_HCSTRING("sdy","\xc8","\x9a","\x57","\x00"),
  267. HX_HCSTRING("verlet","\x58","\xc9","\x41","\xa1"),
  268. HX_HCSTRING("get_n","\x45","\xa5","\x60","\x91"),
  269. HX_HCSTRING("save","\x3d","\x8b","\x4d","\x4c"),
  270. ::String(null()) };
  271.  
  272. static void CPoint_obj_sMarkStatics(HX_MARK_PARAMS) {
  273. HX_MARK_MEMBER_NAME(CPoint_obj::__mClass,"__mClass");
  274. };
  275.  
  276. #ifdef HXCPP_VISIT_ALLOCS
  277. static void CPoint_obj_sVisitStatics(HX_VISIT_PARAMS) {
  278. HX_VISIT_MEMBER_NAME(CPoint_obj::__mClass,"__mClass");
  279. };
  280.  
  281. #endif
  282.  
  283. hx::Class CPoint_obj::__mClass;
  284.  
  285. void CPoint_obj::__register()
  286. {
  287. hx::Object *dummy = new CPoint_obj;
  288. CPoint_obj::_hx_vtable = *(void **)dummy;
  289. hx::Static(__mClass) = new hx::Class_obj();
  290. __mClass->mName = HX_HCSTRING("lr.rider.phys.anchors.CPoint","\x5d","\xe6","\x5a","\x03");
  291. __mClass->mSuper = &super::__SGetClass();
  292. __mClass->mConstructEmpty = &__CreateEmpty;
  293. __mClass->mConstructArgs = &__Create;
  294. __mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
  295. __mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
  296. __mClass->mMarkFunc = CPoint_obj_sMarkStatics;
  297. __mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
  298. __mClass->mMembers = hx::Class_obj::dupFunctions(CPoint_obj_sMemberFields);
  299. __mClass->mCanCast = hx::TCanCast< CPoint_obj >;
  300. #ifdef HXCPP_VISIT_ALLOCS
  301. __mClass->mVisitFunc = CPoint_obj_sVisitStatics;
  302. #endif
  303. #ifdef HXCPP_SCRIPTABLE
  304. __mClass->mMemberStorageInfo = CPoint_obj_sMemberStorageInfo;
  305. #endif
  306. #ifdef HXCPP_SCRIPTABLE
  307. __mClass->mStaticStorageInfo = CPoint_obj_sStaticStorageInfo;
  308. #endif
  309. hx::_hx_RegisterClass(__mClass->mName, __mClass);
  310. }
  311.  
  312. } // end namespace lr
  313. } // end namespace rider
  314. } // end namespace phys
  315. } // end namespace anchors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement