mirror of
https://github.com/Relintai/gdnative_python.git
synced 2024-11-12 10:25:08 +01:00
20 lines
524 B
Cython
20 lines
524 B
Cython
{% from 'method.tmpl.pyx' import get_method_bind_register_name, render_method_signature %}
|
|
|
|
{% macro render_class_pxd(cls) %}
|
|
|
|
cdef class {{ cls.name }}({{ cls.base_class }}):
|
|
{% if not cls.base_class %}
|
|
cdef pandemonium_object *_gd_ptr
|
|
|
|
@staticmethod
|
|
cdef inline Object cast_from_variant(const pandemonium_variant *p_gdvar)
|
|
|
|
@staticmethod
|
|
cdef inline Object cast_from_ptr(pandemonium_object *ptr)
|
|
|
|
{% endif %}
|
|
@staticmethod
|
|
cdef {{ cls.name }} from_ptr(pandemonium_object *_ptr)
|
|
|
|
{% endmacro %}
|