Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Generated by Haxe 3.4.5
- #include <hxcpp.h>
- #ifndef INCLUDED_lr_rider_phys_anchors_CPoint
- #include <lr/rider/phys/anchors/CPoint.h>
- #endif
- 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)
- 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)
- 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)
- 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)
- namespace lr{
- namespace rider{
- namespace phys{
- namespace anchors{
- void CPoint_obj::__construct(Float _x,Float _y,Float _fr,int _id){
- HX_STACKFRAME(&_hx_pos_dbf7266dd2913d86_31_new)
- HXLINE( 32) this->x = _x;
- HXLINE( 33) this->y = _y;
- HXLINE( 34) this->dx = (this->dy = (int)0);
- HXLINE( 35) this->vx = (this->vy = (int)0);
- HXLINE( 36) this->fr = _fr;
- HXLINE( 37) this->ID = _id;
- HXLINE( 38) ::Dynamic this1 = ::Dynamic(hx::Anon_obj::Create(0));
- HXDLIN( 38) this->lgrav = this1;
- HXLINE( 39) this->lgrav->__SetField(HX_("x",78,00,00,00),(int)0,hx::paccDynamic);
- HXLINE( 40) this->lgrav->__SetField(HX_("y",79,00,00,00),((Float)0.175),hx::paccDynamic);
- }
- Dynamic CPoint_obj::__CreateEmpty() { return new CPoint_obj; }
- void *CPoint_obj::_hx_vtable = 0;
- Dynamic CPoint_obj::__Create(hx::DynamicArray inArgs)
- {
- hx::ObjectPtr< CPoint_obj > _hx_result = new CPoint_obj();
- _hx_result->__construct(inArgs[0],inArgs[1],inArgs[2],inArgs[3]);
- return _hx_result;
- }
- bool CPoint_obj::_hx_isInstanceOf(int inClassId) {
- return inClassId==(int)0x00000001 || inClassId==(int)0x66a2fb89;
- }
- void CPoint_obj::verlet( ::Dynamic grav){
- HX_STACKFRAME(&_hx_pos_dbf7266dd2913d86_42_verlet)
- HXLINE( 43) this->dx = ( (Float)(((this->x - this->vx) + ::Dynamic(grav->__Field(HX_("x",78,00,00,00),hx::paccDynamic)))) );
- HXLINE( 44) this->dy = ( (Float)(((this->y - this->vy) + ::Dynamic(grav->__Field(HX_("y",79,00,00,00),hx::paccDynamic)))) );
- HXLINE( 45) this->vx = this->x;
- HXLINE( 46) this->vy = this->y;
- HXLINE( 47) this->x = (this->x + this->dx);
- HXLINE( 48) this->y = (this->y + this->dy);
- HXLINE( 49) this->lgrav = grav;
- HXLINE( 50) this->get_n();
- }
- HX_DEFINE_DYNAMIC_FUNC1(CPoint_obj,verlet,(void))
- void CPoint_obj::get_n(){
- HX_STACKFRAME(&_hx_pos_dbf7266dd2913d86_53_get_n)
- HXLINE( 54) Float tdx = ( (Float)(((this->x - this->vx) + ::Dynamic(this->lgrav->__Field(HX_("x",78,00,00,00),hx::paccDynamic)))) );
- HXLINE( 55) Float tdy = ( (Float)(((this->y - this->vy) + ::Dynamic(this->lgrav->__Field(HX_("y",79,00,00,00),hx::paccDynamic)))) );
- HXLINE( 56) this->nx = (this->x + tdx);
- HXLINE( 57) this->ny = (this->y + tdy);
- }
- HX_DEFINE_DYNAMIC_FUNC0(CPoint_obj,get_n,(void))
- void CPoint_obj::save(){
- HX_STACKFRAME(&_hx_pos_dbf7266dd2913d86_59_save)
- HXLINE( 60) this->sx = this->x;
- HXLINE( 61) this->sy = this->y;
- HXLINE( 62) this->svx = this->vx;
- HXLINE( 63) this->svy = this->vy;
- HXLINE( 64) this->sdx = this->dx;
- HXLINE( 65) this->sdy = this->dy;
- }
- HX_DEFINE_DYNAMIC_FUNC0(CPoint_obj,save,(void))
- CPoint_obj::CPoint_obj()
- {
- }
- void CPoint_obj::__Mark(HX_MARK_PARAMS)
- {
- HX_MARK_BEGIN_CLASS(CPoint);
- HX_MARK_MEMBER_NAME(lgrav,"lgrav");
- HX_MARK_MEMBER_NAME(x,"x");
- HX_MARK_MEMBER_NAME(y,"y");
- HX_MARK_MEMBER_NAME(vx,"vx");
- HX_MARK_MEMBER_NAME(vy,"vy");
- HX_MARK_MEMBER_NAME(dx,"dx");
- HX_MARK_MEMBER_NAME(dy,"dy");
- HX_MARK_MEMBER_NAME(nx,"nx");
- HX_MARK_MEMBER_NAME(ny,"ny");
- HX_MARK_MEMBER_NAME(fr,"fr");
- HX_MARK_MEMBER_NAME(ID,"ID");
- HX_MARK_MEMBER_NAME(sx,"sx");
- HX_MARK_MEMBER_NAME(sy,"sy");
- HX_MARK_MEMBER_NAME(svx,"svx");
- HX_MARK_MEMBER_NAME(svy,"svy");
- HX_MARK_MEMBER_NAME(sdx,"sdx");
- HX_MARK_MEMBER_NAME(sdy,"sdy");
- HX_MARK_END_CLASS();
- }
- void CPoint_obj::__Visit(HX_VISIT_PARAMS)
- {
- HX_VISIT_MEMBER_NAME(lgrav,"lgrav");
- HX_VISIT_MEMBER_NAME(x,"x");
- HX_VISIT_MEMBER_NAME(y,"y");
- HX_VISIT_MEMBER_NAME(vx,"vx");
- HX_VISIT_MEMBER_NAME(vy,"vy");
- HX_VISIT_MEMBER_NAME(dx,"dx");
- HX_VISIT_MEMBER_NAME(dy,"dy");
- HX_VISIT_MEMBER_NAME(nx,"nx");
- HX_VISIT_MEMBER_NAME(ny,"ny");
- HX_VISIT_MEMBER_NAME(fr,"fr");
- HX_VISIT_MEMBER_NAME(ID,"ID");
- HX_VISIT_MEMBER_NAME(sx,"sx");
- HX_VISIT_MEMBER_NAME(sy,"sy");
- HX_VISIT_MEMBER_NAME(svx,"svx");
- HX_VISIT_MEMBER_NAME(svy,"svy");
- HX_VISIT_MEMBER_NAME(sdx,"sdx");
- HX_VISIT_MEMBER_NAME(sdy,"sdy");
- }
- hx::Val CPoint_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
- {
- switch(inName.length) {
- case 1:
- if (HX_FIELD_EQ(inName,"x") ) { return hx::Val( x ); }
- if (HX_FIELD_EQ(inName,"y") ) { return hx::Val( y ); }
- break;
- case 2:
- if (HX_FIELD_EQ(inName,"vx") ) { return hx::Val( vx ); }
- if (HX_FIELD_EQ(inName,"vy") ) { return hx::Val( vy ); }
- if (HX_FIELD_EQ(inName,"dx") ) { return hx::Val( dx ); }
- if (HX_FIELD_EQ(inName,"dy") ) { return hx::Val( dy ); }
- if (HX_FIELD_EQ(inName,"nx") ) { return hx::Val( nx ); }
- if (HX_FIELD_EQ(inName,"ny") ) { return hx::Val( ny ); }
- if (HX_FIELD_EQ(inName,"fr") ) { return hx::Val( fr ); }
- if (HX_FIELD_EQ(inName,"ID") ) { return hx::Val( ID ); }
- if (HX_FIELD_EQ(inName,"sx") ) { return hx::Val( sx ); }
- if (HX_FIELD_EQ(inName,"sy") ) { return hx::Val( sy ); }
- break;
- case 3:
- if (HX_FIELD_EQ(inName,"svx") ) { return hx::Val( svx ); }
- if (HX_FIELD_EQ(inName,"svy") ) { return hx::Val( svy ); }
- if (HX_FIELD_EQ(inName,"sdx") ) { return hx::Val( sdx ); }
- if (HX_FIELD_EQ(inName,"sdy") ) { return hx::Val( sdy ); }
- break;
- case 4:
- if (HX_FIELD_EQ(inName,"save") ) { return hx::Val( save_dyn() ); }
- break;
- case 5:
- if (HX_FIELD_EQ(inName,"lgrav") ) { return hx::Val( lgrav ); }
- if (HX_FIELD_EQ(inName,"get_n") ) { return hx::Val( get_n_dyn() ); }
- break;
- case 6:
- if (HX_FIELD_EQ(inName,"verlet") ) { return hx::Val( verlet_dyn() ); }
- }
- return super::__Field(inName,inCallProp);
- }
- hx::Val CPoint_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
- {
- switch(inName.length) {
- case 1:
- if (HX_FIELD_EQ(inName,"x") ) { x=inValue.Cast< Float >(); return inValue; }
- if (HX_FIELD_EQ(inName,"y") ) { y=inValue.Cast< Float >(); return inValue; }
- break;
- case 2:
- if (HX_FIELD_EQ(inName,"vx") ) { vx=inValue.Cast< Float >(); return inValue; }
- if (HX_FIELD_EQ(inName,"vy") ) { vy=inValue.Cast< Float >(); return inValue; }
- if (HX_FIELD_EQ(inName,"dx") ) { dx=inValue.Cast< Float >(); return inValue; }
- if (HX_FIELD_EQ(inName,"dy") ) { dy=inValue.Cast< Float >(); return inValue; }
- if (HX_FIELD_EQ(inName,"nx") ) { nx=inValue.Cast< Float >(); return inValue; }
- if (HX_FIELD_EQ(inName,"ny") ) { ny=inValue.Cast< Float >(); return inValue; }
- if (HX_FIELD_EQ(inName,"fr") ) { fr=inValue.Cast< Float >(); return inValue; }
- if (HX_FIELD_EQ(inName,"ID") ) { ID=inValue.Cast< int >(); return inValue; }
- if (HX_FIELD_EQ(inName,"sx") ) { sx=inValue.Cast< Float >(); return inValue; }
- if (HX_FIELD_EQ(inName,"sy") ) { sy=inValue.Cast< Float >(); return inValue; }
- break;
- case 3:
- if (HX_FIELD_EQ(inName,"svx") ) { svx=inValue.Cast< Float >(); return inValue; }
- if (HX_FIELD_EQ(inName,"svy") ) { svy=inValue.Cast< Float >(); return inValue; }
- if (HX_FIELD_EQ(inName,"sdx") ) { sdx=inValue.Cast< Float >(); return inValue; }
- if (HX_FIELD_EQ(inName,"sdy") ) { sdy=inValue.Cast< Float >(); return inValue; }
- break;
- case 5:
- if (HX_FIELD_EQ(inName,"lgrav") ) { lgrav=inValue.Cast< ::Dynamic >(); return inValue; }
- }
- return super::__SetField(inName,inValue,inCallProp);
- }
- void CPoint_obj::__GetFields(Array< ::String> &outFields)
- {
- outFields->push(HX_HCSTRING("lgrav","\x4c","\x76","\xb2","\x73"));
- outFields->push(HX_HCSTRING("x","\x78","\x00","\x00","\x00"));
- outFields->push(HX_HCSTRING("y","\x79","\x00","\x00","\x00"));
- outFields->push(HX_HCSTRING("vx","\x42","\x67","\x00","\x00"));
- outFields->push(HX_HCSTRING("vy","\x43","\x67","\x00","\x00"));
- outFields->push(HX_HCSTRING("dx","\x94","\x57","\x00","\x00"));
- outFields->push(HX_HCSTRING("dy","\x95","\x57","\x00","\x00"));
- outFields->push(HX_HCSTRING("nx","\x4a","\x60","\x00","\x00"));
- outFields->push(HX_HCSTRING("ny","\x4b","\x60","\x00","\x00"));
- outFields->push(HX_HCSTRING("fr","\x4c","\x59","\x00","\x00"));
- outFields->push(HX_HCSTRING("ID","\xdb","\x3f","\x00","\x00"));
- outFields->push(HX_HCSTRING("sx","\xa5","\x64","\x00","\x00"));
- outFields->push(HX_HCSTRING("sy","\xa6","\x64","\x00","\x00"));
- outFields->push(HX_HCSTRING("svx","\x75","\xaa","\x57","\x00"));
- outFields->push(HX_HCSTRING("svy","\x76","\xaa","\x57","\x00"));
- outFields->push(HX_HCSTRING("sdx","\xc7","\x9a","\x57","\x00"));
- outFields->push(HX_HCSTRING("sdy","\xc8","\x9a","\x57","\x00"));
- super::__GetFields(outFields);
- };
- #if HXCPP_SCRIPTABLE
- static hx::StorageInfo CPoint_obj_sMemberStorageInfo[] = {
- {hx::fsObject /*Dynamic*/ ,(int)offsetof(CPoint_obj,lgrav),HX_HCSTRING("lgrav","\x4c","\x76","\xb2","\x73")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,x),HX_HCSTRING("x","\x78","\x00","\x00","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,y),HX_HCSTRING("y","\x79","\x00","\x00","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,vx),HX_HCSTRING("vx","\x42","\x67","\x00","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,vy),HX_HCSTRING("vy","\x43","\x67","\x00","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,dx),HX_HCSTRING("dx","\x94","\x57","\x00","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,dy),HX_HCSTRING("dy","\x95","\x57","\x00","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,nx),HX_HCSTRING("nx","\x4a","\x60","\x00","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,ny),HX_HCSTRING("ny","\x4b","\x60","\x00","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,fr),HX_HCSTRING("fr","\x4c","\x59","\x00","\x00")},
- {hx::fsInt,(int)offsetof(CPoint_obj,ID),HX_HCSTRING("ID","\xdb","\x3f","\x00","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,sx),HX_HCSTRING("sx","\xa5","\x64","\x00","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,sy),HX_HCSTRING("sy","\xa6","\x64","\x00","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,svx),HX_HCSTRING("svx","\x75","\xaa","\x57","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,svy),HX_HCSTRING("svy","\x76","\xaa","\x57","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,sdx),HX_HCSTRING("sdx","\xc7","\x9a","\x57","\x00")},
- {hx::fsFloat,(int)offsetof(CPoint_obj,sdy),HX_HCSTRING("sdy","\xc8","\x9a","\x57","\x00")},
- { hx::fsUnknown, 0, null()}
- };
- static hx::StaticInfo *CPoint_obj_sStaticStorageInfo = 0;
- #endif
- static ::String CPoint_obj_sMemberFields[] = {
- HX_HCSTRING("lgrav","\x4c","\x76","\xb2","\x73"),
- HX_HCSTRING("x","\x78","\x00","\x00","\x00"),
- HX_HCSTRING("y","\x79","\x00","\x00","\x00"),
- HX_HCSTRING("vx","\x42","\x67","\x00","\x00"),
- HX_HCSTRING("vy","\x43","\x67","\x00","\x00"),
- HX_HCSTRING("dx","\x94","\x57","\x00","\x00"),
- HX_HCSTRING("dy","\x95","\x57","\x00","\x00"),
- HX_HCSTRING("nx","\x4a","\x60","\x00","\x00"),
- HX_HCSTRING("ny","\x4b","\x60","\x00","\x00"),
- HX_HCSTRING("fr","\x4c","\x59","\x00","\x00"),
- HX_HCSTRING("ID","\xdb","\x3f","\x00","\x00"),
- HX_HCSTRING("sx","\xa5","\x64","\x00","\x00"),
- HX_HCSTRING("sy","\xa6","\x64","\x00","\x00"),
- HX_HCSTRING("svx","\x75","\xaa","\x57","\x00"),
- HX_HCSTRING("svy","\x76","\xaa","\x57","\x00"),
- HX_HCSTRING("sdx","\xc7","\x9a","\x57","\x00"),
- HX_HCSTRING("sdy","\xc8","\x9a","\x57","\x00"),
- HX_HCSTRING("verlet","\x58","\xc9","\x41","\xa1"),
- HX_HCSTRING("get_n","\x45","\xa5","\x60","\x91"),
- HX_HCSTRING("save","\x3d","\x8b","\x4d","\x4c"),
- ::String(null()) };
- static void CPoint_obj_sMarkStatics(HX_MARK_PARAMS) {
- HX_MARK_MEMBER_NAME(CPoint_obj::__mClass,"__mClass");
- };
- #ifdef HXCPP_VISIT_ALLOCS
- static void CPoint_obj_sVisitStatics(HX_VISIT_PARAMS) {
- HX_VISIT_MEMBER_NAME(CPoint_obj::__mClass,"__mClass");
- };
- #endif
- hx::Class CPoint_obj::__mClass;
- void CPoint_obj::__register()
- {
- hx::Object *dummy = new CPoint_obj;
- CPoint_obj::_hx_vtable = *(void **)dummy;
- hx::Static(__mClass) = new hx::Class_obj();
- __mClass->mName = HX_HCSTRING("lr.rider.phys.anchors.CPoint","\x5d","\xe6","\x5a","\x03");
- __mClass->mSuper = &super::__SGetClass();
- __mClass->mConstructEmpty = &__CreateEmpty;
- __mClass->mConstructArgs = &__Create;
- __mClass->mGetStaticField = &hx::Class_obj::GetNoStaticField;
- __mClass->mSetStaticField = &hx::Class_obj::SetNoStaticField;
- __mClass->mMarkFunc = CPoint_obj_sMarkStatics;
- __mClass->mStatics = hx::Class_obj::dupFunctions(0 /* sStaticFields */);
- __mClass->mMembers = hx::Class_obj::dupFunctions(CPoint_obj_sMemberFields);
- __mClass->mCanCast = hx::TCanCast< CPoint_obj >;
- #ifdef HXCPP_VISIT_ALLOCS
- __mClass->mVisitFunc = CPoint_obj_sVisitStatics;
- #endif
- #ifdef HXCPP_SCRIPTABLE
- __mClass->mMemberStorageInfo = CPoint_obj_sMemberStorageInfo;
- #endif
- #ifdef HXCPP_SCRIPTABLE
- __mClass->mStaticStorageInfo = CPoint_obj_sStaticStorageInfo;
- #endif
- hx::_hx_RegisterClass(__mClass->mName, __mClass);
- }
- } // end namespace lr
- } // end namespace rider
- } // end namespace phys
- } // end namespace anchors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement