1+ #include " UEPyFFoliageInstance.h"
2+
3+ #include " Wrappers/UEPyFVector.h"
4+ #include " Wrappers/UEPyFRotator.h"
5+
6+ static PyObject *ue_PyFFoliageInstance_str (ue_PyFFoliageInstance *self)
7+ {
8+ return PyUnicode_FromFormat (" <unreal_engine.FFoliageInstance %p>" ,
9+ &self->instance );
10+ }
11+
12+ static PyObject *py_ue_ffoliage_instance_get_location (ue_PyFFoliageInstance *self, void *closure)
13+ {
14+ return py_ue_new_fvector (self->instance .Location );
15+ }
16+
17+ static PyObject *py_ue_ffoliage_instance_get_draw_scale3d (ue_PyFFoliageInstance *self, void *closure)
18+ {
19+ return py_ue_new_fvector (self->instance .DrawScale3D );
20+ }
21+
22+ static PyObject *py_ue_ffoliage_instance_get_flags (ue_PyFFoliageInstance *self, void *closure)
23+ {
24+ return PyLong_FromUnsignedLong (self->instance .Flags );
25+ }
26+
27+ static PyObject *py_ue_ffoliage_instance_get_pre_align_rotation (ue_PyFFoliageInstance *self, void *closure)
28+ {
29+ return py_ue_new_frotator (self->instance .PreAlignRotation );
30+ }
31+
32+ static PyObject *py_ue_ffoliage_instance_get_rotation (ue_PyFFoliageInstance *self, void *closure)
33+ {
34+ return py_ue_new_frotator (self->instance .Rotation );
35+ }
36+
37+ static PyObject *py_ue_ffoliage_instance_get_zoffset (ue_PyFFoliageInstance *self, void *closure)
38+ {
39+ return PyFloat_FromDouble (self->instance .ZOffset );
40+ }
41+
42+
43+ static PyGetSetDef ue_PyFFoliageInstance_getseters[] = {
44+ { (char *)" location" , (getter)py_ue_ffoliage_instance_get_location, nullptr , (char *)" " , NULL },
45+ { (char *)" draw_scale3d" , (getter)py_ue_ffoliage_instance_get_draw_scale3d, nullptr , (char *)" " , NULL },
46+ { (char *)" flags" , (getter)py_ue_ffoliage_instance_get_flags, nullptr , (char *)" " , NULL },
47+ { (char *)" pre_align_rotation" , (getter)py_ue_ffoliage_instance_get_pre_align_rotation, nullptr , (char *)" " , NULL },
48+ { (char *)" rotation" , (getter)py_ue_ffoliage_instance_get_rotation, nullptr , (char *)" " , NULL },
49+ { (char *)" zoffset" , (getter)py_ue_ffoliage_instance_get_zoffset, nullptr , (char *)" " , NULL },
50+ { NULL } /* Sentinel */
51+ };
52+
53+ static PyTypeObject ue_PyFFoliageInstanceType = {
54+ PyVarObject_HEAD_INIT (NULL , 0 )
55+ " unreal_engine.FFoliageInstance" , /* tp_name */
56+ sizeof (ue_PyFFoliageInstance), /* tp_basicsize */
57+ 0 , /* tp_itemsize */
58+ 0 , /* tp_dealloc */
59+ 0 , /* tp_print */
60+ 0 , /* tp_getattr */
61+ 0 , /* tp_setattr */
62+ 0 , /* tp_reserved */
63+ 0 , /* tp_repr */
64+ 0 , /* tp_as_number */
65+ 0 , /* tp_as_sequence */
66+ 0 , /* tp_as_mapping */
67+ 0 , /* tp_hash */
68+ 0 , /* tp_call */
69+ (reprfunc)ue_PyFFoliageInstance_str, /* tp_str */
70+ 0 , /* tp_getattro */
71+ 0 , /* tp_setattro */
72+ 0 , /* tp_as_buffer */
73+ #if PY_MAJOR_VERSION < 3
74+ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE | Py_TPFLAGS_CHECKTYPES, /* tp_flags */
75+ #else
76+ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
77+ #endif
78+ " Unreal Engine FFoliageInstance" , /* tp_doc */
79+ 0 , /* tp_traverse */
80+ 0 , /* tp_clear */
81+ 0 , /* tp_richcompare */
82+ 0 , /* tp_weaklistoffset */
83+ 0 , /* tp_iter */
84+ 0 , /* tp_iternext */
85+ 0 , /* tp_methods */
86+ 0 ,
87+ ue_PyFFoliageInstance_getseters,
88+ };
89+
90+ void ue_python_init_ffoliage_instance (PyObject *ue_module)
91+ {
92+ ue_PyFFoliageInstanceType.tp_new = PyType_GenericNew;
93+
94+ if (PyType_Ready (&ue_PyFFoliageInstanceType) < 0 )
95+ return ;
96+
97+ Py_INCREF (&ue_PyFFoliageInstanceType);
98+ PyModule_AddObject (ue_module, " FoliageInstance" , (PyObject *)&ue_PyFFoliageInstanceType);
99+ }
100+
101+ PyObject *py_ue_new_ffoliage_instance (FFoliageInstance instance)
102+ {
103+ ue_PyFFoliageInstance *ret = (ue_PyFFoliageInstance *)PyObject_New (ue_PyFFoliageInstance, &ue_PyFFoliageInstanceType);
104+ ret->instance = instance;
105+ return (PyObject *)ret;
106+ }
0 commit comments