Squashed commit of the following: [reprs_and_member_names]
Closes #22 Closes #23 Closes #24 Closes #25 Closes #31 Closes #56 commit43fac8f4f3Author: John McCardle <mccardle.john@gmail.com> Date: Sat Apr 20 18:32:52 2024 -0400 Typo in UIFrame repr commit3fd5ad93e2Author: John McCardle <mccardle.john@gmail.com> Date: Sat Apr 20 18:32:30 2024 -0400 Add UIGridPoint and UIGridPointState repr commit03376897b8Author: John McCardle <mccardle.john@gmail.com> Date: Sat Apr 20 18:32:17 2024 -0400 Add UIGrid repr commit48af072a33Author: John McCardle <mccardle.john@gmail.com> Date: Sat Apr 20 18:32:05 2024 -0400 Add UIEntity repr
This commit is contained in:
parent
c2de9b08d6
commit
232105a893
7 changed files with 76 additions and 5 deletions
|
|
@ -49,6 +49,7 @@ public:
|
|||
static int set_bool_member(PyUIGridPointObject* self, PyObject* value, void* closure);
|
||||
static PyObject* get_bool_member(PyUIGridPointObject* self, void* closure);
|
||||
static int set_color(PyUIGridPointObject* self, PyObject* value, void* closure);
|
||||
static PyObject* repr(PyUIGridPointObject* self);
|
||||
};
|
||||
|
||||
// UIGridPointState - entity-specific info for each cell
|
||||
|
|
@ -60,6 +61,7 @@ public:
|
|||
static PyObject* get_bool_member(PyUIGridPointStateObject* self, void* closure);
|
||||
static int set_bool_member(PyUIGridPointStateObject* self, PyObject* value, void* closure);
|
||||
static PyGetSetDef getsetters[];
|
||||
static PyObject* repr(PyUIGridPointStateObject* self);
|
||||
};
|
||||
|
||||
namespace mcrfpydef {
|
||||
|
|
@ -68,7 +70,7 @@ namespace mcrfpydef {
|
|||
.tp_name = "mcrfpy.GridPoint",
|
||||
.tp_basicsize = sizeof(PyUIGridPointObject),
|
||||
.tp_itemsize = 0,
|
||||
// Methods omitted for brevity
|
||||
.tp_repr = (reprfunc)UIGridPoint::repr,
|
||||
.tp_flags = Py_TPFLAGS_DEFAULT,
|
||||
.tp_doc = "UIGridPoint object",
|
||||
.tp_getset = UIGridPoint::getsetters,
|
||||
|
|
@ -81,7 +83,7 @@ namespace mcrfpydef {
|
|||
.tp_name = "mcrfpy.GridPointState",
|
||||
.tp_basicsize = sizeof(PyUIGridPointStateObject),
|
||||
.tp_itemsize = 0,
|
||||
// Methods omitted for brevity
|
||||
.tp_repr = (reprfunc)UIGridPointState::repr,
|
||||
.tp_flags = Py_TPFLAGS_DEFAULT,
|
||||
.tp_doc = "UIGridPointState object", // TODO: Add PyUIGridPointState tp_init
|
||||
.tp_getset = UIGridPointState::getsetters,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue