mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
If we expose dynamic properties directly on the located entity there's a risk that there will be collisions.
26 lines
481 B
C++
26 lines
481 B
C++
//
|
|
// Created by erik on 2018-05-05.
|
|
//
|
|
|
|
#ifndef CYPHESIS_CYPY_PROPS_H
|
|
#define CYPHESIS_CYPY_PROPS_H
|
|
|
|
#include <Python.h>
|
|
|
|
class LocatedEntity;
|
|
|
|
/// \brief Wrapper for Location in Python
|
|
/// \ingroup PythonWrappers
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
/// \brief Entity object
|
|
LocatedEntity * owner;
|
|
} CyPyProps;
|
|
|
|
extern PyTypeObject CyPyProps_Type;
|
|
|
|
#define CyPyProps_Check(_o) (Py_TYPE((_o)) == &CyPyProps_Type)
|
|
|
|
CyPyProps * newCyPyProps();
|
|
|
|
#endif //CYPHESIS_CYPY_PROPS_H
|