/* Generated by Cython 0.25.2 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "include_dirs": [
            "./pyspades"
        ], 
        "language": "c++"
    }, 
    "module_name": "pyspades.networking.loaders"
}
END: Cython Metadata */

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000)
    #error Cython requires Python 2.6+ or Python 3.2+.
#else
#define CYTHON_ABI "0_25_2"
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#ifndef HAVE_LONG_LONG
  #if PY_VERSION_HEX >= 0x03030000 || (PY_MAJOR_VERSION == 2 && PY_VERSION_HEX >= 0x02070000)
    #define HAVE_LONG_LONG
  #endif
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_ASYNC_SLOTS
  #define CYTHON_USE_ASYNC_SLOTS 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
#elif defined(PYSTON_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #undef CYTHON_USE_ASYNC_SLOTS
  #define CYTHON_USE_ASYNC_SLOTS 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_PYSTON 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #ifndef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #if PY_MAJOR_VERSION < 3
    #undef CYTHON_USE_ASYNC_SLOTS
    #define CYTHON_USE_ASYNC_SLOTS 0
  #elif !defined(CYTHON_USE_ASYNC_SLOTS)
    #define CYTHON_USE_ASYNC_SLOTS 1
  #endif
  #if PY_VERSION_HEX < 0x02070000
    #undef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLONG_INTERNALS)
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if PY_VERSION_HEX < 0x030300F0
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
#endif
#if !defined(CYTHON_FAST_PYCCALL)
#define CYTHON_FAST_PYCCALL  (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #include "longintrepr.h"
  #undef SHIFT
  #undef BASE
  #undef MASK
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
  #define Py_OptimizeFlag 0
#endif
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyClass_Type
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyType_Type
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef METH_FASTCALL
  #define METH_FASTCALL 0x80
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject **args,
                                              Py_ssize_t nargs, PyObject *kwnames);
#else
  #define __Pyx_PyCFunctionFast _PyCFunctionFast
#endif
#if CYTHON_FAST_PYCCALL
#define __Pyx_PyFastCFunction_Check(func)\
    ((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST)))))
#else
#define __Pyx_PyFastCFunction_Check(func) 0
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
  #define CYTHON_PEP393_ENABLED 1
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                              0 : _PyUnicode_Ready((PyObject *)(op)))
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         PyUnicode_KIND(u)
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, ch)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
#else
  #define CYTHON_PEP393_ENABLED 0
  #define PyUnicode_1BYTE_KIND  1
  #define PyUnicode_2BYTE_KIND  2
  #define PyUnicode_4BYTE_KIND  4
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
  #define __Pyx_PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_SIZE(u))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
  #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
  #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
  #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_PYSTON
  #define __Pyx_PyCode_HasFreeVars(co)  PyCode_HasFreeVars(co)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#define __Pyx_PyString_FormatSafe(a, b)   ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyString_Format(a, b)  PyUnicode_Format(a, b)
#else
  #define __Pyx_PyString_Format(a, b)  PyString_Format(a, b)
#endif
#if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
  #define PyObject_ASCII(o)            PyObject_Repr(o)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyStringObject               PyUnicodeObject
  #define PyString_Type                PyUnicode_Type
  #define PyString_Check               PyUnicode_Check
  #define PyString_CheckExact          PyUnicode_CheckExact
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
  #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
  #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
#endif
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
#if PY_MAJOR_VERSION >= 3
  #define PyIntObject                  PyLongObject
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
  #define PyNumber_Int                 PyNumber_Long
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject                 PyLongObject
#endif
#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
  #ifndef PyUnicode_InternFromString
    #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
  #endif
#endif
#if PY_VERSION_HEX < 0x030200A4
  typedef long Py_hash_t;
  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
  #define __Pyx_PyInt_AsHash_t   PyInt_AsLong
#else
  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
  #define __Pyx_PyInt_AsHash_t   PyInt_AsSsize_t
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
#else
  #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
#endif
#if CYTHON_USE_ASYNC_SLOTS
  #if PY_VERSION_HEX >= 0x030500B1
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
    #define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
  #else
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
    } __Pyx_PyAsyncMethodsStruct;
    #define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
  #endif
#else
  #define __Pyx_PyType_AsAsync(obj) NULL
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)

#ifndef __cplusplus
  #error "Cython files generated with the C++ option must be compiled with a C++ compiler."
#endif
#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #else
    #define CYTHON_INLINE inline
  #endif
#endif
template<typename T>
void __Pyx_call_destructor(T& x) {
    x.~T();
}
template<typename T>
class __Pyx_FakeReference {
  public:
    __Pyx_FakeReference() : ptr(NULL) { }
    __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { }
    T *operator->() { return ptr; }
    T *operator&() { return ptr; }
    operator T&() { return *ptr; }
    template<typename U> bool operator ==(U other) { return *ptr == other; }
    template<typename U> bool operator !=(U other) { return *ptr != other; }
  private:
    T *ptr;
};

#if defined(WIN32) || defined(MS_WINDOWS)
  #define _USE_MATH_DEFINES
#endif
#include <math.h>
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
  float value;
  memset(&value, 0xFF, sizeof(value));
  return value;
}
#endif
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif


#define __PYX_ERR(f_index, lineno, Ln_error) \
{ \
  __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \
}

#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
#endif

#ifndef __PYX_EXTERN_C
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__pyspades__networking__loaders
#define __PYX_HAVE_API__pyspades__networking__loaders
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#ifdef PYREX_WITHOUT_ASSERTIONS
#define CYTHON_WITHOUT_ASSERTIONS
#endif

typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER) && defined (_M_X64)
    #define __Pyx_sst_abs(value) _abs64(value)
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if PY_MAJOR_VERSION < 3
    #define __Pyx_PyStr_FromString        __Pyx_PyBytes_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyObject_AsSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyStr_FromCString(s)     __Pyx_PyStr_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#if PY_MAJOR_VERSION < 3
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
{
    const Py_UNICODE *u_end = u;
    while (*u_end++) ;
    return (size_t)(u_end - u - 1);
}
#else
#define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen
#endif
#define __Pyx_PyUnicode_FromUnicode(u)       PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
#define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False))
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
#if CYTHON_ASSUME_SAFE_MACROS
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#else
#define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
#endif
#define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    PyObject* ascii_chars_u = NULL;
    PyObject* ascii_chars_b = NULL;
    const char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    if (strcmp(default_encoding_c, "ascii") == 0) {
        __Pyx_sys_getdefaultencoding_not_ascii = 0;
    } else {
        char ascii_chars[128];
        int c;
        for (c = 0; c < 128; c++) {
            ascii_chars[c] = c;
        }
        __Pyx_sys_getdefaultencoding_not_ascii = 1;
        ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
        if (!ascii_chars_u) goto bad;
        ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
        if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
            PyErr_Format(
                PyExc_ValueError,
                "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
                default_encoding_c);
            goto bad;
        }
        Py_DECREF(ascii_chars_u);
        Py_DECREF(ascii_chars_b);
    }
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c));
    if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    return -1;
}
#endif
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */

static PyObject *__pyx_m;
static PyObject *__pyx_d;
static PyObject *__pyx_b;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static PyObject *__pyx_empty_unicode;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;


static const char *__pyx_f[] = {
  "pyspades/networking/loaders.pyx",
  "pyspades/networking/bytes.pxd",
};

/*--- Type declarations ---*/
struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader;
struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter;
struct __pyx_obj_8pyspades_10networking_6loader_Loader;
struct __pyx_obj_8pyspades_10networking_7loaders_PositionData;
struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData;
struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate;
struct __pyx_obj_8pyspades_10networking_7loaders_InputData;
struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput;
struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket;
struct __pyx_obj_8pyspades_10networking_7loaders_SetHP;
struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket;
struct __pyx_obj_8pyspades_10networking_7loaders_SetTool;
struct __pyx_obj_8pyspades_10networking_7loaders_SetColor;
struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer;
struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData;
struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject;
struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer;
struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction;
struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine;
struct __pyx_obj_8pyspades_10networking_7loaders_CTFState;
struct __pyx_obj_8pyspades_10networking_7loaders_Territory;
struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory;
struct __pyx_obj_8pyspades_10networking_7loaders_TCState;
struct __pyx_obj_8pyspades_10networking_7loaders_StateData;
struct __pyx_obj_8pyspades_10networking_7loaders_KillAction;
struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage;
struct __pyx_obj_8pyspades_10networking_7loaders_MapStart;
struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk;
struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft;
struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture;
struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar;
struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture;
struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup;
struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop;
struct __pyx_obj_8pyspades_10networking_7loaders_Restock;
struct __pyx_obj_8pyspades_10networking_7loaders_FogColor;
struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload;
struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam;
struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon;
struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit;
struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn;
struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest;
struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse;
struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo;
struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest;
struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest;
struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting;
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_read;
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte;
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readShort;
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readInt;
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readFloat;
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readString;
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readReader;
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte;
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeShort;
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeInt;
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeFloat;
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeString;

/* "pyspades/networking/bytes.pxd":13
 * 
 *     cdef char * check_available(self, int size) except NULL
 *     cpdef read(self, int bytecount = ?)             # <<<<<<<<<<<<<<
 *     cpdef int readByte(self, bint unsigned = ?) except INT_ERROR
 *     cpdef int readShort(self, bint unsigned = ?, bint big_endian = ?) \
 */
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_read {
  int __pyx_n;
  int bytecount;
};

/* "pyspades/networking/bytes.pxd":14
 *     cdef char * check_available(self, int size) except NULL
 *     cpdef read(self, int bytecount = ?)
 *     cpdef int readByte(self, bint unsigned = ?) except INT_ERROR             # <<<<<<<<<<<<<<
 *     cpdef int readShort(self, bint unsigned = ?, bint big_endian = ?) \
 *                         except INT_ERROR
 */
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte {
  int __pyx_n;
  int __pyx_unsigned;
};

/* "pyspades/networking/bytes.pxd":15
 *     cpdef read(self, int bytecount = ?)
 *     cpdef int readByte(self, bint unsigned = ?) except INT_ERROR
 *     cpdef int readShort(self, bint unsigned = ?, bint big_endian = ?) \             # <<<<<<<<<<<<<<
 *                         except INT_ERROR
 *     cpdef long long readInt(self, bint unsigned = ?, bint big_endian = ?) \
 */
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readShort {
  int __pyx_n;
  int __pyx_unsigned;
  int big_endian;
};

/* "pyspades/networking/bytes.pxd":17
 *     cpdef int readShort(self, bint unsigned = ?, bint big_endian = ?) \
 *                         except INT_ERROR
 *     cpdef long long readInt(self, bint unsigned = ?, bint big_endian = ?) \             # <<<<<<<<<<<<<<
 *                             except LONG_LONG_ERROR
 *     cpdef float readFloat(self, bint big_endian = ?) except? FLOAT_ERROR
 */
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readInt {
  int __pyx_n;
  int __pyx_unsigned;
  int big_endian;
};

/* "pyspades/networking/bytes.pxd":19
 *     cpdef long long readInt(self, bint unsigned = ?, bint big_endian = ?) \
 *                             except LONG_LONG_ERROR
 *     cpdef float readFloat(self, bint big_endian = ?) except? FLOAT_ERROR             # <<<<<<<<<<<<<<
 *     cpdef readString(self, int size = ?)
 *     cpdef ByteReader readReader(self, int size = ?)
 */
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readFloat {
  int __pyx_n;
  int big_endian;
};

/* "pyspades/networking/bytes.pxd":20
 *                             except LONG_LONG_ERROR
 *     cpdef float readFloat(self, bint big_endian = ?) except? FLOAT_ERROR
 *     cpdef readString(self, int size = ?)             # <<<<<<<<<<<<<<
 *     cpdef ByteReader readReader(self, int size = ?)
 *     cpdef int dataLeft(self)
 */
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readString {
  int __pyx_n;
  int size;
};

/* "pyspades/networking/bytes.pxd":21
 *     cpdef float readFloat(self, bint big_endian = ?) except? FLOAT_ERROR
 *     cpdef readString(self, int size = ?)
 *     cpdef ByteReader readReader(self, int size = ?)             # <<<<<<<<<<<<<<
 *     cpdef int dataLeft(self)
 *     cdef void _skip(self, int bytecount)
 */
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readReader {
  int __pyx_n;
  int size;
};

/* "pyspades/networking/bytes.pxd":34
 *     cdef void writeSize(self, char * data, int size)
 *     cpdef write(self, data)
 *     cpdef writeByte(self, int value, bint unsigned = ?)             # <<<<<<<<<<<<<<
 *     cpdef writeShort(self, int value, bint unsigned = ?,
 *                      bint big_endian = ?)
 */
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte {
  int __pyx_n;
  int __pyx_unsigned;
};

/* "pyspades/networking/bytes.pxd":35
 *     cpdef write(self, data)
 *     cpdef writeByte(self, int value, bint unsigned = ?)
 *     cpdef writeShort(self, int value, bint unsigned = ?,             # <<<<<<<<<<<<<<
 *                      bint big_endian = ?)
 *     cpdef writeInt(self, long long value, bint unsigned = ?,
 */
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeShort {
  int __pyx_n;
  int __pyx_unsigned;
  int big_endian;
};

/* "pyspades/networking/bytes.pxd":37
 *     cpdef writeShort(self, int value, bint unsigned = ?,
 *                      bint big_endian = ?)
 *     cpdef writeInt(self, long long value, bint unsigned = ?,             # <<<<<<<<<<<<<<
 *                    bint big_endian = ?)
 *     cpdef writeFloat(self, float value, bint big_endian = ?)
 */
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeInt {
  int __pyx_n;
  int __pyx_unsigned;
  int big_endian;
};

/* "pyspades/networking/bytes.pxd":39
 *     cpdef writeInt(self, long long value, bint unsigned = ?,
 *                    bint big_endian = ?)
 *     cpdef writeFloat(self, float value, bint big_endian = ?)             # <<<<<<<<<<<<<<
 *     cpdef writeStringSize(self, char * value, int size)
 *     cpdef writeString(self, value, int size = ?)
 */
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeFloat {
  int __pyx_n;
  int big_endian;
};

/* "pyspades/networking/bytes.pxd":41
 *     cpdef writeFloat(self, float value, bint big_endian = ?)
 *     cpdef writeStringSize(self, char * value, int size)
 *     cpdef writeString(self, value, int size = ?)             # <<<<<<<<<<<<<<
 *     cpdef pad(self, int bytecount)
 *     cpdef rewind(self, int bytecount)
 */
struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeString {
  int __pyx_n;
  int size;
};

/* "pyspades/networking/bytes.pxd":5
 * DEF FLOAT_ERROR = float('nan')
 * 
 * cdef class ByteReader:             # <<<<<<<<<<<<<<
 *     cdef char * data
 *     cdef char * pos
 */
struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader {
  PyObject_HEAD
  struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *__pyx_vtab;
  char *data;
  char *pos;
  char *end;
  int start;
  int size;
  PyObject *input;
};


/* "pyspades/networking/bytes.pxd":29
 *     cpdef size_t tell(self)
 * 
 * cdef class ByteWriter:             # <<<<<<<<<<<<<<
 *     cdef void * stream
 * 
 */
struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter {
  PyObject_HEAD
  struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *__pyx_vtab;
  void *stream;
};


/* "pyspades/networking/loader.pxd":20
 * from pyspades.networking.bytes cimport ByteWriter, ByteReader
 * 
 * cdef class Loader:             # <<<<<<<<<<<<<<
 *     cpdef read(self, ByteReader reader)
 *     cpdef write(self, ByteWriter reader)
 */
struct __pyx_obj_8pyspades_10networking_6loader_Loader {
  PyObject_HEAD
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader *__pyx_vtab;
};


/* "pyspades/networking/loaders.pyx":56
 * id_iter = itertools.count()
 * 
 * cdef class PositionData(Loader):             # <<<<<<<<<<<<<<
 *     id = 0
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_PositionData {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  float x;
  float y;
  float z;
};


/* "pyspades/networking/loaders.pyx":76
 *         write_position(reader, self.x, self.y, self.z)
 * 
 * cdef class OrientationData(Loader):             # <<<<<<<<<<<<<<
 *     id = 1
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  float x;
  float y;
  float z;
};


/* "pyspades/networking/loaders.pyx":100
 *         reader.writeFloat(self.z, False)
 * 
 * cdef class WorldUpdate(Loader):             # <<<<<<<<<<<<<<
 *     id = 2
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  PyObject *items;
};


/* "pyspades/networking/loaders.pyx":130
 *             reader.writeFloat(o_z, False)
 * 
 * cdef class InputData(Loader):             # <<<<<<<<<<<<<<
 *     id = 3
 *     cdef public:
 */
struct __pyx_obj_8pyspades_10networking_7loaders_InputData {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  int up;
  int down;
  int left;
  int right;
  int jump;
  int crouch;
  int sneak;
  int sprint;
};


/* "pyspades/networking/loaders.pyx":157
 *         reader.writeByte(byte, True)
 * 
 * cdef class WeaponInput(Loader):             # <<<<<<<<<<<<<<
 *     id = 4
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int primary;
  int secondary;
  int player_id;
};


/* "pyspades/networking/loaders.pyx":177
 * 
 * 
 * cdef class HitPacket(Loader):             # <<<<<<<<<<<<<<
 *     id = 5
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  int value;
};


/* "pyspades/networking/loaders.pyx":192
 *         reader.writeByte(self.value, True)
 * 
 * cdef class SetHP(Loader):             # <<<<<<<<<<<<<<
 *     id = 5
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_SetHP {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int hp;
  int not_fall;
  float source_x;
  float source_y;
  float source_z;
};


/* "pyspades/networking/loaders.pyx":215
 *         reader.writeFloat(self.source_z, False)
 * 
 * cdef class GrenadePacket(Loader):             # <<<<<<<<<<<<<<
 *     id = 6
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  float value;
  PyObject *position;
  PyObject *velocity;
};


/* "pyspades/networking/loaders.pyx":240
 *             reader.writeFloat(value, False)
 * 
 * cdef class SetTool(Loader):             # <<<<<<<<<<<<<<
 *     id = 7
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_SetTool {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  int value;
};


/* "pyspades/networking/loaders.pyx":255
 *         reader.writeByte(self.value, True)
 * 
 * cdef class SetColor(Loader):             # <<<<<<<<<<<<<<
 *     id = 8
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_SetColor {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  unsigned int value;
  unsigned int player_id;
};


/* "pyspades/networking/loaders.pyx":270
 *         write_color(reader, self.value)
 * 
 * cdef class ExistingPlayer(Loader):             # <<<<<<<<<<<<<<
 *     id = 9
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  int team;
  int weapon;
  int tool;
  int kills;
  unsigned int color;
  PyObject *name;
};


/* "pyspades/networking/loaders.pyx":297
 *         reader.writeString(encode(self.name))
 * 
 * cdef class ShortPlayerData(Loader):             # <<<<<<<<<<<<<<
 *     id = 10
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  int team;
  int weapon;
};


/* "pyspades/networking/loaders.pyx":314
 *         reader.writeByte(self.weapon, True)
 * 
 * cdef class MoveObject(Loader):             # <<<<<<<<<<<<<<
 *     id = 11
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  unsigned int object_type;
  unsigned int state;
  float x;
  float y;
  float z;
};


/* "pyspades/networking/loaders.pyx":336
 *         reader.writeFloat(self.z, False)
 * 
 * cdef class CreatePlayer(Loader):             # <<<<<<<<<<<<<<
 *     id = 12
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  unsigned int player_id;
  unsigned int weapon;
  int team;
  float x;
  float y;
  float z;
  PyObject *name;
};


/* "pyspades/networking/loaders.pyx":360
 *         reader.writeString(encode(self.name))
 * 
 * cdef class BlockAction(Loader):             # <<<<<<<<<<<<<<
 *     id = 13
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int x;
  int y;
  int z;
  int value;
  int player_id;
};


/* "pyspades/networking/loaders.pyx":381
 *         reader.writeInt(self.z, False, False)
 * 
 * cdef class BlockLine(Loader):             # <<<<<<<<<<<<<<
 *     id = 14
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  int x1;
  int y1;
  int z1;
  int x2;
  int y2;
  int z2;
};


/* "pyspades/networking/loaders.pyx":408
 *         reader.writeInt(self.z2, False, False)
 * 
 * cdef class CTFState(Loader):             # <<<<<<<<<<<<<<
 *     id = 0
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_CTFState {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  unsigned int team1_score;
  unsigned int team2_score;
  unsigned int cap_limit;
  int team1_has_intel;
  int team2_has_intel;
  unsigned int team1_carrier;
  unsigned int team2_carrier;
  float team1_flag_x;
  float team1_flag_y;
  float team1_flag_z;
  float team2_flag_x;
  float team2_flag_y;
  float team2_flag_z;
  float team1_base_x;
  float team1_base_y;
  float team1_base_z;
  float team2_base_x;
  float team2_base_y;
  float team2_base_z;
};


/* "pyspades/networking/loaders.pyx":482
 * DEF TERRITORY_DATA = MAX_TERRITORIES * TERRITORY_SIZE
 * 
 * cdef class Territory(Loader):             # <<<<<<<<<<<<<<
 *     cdef public:
 *         float x, y, z
 */
struct __pyx_obj_8pyspades_10networking_7loaders_Territory {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  float x;
  float y;
  float z;
  unsigned int state;
};


/* "pyspades/networking/loaders.pyx":495
 *         reader.writeByte(self.state, True)
 * 
 * cdef class ObjectTerritory(Loader):             # <<<<<<<<<<<<<<
 *     cdef public:
 *         object item
 */
struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  PyObject *item;
};


/* "pyspades/networking/loaders.pyx":509
 *         reader.writeByte(state, True)
 * 
 * cdef class TCState(Loader):             # <<<<<<<<<<<<<<
 *     id = 1
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_TCState {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  PyObject *territories;
};


/* "pyspades/networking/loaders.pyx":552
 *     reader.writeByte(r, True)
 * 
 * cdef class StateData(Loader):             # <<<<<<<<<<<<<<
 *     id = 15
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_StateData {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  PyObject *fog_color;
  PyObject *team1_color;
  PyObject *team2_color;
  struct __pyx_obj_8pyspades_10networking_6loader_Loader *state;
  PyObject *team1_name;
  PyObject *team2_name;
};


/* "pyspades/networking/loaders.pyx":584
 *         self.state.write(reader)
 * 
 * cdef class KillAction(Loader):             # <<<<<<<<<<<<<<
 *     id = 16
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_KillAction {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  int killer_id;
  int kill_type;
  int respawn_time;
};


/* "pyspades/networking/loaders.pyx":603
 *         reader.writeByte(self.respawn_time, True)
 * 
 * cdef class ChatMessage(Loader):             # <<<<<<<<<<<<<<
 *     id = 17
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  unsigned int player_id;
  unsigned int chat_type;
  PyObject *value;
};


/* "pyspades/networking/loaders.pyx":621
 *         reader.writeString(encode(self.value))
 * 
 * cdef class MapStart(Loader):             # <<<<<<<<<<<<<<
 *     id = 18
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_MapStart {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  unsigned int size;
};


/* "pyspades/networking/loaders.pyx":634
 *         reader.writeInt(self.size, True, False)
 * 
 * cdef class MapChunk(Loader):             # <<<<<<<<<<<<<<
 *     id = 19
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  PyObject *data;
};


/* "pyspades/networking/loaders.pyx":647
 *         reader.write(self.data)
 * 
 * cdef class PlayerLeft(Loader):             # <<<<<<<<<<<<<<
 *     id = 20
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
};


/* "pyspades/networking/loaders.pyx":660
 *         reader.writeByte(self.player_id, True)
 * 
 * cdef class TerritoryCapture(Loader):             # <<<<<<<<<<<<<<
 *     id = 21
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  unsigned int object_index;
  unsigned int winning;
  unsigned int state;
};


/* "pyspades/networking/loaders.pyx":677
 *         reader.writeByte(self.state, True)
 * 
 * cdef class ProgressBar(Loader):             # <<<<<<<<<<<<<<
 *     id = 22
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  unsigned int object_index;
  unsigned int capturing_team;
  int rate;
  float progress;
};


/* "pyspades/networking/loaders.pyx":698
 *         reader.writeFloat(self.progress, False)
 * 
 * cdef class IntelCapture(Loader):             # <<<<<<<<<<<<<<
 *     id = 23
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  int winning;
};


/* "pyspades/networking/loaders.pyx":714
 *         reader.writeByte(self.winning, True)
 * 
 * cdef class IntelPickup(Loader):             # <<<<<<<<<<<<<<
 *     id = 24
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
};


/* "pyspades/networking/loaders.pyx":727
 *         reader.writeByte(self.player_id, True)
 * 
 * cdef class IntelDrop(Loader):             # <<<<<<<<<<<<<<
 *     id = 25
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  float x;
  float y;
  float z;
};


/* "pyspades/networking/loaders.pyx":743
 *         write_position(reader, self.x, self.y, self.z)
 * 
 * cdef class Restock(Loader):             # <<<<<<<<<<<<<<
 *     id = 26
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_Restock {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
};


/* "pyspades/networking/loaders.pyx":756
 *         reader.writeByte(self.player_id, True)
 * 
 * cdef class FogColor(Loader):             # <<<<<<<<<<<<<<
 *     id = 27
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_FogColor {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int color;
};


/* "pyspades/networking/loaders.pyx":769
 *         reader.writeInt(self.color << 8, True, False)
 * 
 * cdef class WeaponReload(Loader):             # <<<<<<<<<<<<<<
 *     id = 28
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  int clip_ammo;
  int reserve_ammo;
};


/* "pyspades/networking/loaders.pyx":786
 *         reader.writeByte(self.reserve_ammo, True)
 * 
 * cdef class ChangeTeam(Loader):             # <<<<<<<<<<<<<<
 *     id = 29
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  int team;
};


/* "pyspades/networking/loaders.pyx":801
 *         reader.writeByte(self.team, False)
 * 
 * cdef class ChangeWeapon(Loader):             # <<<<<<<<<<<<<<
 *     id = 30
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int player_id;
  int weapon;
};


/* "pyspades/networking/loaders.pyx":816
 *         reader.writeByte(self.weapon, True)
 * 
 * cdef class HandShakeInit(Loader):             # <<<<<<<<<<<<<<
 *     id = 31
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
};


/* "pyspades/networking/loaders.pyx":826
 *         writer.writeInt(42, True)
 * 
 * cdef class HandShakeReturn(Loader):             # <<<<<<<<<<<<<<
 *     id = 32
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int success;
};


/* "pyspades/networking/loaders.pyx":838
 *         writer.writeByte(self.id, True)
 * 
 * cdef class VersionRequest(Loader):             # <<<<<<<<<<<<<<
 *     id = 33
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
};


/* "pyspades/networking/loaders.pyx":847
 *         writer.writeByte(self.id, True)
 * 
 * cdef class VersionResponse(Loader):             # <<<<<<<<<<<<<<
 *     id = 34
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  PyObject *client;
  PyObject *version;
  PyObject *os_info;
};


/* "pyspades/networking/loaders.pyx":870
 *         writer.writeByte(self.id, True)
 * 
 * cdef class ServerInfo(Loader):             # <<<<<<<<<<<<<<
 *     id = 50
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int protocol_version;
  int players;
  int maxplayers;
  PyObject *servername;
  PyObject *mapname;
};


/* "pyspades/networking/loaders.pyx":891
 *         writer.writeString(self.mapname)
 * 
 * cdef class ApiRequest(Loader):             # <<<<<<<<<<<<<<
 *     id = 51
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  int requestID;
  PyObject *json_request;
};


/* "pyspades/networking/loaders.pyx":907
 *         writer.writeInt(self.maxplayers)
 * 
 * cdef class AuthenticationRequest(Loader):             # <<<<<<<<<<<<<<
 *     id = 53
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  PyObject *token;
  int response_code;
};


/* "pyspades/networking/loaders.pyx":921
 *         writer.writeByte(self.response_code)
 * 
 * cdef class SetClientSetting(Loader):             # <<<<<<<<<<<<<<
 *     id = 54
 * 
 */
struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader __pyx_base;
  PyObject *settings;
};



/* "pyspades/networking/bytes.pxd":5
 * DEF FLOAT_ERROR = float('nan')
 * 
 * cdef class ByteReader:             # <<<<<<<<<<<<<<
 *     cdef char * data
 *     cdef char * pos
 */

struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader {
  char *(*check_available)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int);
  PyObject *(*read)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch, struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_read *__pyx_optional_args);
  int (*readByte)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch, struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte *__pyx_optional_args);
  int (*readShort)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch, struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readShort *__pyx_optional_args);
  PY_LONG_LONG (*readInt)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch, struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readInt *__pyx_optional_args);
  float (*readFloat)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch, struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readFloat *__pyx_optional_args);
  PyObject *(*readString)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch, struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readString *__pyx_optional_args);
  struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *(*readReader)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch, struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readReader *__pyx_optional_args);
  int (*dataLeft)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch);
  void (*_skip)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int);
  PyObject *(*skipBytes)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int, int __pyx_skip_dispatch);
  PyObject *(*rewind)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int, int __pyx_skip_dispatch);
  PyObject *(*seek)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, size_t, int __pyx_skip_dispatch);
  size_t (*tell)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *__pyx_vtabptr_8pyspades_10networking_5bytes_ByteReader;


/* "pyspades/networking/bytes.pxd":29
 *     cpdef size_t tell(self)
 * 
 * cdef class ByteWriter:             # <<<<<<<<<<<<<<
 *     cdef void * stream
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter {
  void (*writeSize)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, char *, int);
  PyObject *(*write)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, PyObject *, int __pyx_skip_dispatch);
  PyObject *(*writeByte)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int, int __pyx_skip_dispatch, struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte *__pyx_optional_args);
  PyObject *(*writeShort)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int, int __pyx_skip_dispatch, struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeShort *__pyx_optional_args);
  PyObject *(*writeInt)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, PY_LONG_LONG, int __pyx_skip_dispatch, struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeInt *__pyx_optional_args);
  PyObject *(*writeFloat)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, float, int __pyx_skip_dispatch, struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeFloat *__pyx_optional_args);
  PyObject *(*writeStringSize)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, char *, int, int __pyx_skip_dispatch);
  PyObject *(*writeString)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeString *__pyx_optional_args);
  PyObject *(*pad)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int, int __pyx_skip_dispatch);
  PyObject *(*rewind)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int, int __pyx_skip_dispatch);
  size_t (*tell)(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *__pyx_vtabptr_8pyspades_10networking_5bytes_ByteWriter;


/* "pyspades/networking/loader.pxd":20
 * from pyspades.networking.bytes cimport ByteWriter, ByteReader
 * 
 * cdef class Loader:             # <<<<<<<<<<<<<<
 *     cpdef read(self, ByteReader reader)
 *     cpdef write(self, ByteWriter reader)
 */

struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader {
  PyObject *(*read)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch);
  PyObject *(*write)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch);
  struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *(*generate)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, int __pyx_skip_dispatch);
};
static struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;


/* "pyspades/networking/loaders.pyx":56
 * id_iter = itertools.count()
 * 
 * cdef class PositionData(Loader):             # <<<<<<<<<<<<<<
 *     id = 0
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_PositionData {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_PositionData *__pyx_vtabptr_8pyspades_10networking_7loaders_PositionData;


/* "pyspades/networking/loaders.pyx":76
 *         write_position(reader, self.x, self.y, self.z)
 * 
 * cdef class OrientationData(Loader):             # <<<<<<<<<<<<<<
 *     id = 1
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_OrientationData {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_OrientationData *__pyx_vtabptr_8pyspades_10networking_7loaders_OrientationData;


/* "pyspades/networking/loaders.pyx":100
 *         reader.writeFloat(self.z, False)
 * 
 * cdef class WorldUpdate(Loader):             # <<<<<<<<<<<<<<
 *     id = 2
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_WorldUpdate {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_WorldUpdate *__pyx_vtabptr_8pyspades_10networking_7loaders_WorldUpdate;


/* "pyspades/networking/loaders.pyx":130
 *             reader.writeFloat(o_z, False)
 * 
 * cdef class InputData(Loader):             # <<<<<<<<<<<<<<
 *     id = 3
 *     cdef public:
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_InputData {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_InputData *__pyx_vtabptr_8pyspades_10networking_7loaders_InputData;


/* "pyspades/networking/loaders.pyx":157
 *         reader.writeByte(byte, True)
 * 
 * cdef class WeaponInput(Loader):             # <<<<<<<<<<<<<<
 *     id = 4
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_WeaponInput {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_WeaponInput *__pyx_vtabptr_8pyspades_10networking_7loaders_WeaponInput;


/* "pyspades/networking/loaders.pyx":177
 * 
 * 
 * cdef class HitPacket(Loader):             # <<<<<<<<<<<<<<
 *     id = 5
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_HitPacket {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_HitPacket *__pyx_vtabptr_8pyspades_10networking_7loaders_HitPacket;


/* "pyspades/networking/loaders.pyx":192
 *         reader.writeByte(self.value, True)
 * 
 * cdef class SetHP(Loader):             # <<<<<<<<<<<<<<
 *     id = 5
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_SetHP {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_SetHP *__pyx_vtabptr_8pyspades_10networking_7loaders_SetHP;


/* "pyspades/networking/loaders.pyx":215
 *         reader.writeFloat(self.source_z, False)
 * 
 * cdef class GrenadePacket(Loader):             # <<<<<<<<<<<<<<
 *     id = 6
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_GrenadePacket {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_GrenadePacket *__pyx_vtabptr_8pyspades_10networking_7loaders_GrenadePacket;


/* "pyspades/networking/loaders.pyx":240
 *             reader.writeFloat(value, False)
 * 
 * cdef class SetTool(Loader):             # <<<<<<<<<<<<<<
 *     id = 7
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_SetTool {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_SetTool *__pyx_vtabptr_8pyspades_10networking_7loaders_SetTool;


/* "pyspades/networking/loaders.pyx":255
 *         reader.writeByte(self.value, True)
 * 
 * cdef class SetColor(Loader):             # <<<<<<<<<<<<<<
 *     id = 8
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_SetColor {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_SetColor *__pyx_vtabptr_8pyspades_10networking_7loaders_SetColor;


/* "pyspades/networking/loaders.pyx":270
 *         write_color(reader, self.value)
 * 
 * cdef class ExistingPlayer(Loader):             # <<<<<<<<<<<<<<
 *     id = 9
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ExistingPlayer {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_vtabptr_8pyspades_10networking_7loaders_ExistingPlayer;


/* "pyspades/networking/loaders.pyx":297
 *         reader.writeString(encode(self.name))
 * 
 * cdef class ShortPlayerData(Loader):             # <<<<<<<<<<<<<<
 *     id = 10
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ShortPlayerData {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_vtabptr_8pyspades_10networking_7loaders_ShortPlayerData;


/* "pyspades/networking/loaders.pyx":314
 *         reader.writeByte(self.weapon, True)
 * 
 * cdef class MoveObject(Loader):             # <<<<<<<<<<<<<<
 *     id = 11
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_MoveObject {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_MoveObject *__pyx_vtabptr_8pyspades_10networking_7loaders_MoveObject;


/* "pyspades/networking/loaders.pyx":336
 *         reader.writeFloat(self.z, False)
 * 
 * cdef class CreatePlayer(Loader):             # <<<<<<<<<<<<<<
 *     id = 12
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_CreatePlayer {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_CreatePlayer *__pyx_vtabptr_8pyspades_10networking_7loaders_CreatePlayer;


/* "pyspades/networking/loaders.pyx":360
 *         reader.writeString(encode(self.name))
 * 
 * cdef class BlockAction(Loader):             # <<<<<<<<<<<<<<
 *     id = 13
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_BlockAction {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_BlockAction *__pyx_vtabptr_8pyspades_10networking_7loaders_BlockAction;


/* "pyspades/networking/loaders.pyx":381
 *         reader.writeInt(self.z, False, False)
 * 
 * cdef class BlockLine(Loader):             # <<<<<<<<<<<<<<
 *     id = 14
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_BlockLine {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_BlockLine *__pyx_vtabptr_8pyspades_10networking_7loaders_BlockLine;


/* "pyspades/networking/loaders.pyx":408
 *         reader.writeInt(self.z2, False, False)
 * 
 * cdef class CTFState(Loader):             # <<<<<<<<<<<<<<
 *     id = 0
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_CTFState {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_CTFState *__pyx_vtabptr_8pyspades_10networking_7loaders_CTFState;


/* "pyspades/networking/loaders.pyx":482
 * DEF TERRITORY_DATA = MAX_TERRITORIES * TERRITORY_SIZE
 * 
 * cdef class Territory(Loader):             # <<<<<<<<<<<<<<
 *     cdef public:
 *         float x, y, z
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_Territory {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_Territory *__pyx_vtabptr_8pyspades_10networking_7loaders_Territory;


/* "pyspades/networking/loaders.pyx":495
 *         reader.writeByte(self.state, True)
 * 
 * cdef class ObjectTerritory(Loader):             # <<<<<<<<<<<<<<
 *     cdef public:
 *         object item
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ObjectTerritory {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ObjectTerritory *__pyx_vtabptr_8pyspades_10networking_7loaders_ObjectTerritory;


/* "pyspades/networking/loaders.pyx":509
 *         reader.writeByte(state, True)
 * 
 * cdef class TCState(Loader):             # <<<<<<<<<<<<<<
 *     id = 1
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_TCState {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_TCState *__pyx_vtabptr_8pyspades_10networking_7loaders_TCState;


/* "pyspades/networking/loaders.pyx":552
 *     reader.writeByte(r, True)
 * 
 * cdef class StateData(Loader):             # <<<<<<<<<<<<<<
 *     id = 15
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_StateData {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_StateData *__pyx_vtabptr_8pyspades_10networking_7loaders_StateData;


/* "pyspades/networking/loaders.pyx":584
 *         self.state.write(reader)
 * 
 * cdef class KillAction(Loader):             # <<<<<<<<<<<<<<
 *     id = 16
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_KillAction {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_KillAction *__pyx_vtabptr_8pyspades_10networking_7loaders_KillAction;


/* "pyspades/networking/loaders.pyx":603
 *         reader.writeByte(self.respawn_time, True)
 * 
 * cdef class ChatMessage(Loader):             # <<<<<<<<<<<<<<
 *     id = 17
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ChatMessage {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ChatMessage *__pyx_vtabptr_8pyspades_10networking_7loaders_ChatMessage;


/* "pyspades/networking/loaders.pyx":621
 *         reader.writeString(encode(self.value))
 * 
 * cdef class MapStart(Loader):             # <<<<<<<<<<<<<<
 *     id = 18
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_MapStart {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_MapStart *__pyx_vtabptr_8pyspades_10networking_7loaders_MapStart;


/* "pyspades/networking/loaders.pyx":634
 *         reader.writeInt(self.size, True, False)
 * 
 * cdef class MapChunk(Loader):             # <<<<<<<<<<<<<<
 *     id = 19
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_MapChunk {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_MapChunk *__pyx_vtabptr_8pyspades_10networking_7loaders_MapChunk;


/* "pyspades/networking/loaders.pyx":647
 *         reader.write(self.data)
 * 
 * cdef class PlayerLeft(Loader):             # <<<<<<<<<<<<<<
 *     id = 20
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_PlayerLeft {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_PlayerLeft *__pyx_vtabptr_8pyspades_10networking_7loaders_PlayerLeft;


/* "pyspades/networking/loaders.pyx":660
 *         reader.writeByte(self.player_id, True)
 * 
 * cdef class TerritoryCapture(Loader):             # <<<<<<<<<<<<<<
 *     id = 21
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_TerritoryCapture {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_vtabptr_8pyspades_10networking_7loaders_TerritoryCapture;


/* "pyspades/networking/loaders.pyx":677
 *         reader.writeByte(self.state, True)
 * 
 * cdef class ProgressBar(Loader):             # <<<<<<<<<<<<<<
 *     id = 22
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ProgressBar {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ProgressBar *__pyx_vtabptr_8pyspades_10networking_7loaders_ProgressBar;


/* "pyspades/networking/loaders.pyx":698
 *         reader.writeFloat(self.progress, False)
 * 
 * cdef class IntelCapture(Loader):             # <<<<<<<<<<<<<<
 *     id = 23
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_IntelCapture {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_IntelCapture *__pyx_vtabptr_8pyspades_10networking_7loaders_IntelCapture;


/* "pyspades/networking/loaders.pyx":714
 *         reader.writeByte(self.winning, True)
 * 
 * cdef class IntelPickup(Loader):             # <<<<<<<<<<<<<<
 *     id = 24
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_IntelPickup {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_IntelPickup *__pyx_vtabptr_8pyspades_10networking_7loaders_IntelPickup;


/* "pyspades/networking/loaders.pyx":727
 *         reader.writeByte(self.player_id, True)
 * 
 * cdef class IntelDrop(Loader):             # <<<<<<<<<<<<<<
 *     id = 25
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_IntelDrop {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_IntelDrop *__pyx_vtabptr_8pyspades_10networking_7loaders_IntelDrop;


/* "pyspades/networking/loaders.pyx":743
 *         write_position(reader, self.x, self.y, self.z)
 * 
 * cdef class Restock(Loader):             # <<<<<<<<<<<<<<
 *     id = 26
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_Restock {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_Restock *__pyx_vtabptr_8pyspades_10networking_7loaders_Restock;


/* "pyspades/networking/loaders.pyx":756
 *         reader.writeByte(self.player_id, True)
 * 
 * cdef class FogColor(Loader):             # <<<<<<<<<<<<<<
 *     id = 27
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_FogColor {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_FogColor *__pyx_vtabptr_8pyspades_10networking_7loaders_FogColor;


/* "pyspades/networking/loaders.pyx":769
 *         reader.writeInt(self.color << 8, True, False)
 * 
 * cdef class WeaponReload(Loader):             # <<<<<<<<<<<<<<
 *     id = 28
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_WeaponReload {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_WeaponReload *__pyx_vtabptr_8pyspades_10networking_7loaders_WeaponReload;


/* "pyspades/networking/loaders.pyx":786
 *         reader.writeByte(self.reserve_ammo, True)
 * 
 * cdef class ChangeTeam(Loader):             # <<<<<<<<<<<<<<
 *     id = 29
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ChangeTeam {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ChangeTeam *__pyx_vtabptr_8pyspades_10networking_7loaders_ChangeTeam;


/* "pyspades/networking/loaders.pyx":801
 *         reader.writeByte(self.team, False)
 * 
 * cdef class ChangeWeapon(Loader):             # <<<<<<<<<<<<<<
 *     id = 30
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ChangeWeapon {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_vtabptr_8pyspades_10networking_7loaders_ChangeWeapon;


/* "pyspades/networking/loaders.pyx":816
 *         reader.writeByte(self.weapon, True)
 * 
 * cdef class HandShakeInit(Loader):             # <<<<<<<<<<<<<<
 *     id = 31
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_HandShakeInit {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_HandShakeInit *__pyx_vtabptr_8pyspades_10networking_7loaders_HandShakeInit;


/* "pyspades/networking/loaders.pyx":826
 *         writer.writeInt(42, True)
 * 
 * cdef class HandShakeReturn(Loader):             # <<<<<<<<<<<<<<
 *     id = 32
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_HandShakeReturn {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_vtabptr_8pyspades_10networking_7loaders_HandShakeReturn;


/* "pyspades/networking/loaders.pyx":838
 *         writer.writeByte(self.id, True)
 * 
 * cdef class VersionRequest(Loader):             # <<<<<<<<<<<<<<
 *     id = 33
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_VersionRequest {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_VersionRequest *__pyx_vtabptr_8pyspades_10networking_7loaders_VersionRequest;


/* "pyspades/networking/loaders.pyx":847
 *         writer.writeByte(self.id, True)
 * 
 * cdef class VersionResponse(Loader):             # <<<<<<<<<<<<<<
 *     id = 34
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_VersionResponse {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_VersionResponse *__pyx_vtabptr_8pyspades_10networking_7loaders_VersionResponse;


/* "pyspades/networking/loaders.pyx":870
 *         writer.writeByte(self.id, True)
 * 
 * cdef class ServerInfo(Loader):             # <<<<<<<<<<<<<<
 *     id = 50
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ServerInfo {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ServerInfo *__pyx_vtabptr_8pyspades_10networking_7loaders_ServerInfo;


/* "pyspades/networking/loaders.pyx":891
 *         writer.writeString(self.mapname)
 * 
 * cdef class ApiRequest(Loader):             # <<<<<<<<<<<<<<
 *     id = 51
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ApiRequest {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ApiRequest *__pyx_vtabptr_8pyspades_10networking_7loaders_ApiRequest;


/* "pyspades/networking/loaders.pyx":907
 *         writer.writeInt(self.maxplayers)
 * 
 * cdef class AuthenticationRequest(Loader):             # <<<<<<<<<<<<<<
 *     id = 53
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_AuthenticationRequest {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_vtabptr_8pyspades_10networking_7loaders_AuthenticationRequest;


/* "pyspades/networking/loaders.pyx":921
 *         writer.writeByte(self.response_code)
 * 
 * cdef class SetClientSetting(Loader):             # <<<<<<<<<<<<<<
 *     id = 54
 * 
 */

struct __pyx_vtabstruct_8pyspades_10networking_7loaders_SetClientSetting {
  struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader __pyx_base;
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_SetClientSetting *__pyx_vtabptr_8pyspades_10networking_7loaders_SetClientSetting;

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, int);
    void (*DECREF)(void*, PyObject*, int);
    void (*GOTREF)(void*, PyObject*, int);
    void (*GIVEREF)(void*, PyObject*, int);
    void* (*SetupContext)(const char*, int, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#endif
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_XINCREF(r)  do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyObjectGetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_getattr))
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
    return PyObject_GetAttr(obj, attr_name);
}
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* PyThreadStateGet.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = PyThreadState_GET();
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#endif

/* PyErrFetchRestore.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* WriteUnraisableException.proto */
static void __Pyx_WriteUnraisable(const char *name, int clineno,
                                  int lineno, const char *filename,
                                  int full_traceback, int nogil);

/* RaiseTooManyValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

/* RaiseNeedMoreValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

/* IterFinish.proto */
static CYTHON_INLINE int __Pyx_IterFinish(void);

/* UnpackItemEndCheck.proto */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected);

/* PyCFunctionFastCall.proto */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
#else
#define __Pyx_PyCFunction_FastCall(func, args, nargs)  (assert(0), NULL)
#endif

/* PyFunctionFastCall.proto */
#if CYTHON_FAST_PYCALL
#define __Pyx_PyFunction_FastCall(func, args, nargs)\
    __Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs);
#else
#define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
#endif
#endif

/* PyObjectCall.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* PyObjectCallMethO.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectCallOneArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* ArgTypeTest.proto */
static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
    const char *name, int exact);

/* ListAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
        Py_INCREF(x);
        PyList_SET_ITEM(list, len, x);
        Py_SIZE(list) = len+1;
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif

/* RaiseNoneIterError.proto */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);

/* GetModuleGlobalName.proto */
static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name);

/* ExtTypeTest.proto */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);

/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
    (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
               __Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
    (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
    __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
    (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              int wraparound, int boundscheck);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
                                                     int is_list, int wraparound, int boundscheck);

/* PyObjectCallNoArg.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
#else
#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
#endif

/* CallNextTpDealloc.proto */
static void __Pyx_call_next_tp_dealloc(PyObject* obj, destructor current_tp_dealloc);

/* CallNextTpTraverse.proto */
static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse);

/* CallNextTpClear.proto */
static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_dealloc);

/* GetVTable.proto */
static void* __Pyx_GetVtable(PyObject *dict);

/* SetVTable.proto */
static int __Pyx_SetVtable(PyObject *dict, void *vtable);

/* Import.proto */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);

/* CodeObjectCache.proto */
typedef struct {
    PyCodeObject* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value);

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_As_PY_LONG_LONG(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);

/* CStringEquals.proto */
static CYTHON_INLINE int __Pyx_StrEq(const char *, const char *);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(void);

/* PyIdentifierFromString.proto */
#if !defined(__Pyx_PyIdentifier_FromString)
#if PY_MAJOR_VERSION < 3
  #define __Pyx_PyIdentifier_FromString(s) PyString_FromString(s)
#else
  #define __Pyx_PyIdentifier_FromString(s) PyUnicode_FromString(s)
#endif
#endif

/* ModuleImport.proto */
static PyObject *__Pyx_ImportModule(const char *name);

/* TypeImport.proto */
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict);

/* InitStrings.proto */
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);

static PyObject *__pyx_f_8pyspades_10networking_7loaders_12PositionData_read(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12PositionData_write(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15OrientationData_read(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15OrientationData_write(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11WorldUpdate_read(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11WorldUpdate_write(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9InputData_read(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9InputData_write(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11WeaponInput_read(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11WeaponInput_write(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9HitPacket_read(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9HitPacket_write(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_5SetHP_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_5SetHP_write(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_13GrenadePacket_read(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_13GrenadePacket_write(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_7SetTool_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_7SetTool_write(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8SetColor_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8SetColor_write(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_14ExistingPlayer_read(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_14ExistingPlayer_write(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15ShortPlayerData_read(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15ShortPlayerData_write(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10MoveObject_read(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10MoveObject_write(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12CreatePlayer_read(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12CreatePlayer_write(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11BlockAction_read(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11BlockAction_write(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9BlockLine_read(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9BlockLine_write(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8CTFState_read(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8CTFState_write(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9Territory_read(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9Territory_write(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15ObjectTerritory_write(struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_7TCState_read(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_7TCState_write(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9StateData_read(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9StateData_write(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10KillAction_read(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10KillAction_write(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11ChatMessage_read(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11ChatMessage_write(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8MapStart_read(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8MapStart_write(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8MapChunk_read(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8MapChunk_write(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10PlayerLeft_read(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10PlayerLeft_write(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_16TerritoryCapture_read(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_16TerritoryCapture_write(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11ProgressBar_read(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11ProgressBar_write(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12IntelCapture_read(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12IntelCapture_write(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11IntelPickup_read(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11IntelPickup_write(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9IntelDrop_read(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9IntelDrop_write(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_7Restock_read(struct __pyx_obj_8pyspades_10networking_7loaders_Restock *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_7Restock_write(struct __pyx_obj_8pyspades_10networking_7loaders_Restock *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8FogColor_read(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8FogColor_write(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12WeaponReload_read(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12WeaponReload_write(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10ChangeTeam_read(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10ChangeTeam_write(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12ChangeWeapon_read(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12ChangeWeapon_write(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_13HandShakeInit_read(CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_13HandShakeInit_write(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15HandShakeReturn_read(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15HandShakeReturn_write(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_14VersionRequest_read(CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_14VersionRequest_write(struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15VersionResponse_read(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15VersionResponse_write(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10ServerInfo_read(CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10ServerInfo_write(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10ApiRequest_read(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10ApiRequest_write(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_21AuthenticationRequest_read(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_21AuthenticationRequest_write(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_16SetClientSetting_read(CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch); /* proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_16SetClientSetting_write(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch); /* proto*/

/* Module declarations from 'pyspades.networking.bytes' */
static PyTypeObject *__pyx_ptype_8pyspades_10networking_5bytes_ByteReader = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_5bytes_ByteWriter = 0;

/* Module declarations from 'pyspades.networking.loader' */
static PyTypeObject *__pyx_ptype_8pyspades_10networking_6loader_Loader = 0;

/* Module declarations from 'pyspades.networking.loaders' */
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_PositionData = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_OrientationData = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_WorldUpdate = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_InputData = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_WeaponInput = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_HitPacket = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_SetHP = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_GrenadePacket = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_SetTool = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_SetColor = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_ExistingPlayer = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_ShortPlayerData = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_MoveObject = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_CreatePlayer = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_BlockAction = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_BlockLine = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_CTFState = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_Territory = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_ObjectTerritory = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_TCState = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_StateData = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_KillAction = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_ChatMessage = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_MapStart = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_MapChunk = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_PlayerLeft = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_TerritoryCapture = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_ProgressBar = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_IntelCapture = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_IntelPickup = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_IntelDrop = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_Restock = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_FogColor = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_WeaponReload = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_ChangeTeam = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_ChangeWeapon = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_HandShakeInit = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_HandShakeReturn = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_VersionRequest = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_VersionResponse = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_ServerInfo = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_ApiRequest = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_AuthenticationRequest = 0;
static PyTypeObject *__pyx_ptype_8pyspades_10networking_7loaders_SetClientSetting = 0;
static CYTHON_INLINE void __pyx_f_8pyspades_10networking_7loaders_read_position(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, float *, float *, float *); /*proto*/
static CYTHON_INLINE void __pyx_f_8pyspades_10networking_7loaders_write_position(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, float, float, float); /*proto*/
static CYTHON_INLINE unsigned int __pyx_f_8pyspades_10networking_7loaders_read_color(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *); /*proto*/
static CYTHON_INLINE void __pyx_f_8pyspades_10networking_7loaders_write_color(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, unsigned int); /*proto*/
static CYTHON_INLINE PyObject *__pyx_f_8pyspades_10networking_7loaders_read_team_color(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *); /*proto*/
static CYTHON_INLINE void __pyx_f_8pyspades_10networking_7loaders_write_team_color(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, PyObject *); /*proto*/
#define __Pyx_MODULE_NAME "pyspades.networking.loaders"
int __pyx_module_is_main_pyspades__networking__loaders = 0;

/* Implementation of 'pyspades.networking.loaders' */
static PyObject *__pyx_builtin_range;
static PyObject *__pyx_builtin_xrange;
static const char __pyx_k_[] = "*";
static const char __pyx_k_i[] = "i";
static const char __pyx_k_x[] = "x";
static const char __pyx_k_y[] = "y";
static const char __pyx_k_z[] = "z";
static const char __pyx_k_Tr[] = "Tr";
static const char __pyx_k_id[] = "id";
static const char __pyx_k_main[] = "__main__";
static const char __pyx_k_read[] = "read";
static const char __pyx_k_team[] = "team";
static const char __pyx_k_test[] = "__test__";
static const char __pyx_k_count[] = "count";
static const char __pyx_k_modes[] = "modes";
static const char __pyx_k_range[] = "range";
static const char __pyx_k_write[] = "write";
static const char __pyx_k_decode[] = "decode";
static const char __pyx_k_encode[] = "encode";
static const char __pyx_k_import[] = "__import__";
static const char __pyx_k_xrange[] = "xrange";
static const char __pyx_k_TC_MODE[] = "TC_MODE";
static const char __pyx_k_id_iter[] = "id_iter";
static const char __pyx_k_players[] = "players";
static const char __pyx_k_CTF_MODE[] = "CTF_MODE";
static const char __pyx_k_settings[] = "settings";
static const char __pyx_k_get_bytes[] = "get_bytes";
static const char __pyx_k_itertools[] = "itertools";
static const char __pyx_k_OpenSpades[] = "OpenSpades";
static const char __pyx_k_maxplayers[] = "maxplayers";
static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
static const char __pyx_k_NEUTRAL_TEAM[] = "NEUTRAL_TEAM";
static const char __pyx_k_protocolversion[] = "protocolversion";
static const char __pyx_k_pyspades_common[] = "pyspades.common";
static const char __pyx_k_pyspades_constants[] = "pyspades.constants";
static PyObject *__pyx_n_s_;
static PyObject *__pyx_n_s_CTF_MODE;
static PyObject *__pyx_n_s_NEUTRAL_TEAM;
static PyObject *__pyx_n_s_OpenSpades;
static PyObject *__pyx_n_s_TC_MODE;
static PyObject *__pyx_n_s_Tr;
static PyObject *__pyx_n_s_count;
static PyObject *__pyx_n_s_decode;
static PyObject *__pyx_n_s_encode;
static PyObject *__pyx_n_s_get_bytes;
static PyObject *__pyx_n_s_i;
static PyObject *__pyx_n_s_id;
static PyObject *__pyx_n_s_id_iter;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_n_s_itertools;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_maxplayers;
static PyObject *__pyx_n_s_modes;
static PyObject *__pyx_n_s_players;
static PyObject *__pyx_n_s_protocolversion;
static PyObject *__pyx_n_s_pyspades_common;
static PyObject *__pyx_n_s_pyspades_constants;
static PyObject *__pyx_n_s_pyx_vtable;
static PyObject *__pyx_n_s_range;
static PyObject *__pyx_n_s_read;
static PyObject *__pyx_n_s_settings;
static PyObject *__pyx_n_s_team;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_write;
static PyObject *__pyx_n_s_x;
static PyObject *__pyx_n_s_xrange;
static PyObject *__pyx_n_s_y;
static PyObject *__pyx_n_s_z;
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12PositionData_set(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, PyObject *__pyx_v_pos); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12PositionData_2read(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12PositionData_4write(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12PositionData_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12PositionData_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12PositionData_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12PositionData_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12PositionData_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12PositionData_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15OrientationData_set(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, PyObject *__pyx_v_pos); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15OrientationData_2read(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15OrientationData_4write(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_read(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_2write(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_5items___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_5items_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_5items_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_read(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_2write(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_2up___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_2up_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_4down___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_4down_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_4left___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_4left_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_5right___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_5right_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_4jump___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_4jump_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_6crouch___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_6crouch_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_5sneak___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_5sneak_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_6sprint___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_6sprint_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_read(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_2write(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_7primary___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_7primary_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_9secondary___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_9secondary_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9HitPacket_read(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9HitPacket_2write(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9HitPacket_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9HitPacket_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9HitPacket_5value___get__(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9HitPacket_5value_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_2write(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_2hp___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_5SetHP_2hp_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_8not_fall___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8not_fall_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_read(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_2write(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_5value___get__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_5value_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8position___get__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8position_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8position_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8velocity___get__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7SetTool_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7SetTool_2write(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7SetTool_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_7SetTool_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7SetTool_5value___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_7SetTool_5value_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8SetColor_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8SetColor_2write(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8SetColor_5value___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8SetColor_5value_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8SetColor_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8SetColor_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_read(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4team___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4team_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_6weapon___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_6weapon_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4tool___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4tool_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_5kills___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_5kills_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_5color___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_5color_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4name___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4name_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4name_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_read(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_4team___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_4team_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_6weapon___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_6weapon_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_read(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_2write(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_11object_type___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_11object_type_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_5state___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_5state_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_read(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_2write(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_6weapon___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_6weapon_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4team___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4team_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4name___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4name_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4name_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_read(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_2write(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_5value___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_5value_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_read(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2write(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2x1___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2x1_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2y1___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2y1_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2z1___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2z1_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2x2___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2x2_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2y2___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2y2_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2z2___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2z2_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_read(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_2write(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_11team1_score___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_11team1_score_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_11team2_score___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_11team2_score_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_9cap_limit___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_9cap_limit_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_15team1_has_intel___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_15team1_has_intel_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_15team2_has_intel___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_15team2_has_intel_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_13team1_carrier___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_13team1_carrier_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_13team2_carrier___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_13team2_carrier_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9Territory_read(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9Territory_2write(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9Territory_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9Territory_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9Territory_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9Territory_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9Territory_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9Territory_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9Territory_5state___get__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9Territory_5state_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ObjectTerritory_write(struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ObjectTerritory_4item___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15ObjectTerritory_4item_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15ObjectTerritory_4item_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7TCState_read(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7TCState_2set_entities(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self, PyObject *__pyx_v_items); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7TCState_4write(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7TCState_11territories___get__(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_7TCState_11territories_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_7TCState_11territories_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_read(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_2write(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_9fog_color___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_9fog_color_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_9fog_color_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_11team1_color___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team1_color_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team1_color_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_11team2_color___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team2_color_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team2_color_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_5state___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_5state_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_5state_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_10team1_name___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team1_name_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team1_name_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_10team2_name___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team2_name_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team2_name_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10KillAction_read(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10KillAction_2write(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10KillAction_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10KillAction_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10KillAction_9killer_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10KillAction_9killer_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10KillAction_9kill_type___get__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10KillAction_9kill_type_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10KillAction_12respawn_time___get__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10KillAction_12respawn_time_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_read(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_9chat_type___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_9chat_type_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_5value___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_5value_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_5value_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8MapStart_read(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8MapStart_2write(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8MapStart_4size___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8MapStart_4size_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8MapChunk_read(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8MapChunk_2write(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8MapChunk_4data___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8MapChunk_4data_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8MapChunk_4data_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10PlayerLeft_read(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10PlayerLeft_2write(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10PlayerLeft_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10PlayerLeft_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_read(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_2write(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_12object_index___get__(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_12object_index_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_7winning___get__(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_7winning_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_5state___get__(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_5state_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_read(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_12object_index___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_12object_index_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_14capturing_team___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_14capturing_team_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_4rate___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_4rate_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_8progress___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_8progress_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_read(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_2write(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_7winning___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_7winning_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11IntelPickup_read(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11IntelPickup_2write(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11IntelPickup_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_11IntelPickup_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_read(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_2write(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7Restock_read(struct __pyx_obj_8pyspades_10networking_7loaders_Restock *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7Restock_2write(struct __pyx_obj_8pyspades_10networking_7loaders_Restock *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7Restock_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_Restock *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_7Restock_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_Restock *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8FogColor_read(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8FogColor_2write(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8FogColor_5color___get__(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_8FogColor_5color_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_read(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_2write(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_9clip_ammo___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_9clip_ammo_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_12reserve_ammo___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_12reserve_ammo_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_read(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_4team___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_4team_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_read(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_6weapon___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_6weapon_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13HandShakeInit_read(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13HandShakeInit_2write(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15HandShakeReturn_read(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15HandShakeReturn_2write(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15HandShakeReturn_7success___get__(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15HandShakeReturn_7success_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14VersionRequest_read(struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14VersionRequest_2write(struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_read(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_2write(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_6client___get__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_6client_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_6client_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7version___get__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7version_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7version_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7os_info___get__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7os_info_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7os_info_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_read(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_16protocol_version___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_16protocol_version_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7players___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7players_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10maxplayers___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10maxplayers_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10servername___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10servername_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10servername_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7mapname___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7mapname_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7mapname_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_read(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_9requestID___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_9requestID_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_12json_request___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_12json_request_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_12json_request_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_read(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_2write(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_5token___get__(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_13response_code___get__(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_13response_code_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_2write(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer); /* proto */
static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_8settings___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_8settings_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static int __pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_8settings_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self); /* proto */
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_PositionData(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_OrientationData(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_WorldUpdate(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_InputData(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_WeaponInput(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_HitPacket(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_SetHP(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_GrenadePacket(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_SetTool(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_SetColor(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ExistingPlayer(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ShortPlayerData(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_MoveObject(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_CreatePlayer(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_BlockAction(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_BlockLine(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_CTFState(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_Territory(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ObjectTerritory(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_TCState(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_StateData(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_KillAction(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ChatMessage(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_MapStart(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_MapChunk(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_PlayerLeft(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_TerritoryCapture(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ProgressBar(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_IntelCapture(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_IntelPickup(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_IntelDrop(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_Restock(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_FogColor(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_WeaponReload(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ChangeTeam(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ChangeWeapon(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_HandShakeInit(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_HandShakeReturn(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_VersionRequest(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_VersionResponse(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ServerInfo(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ApiRequest(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_AuthenticationRequest(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_SetClientSetting(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_int_0;
static PyObject *__pyx_int_1;
static PyObject *__pyx_int_2;
static PyObject *__pyx_int_3;
static PyObject *__pyx_int_4;
static PyObject *__pyx_int_5;
static PyObject *__pyx_int_6;
static PyObject *__pyx_int_7;
static PyObject *__pyx_int_8;
static PyObject *__pyx_int_9;
static PyObject *__pyx_int_10;
static PyObject *__pyx_int_11;
static PyObject *__pyx_int_12;
static PyObject *__pyx_int_13;
static PyObject *__pyx_int_14;
static PyObject *__pyx_int_15;
static PyObject *__pyx_int_16;
static PyObject *__pyx_int_17;
static PyObject *__pyx_int_18;
static PyObject *__pyx_int_19;
static PyObject *__pyx_int_20;
static PyObject *__pyx_int_21;
static PyObject *__pyx_int_22;
static PyObject *__pyx_int_23;
static PyObject *__pyx_int_24;
static PyObject *__pyx_int_25;
static PyObject *__pyx_int_26;
static PyObject *__pyx_int_27;
static PyObject *__pyx_int_28;
static PyObject *__pyx_int_29;
static PyObject *__pyx_int_30;
static PyObject *__pyx_int_31;
static PyObject *__pyx_int_32;
static PyObject *__pyx_int_33;
static PyObject *__pyx_int_34;
static PyObject *__pyx_int_50;
static PyObject *__pyx_int_51;
static PyObject *__pyx_int_53;
static PyObject *__pyx_int_54;

/* "pyspades/networking/loaders.pyx":23
 * from pyspades.networking.bytes cimport ByteReader, ByteWriter
 * 
 * cdef inline float limit(float a):             # <<<<<<<<<<<<<<
 *     if a > 512.0:
 *         return 512.0
 */

static CYTHON_INLINE float __pyx_f_8pyspades_10networking_7loaders_limit(float __pyx_v_a) {
  float __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("limit", 0);

  /* "pyspades/networking/loaders.pyx":24
 * 
 * cdef inline float limit(float a):
 *     if a > 512.0:             # <<<<<<<<<<<<<<
 *         return 512.0
 *     elif a < 0.0:
 */
  __pyx_t_1 = ((__pyx_v_a > 512.0) != 0);
  if (__pyx_t_1) {

    /* "pyspades/networking/loaders.pyx":25
 * cdef inline float limit(float a):
 *     if a > 512.0:
 *         return 512.0             # <<<<<<<<<<<<<<
 *     elif a < 0.0:
 *         return 0.0
 */
    __pyx_r = 512.0;
    goto __pyx_L0;

    /* "pyspades/networking/loaders.pyx":24
 * 
 * cdef inline float limit(float a):
 *     if a > 512.0:             # <<<<<<<<<<<<<<
 *         return 512.0
 *     elif a < 0.0:
 */
  }

  /* "pyspades/networking/loaders.pyx":26
 *     if a > 512.0:
 *         return 512.0
 *     elif a < 0.0:             # <<<<<<<<<<<<<<
 *         return 0.0
 *     return a
 */
  __pyx_t_1 = ((__pyx_v_a < 0.0) != 0);
  if (__pyx_t_1) {

    /* "pyspades/networking/loaders.pyx":27
 *         return 512.0
 *     elif a < 0.0:
 *         return 0.0             # <<<<<<<<<<<<<<
 *     return a
 * 
 */
    __pyx_r = 0.0;
    goto __pyx_L0;

    /* "pyspades/networking/loaders.pyx":26
 *     if a > 512.0:
 *         return 512.0
 *     elif a < 0.0:             # <<<<<<<<<<<<<<
 *         return 0.0
 *     return a
 */
  }

  /* "pyspades/networking/loaders.pyx":28
 *     elif a < 0.0:
 *         return 0.0
 *     return a             # <<<<<<<<<<<<<<
 * 
 * cdef inline void read_position(ByteReader reader, float * x, float * y,
 */
  __pyx_r = __pyx_v_a;
  goto __pyx_L0;

  /* "pyspades/networking/loaders.pyx":23
 * from pyspades.networking.bytes cimport ByteReader, ByteWriter
 * 
 * cdef inline float limit(float a):             # <<<<<<<<<<<<<<
 *     if a > 512.0:
 *         return 512.0
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":30
 *     return a
 * 
 * cdef inline void read_position(ByteReader reader, float * x, float * y,             # <<<<<<<<<<<<<<
 *                                float * z):
 *     x[0] = reader.readFloat(False)
 */

static CYTHON_INLINE void __pyx_f_8pyspades_10networking_7loaders_read_position(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, float *__pyx_v_x, float *__pyx_v_y, float *__pyx_v_z) {
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readFloat __pyx_t_2;
  __Pyx_RefNannySetupContext("read_position", 0);

  /* "pyspades/networking/loaders.pyx":32
 * cdef inline void read_position(ByteReader reader, float * x, float * y,
 *                                float * z):
 *     x[0] = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *     y[0] = reader.readFloat(False)
 *     z[0] = reader.readFloat(False)
 */
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_2); if (unlikely(__pyx_t_1 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 32, __pyx_L1_error)
  (__pyx_v_x[0]) = __pyx_t_1;

  /* "pyspades/networking/loaders.pyx":33
 *                                float * z):
 *     x[0] = reader.readFloat(False)
 *     y[0] = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *     z[0] = reader.readFloat(False)
 * 
 */
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_2); if (unlikely(__pyx_t_1 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 33, __pyx_L1_error)
  (__pyx_v_y[0]) = __pyx_t_1;

  /* "pyspades/networking/loaders.pyx":34
 *     x[0] = reader.readFloat(False)
 *     y[0] = reader.readFloat(False)
 *     z[0] = reader.readFloat(False)             # <<<<<<<<<<<<<<
 * 
 * cdef inline void write_position(ByteWriter reader, float x, float y, float z):
 */
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_2); if (unlikely(__pyx_t_1 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 34, __pyx_L1_error)
  (__pyx_v_z[0]) = __pyx_t_1;

  /* "pyspades/networking/loaders.pyx":30
 *     return a
 * 
 * cdef inline void read_position(ByteReader reader, float * x, float * y,             # <<<<<<<<<<<<<<
 *                                float * z):
 *     x[0] = reader.readFloat(False)
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_WriteUnraisable("pyspades.networking.loaders.read_position", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "pyspades/networking/loaders.pyx":36
 *     z[0] = reader.readFloat(False)
 * 
 * cdef inline void write_position(ByteWriter reader, float x, float y, float z):             # <<<<<<<<<<<<<<
 *     reader.writeFloat(x, False)
 *     reader.writeFloat(y, False)
 */

static CYTHON_INLINE void __pyx_f_8pyspades_10networking_7loaders_write_position(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, float __pyx_v_x, float __pyx_v_y, float __pyx_v_z) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeFloat __pyx_t_2;
  __Pyx_RefNannySetupContext("write_position", 0);

  /* "pyspades/networking/loaders.pyx":37
 * 
 * cdef inline void write_position(ByteWriter reader, float x, float y, float z):
 *     reader.writeFloat(x, False)             # <<<<<<<<<<<<<<
 *     reader.writeFloat(y, False)
 *     reader.writeFloat(z, False)
 */
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_x, 0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 37, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":38
 * cdef inline void write_position(ByteWriter reader, float x, float y, float z):
 *     reader.writeFloat(x, False)
 *     reader.writeFloat(y, False)             # <<<<<<<<<<<<<<
 *     reader.writeFloat(z, False)
 * 
 */
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_y, 0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":39
 *     reader.writeFloat(x, False)
 *     reader.writeFloat(y, False)
 *     reader.writeFloat(z, False)             # <<<<<<<<<<<<<<
 * 
 * cdef inline unsigned int read_color(ByteReader reader):
 */
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_z, 0, &__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 39, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":36
 *     z[0] = reader.readFloat(False)
 * 
 * cdef inline void write_position(ByteWriter reader, float x, float y, float z):             # <<<<<<<<<<<<<<
 *     reader.writeFloat(x, False)
 *     reader.writeFloat(y, False)
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_WriteUnraisable("pyspades.networking.loaders.write_position", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "pyspades/networking/loaders.pyx":41
 *     reader.writeFloat(z, False)
 * 
 * cdef inline unsigned int read_color(ByteReader reader):             # <<<<<<<<<<<<<<
 *     cdef unsigned char r, g, b
 *     b = reader.readByte(True)
 */

static CYTHON_INLINE unsigned int __pyx_f_8pyspades_10networking_7loaders_read_color(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  unsigned char __pyx_v_r;
  unsigned char __pyx_v_g;
  unsigned char __pyx_v_b;
  unsigned int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_2;
  __Pyx_RefNannySetupContext("read_color", 0);

  /* "pyspades/networking/loaders.pyx":43
 * cdef inline unsigned int read_color(ByteReader reader):
 *     cdef unsigned char r, g, b
 *     b = reader.readByte(True)             # <<<<<<<<<<<<<<
 *     g = reader.readByte(True)
 *     r = reader.readByte(True)
 */
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_2); if (unlikely(__pyx_t_1 == -2147483648)) __PYX_ERR(0, 43, __pyx_L1_error)
  __pyx_v_b = __pyx_t_1;

  /* "pyspades/networking/loaders.pyx":44
 *     cdef unsigned char r, g, b
 *     b = reader.readByte(True)
 *     g = reader.readByte(True)             # <<<<<<<<<<<<<<
 *     r = reader.readByte(True)
 *     return (b | (g << 8) | (r << 16))
 */
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_2); if (unlikely(__pyx_t_1 == -2147483648)) __PYX_ERR(0, 44, __pyx_L1_error)
  __pyx_v_g = __pyx_t_1;

  /* "pyspades/networking/loaders.pyx":45
 *     b = reader.readByte(True)
 *     g = reader.readByte(True)
 *     r = reader.readByte(True)             # <<<<<<<<<<<<<<
 *     return (b | (g << 8) | (r << 16))
 * 
 */
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_2); if (unlikely(__pyx_t_1 == -2147483648)) __PYX_ERR(0, 45, __pyx_L1_error)
  __pyx_v_r = __pyx_t_1;

  /* "pyspades/networking/loaders.pyx":46
 *     g = reader.readByte(True)
 *     r = reader.readByte(True)
 *     return (b | (g << 8) | (r << 16))             # <<<<<<<<<<<<<<
 * 
 * cdef inline void write_color(ByteWriter reader, unsigned int value):
 */
  __pyx_r = ((__pyx_v_b | (__pyx_v_g << 8)) | (__pyx_v_r << 16));
  goto __pyx_L0;

  /* "pyspades/networking/loaders.pyx":41
 *     reader.writeFloat(z, False)
 * 
 * cdef inline unsigned int read_color(ByteReader reader):             # <<<<<<<<<<<<<<
 *     cdef unsigned char r, g, b
 *     b = reader.readByte(True)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_WriteUnraisable("pyspades.networking.loaders.read_color", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":48
 *     return (b | (g << 8) | (r << 16))
 * 
 * cdef inline void write_color(ByteWriter reader, unsigned int value):             # <<<<<<<<<<<<<<
 *     reader.writeByte(value & 0xFF)
 *     reader.writeByte((value >> 8) & 0xFF)
 */

static CYTHON_INLINE void __pyx_f_8pyspades_10networking_7loaders_write_color(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, unsigned int __pyx_v_value) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write_color", 0);

  /* "pyspades/networking/loaders.pyx":49
 * 
 * cdef inline void write_color(ByteWriter reader, unsigned int value):
 *     reader.writeByte(value & 0xFF)             # <<<<<<<<<<<<<<
 *     reader.writeByte((value >> 8) & 0xFF)
 *     reader.writeByte((value >> 16) & 0xFF)
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, (__pyx_v_value & 0xFF), 0, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 49, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":50
 * cdef inline void write_color(ByteWriter reader, unsigned int value):
 *     reader.writeByte(value & 0xFF)
 *     reader.writeByte((value >> 8) & 0xFF)             # <<<<<<<<<<<<<<
 *     reader.writeByte((value >> 16) & 0xFF)
 * 
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, ((__pyx_v_value >> 8) & 0xFF), 0, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 50, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":51
 *     reader.writeByte(value & 0xFF)
 *     reader.writeByte((value >> 8) & 0xFF)
 *     reader.writeByte((value >> 16) & 0xFF)             # <<<<<<<<<<<<<<
 * 
 * import itertools
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, ((__pyx_v_value >> 16) & 0xFF), 0, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":48
 *     return (b | (g << 8) | (r << 16))
 * 
 * cdef inline void write_color(ByteWriter reader, unsigned int value):             # <<<<<<<<<<<<<<
 *     reader.writeByte(value & 0xFF)
 *     reader.writeByte((value >> 8) & 0xFF)
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_WriteUnraisable("pyspades.networking.loaders.write_color", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
}

/* "pyspades/networking/loaders.pyx":62
 *         float x, y, z
 * 
 *     def set(self, pos):             # <<<<<<<<<<<<<<
 *         cdef float x, y, z
 *         x, y, z = pos
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_1set(PyObject *__pyx_v_self, PyObject *__pyx_v_pos); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_1set(PyObject *__pyx_v_self, PyObject *__pyx_v_pos) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12PositionData_set(((struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *)__pyx_v_self), ((PyObject *)__pyx_v_pos));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12PositionData_set(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, PyObject *__pyx_v_pos) {
  float __pyx_v_x;
  float __pyx_v_y;
  float __pyx_v_z;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *(*__pyx_t_5)(PyObject *);
  float __pyx_t_6;
  float __pyx_t_7;
  float __pyx_t_8;
  __Pyx_RefNannySetupContext("set", 0);

  /* "pyspades/networking/loaders.pyx":64
 *     def set(self, pos):
 *         cdef float x, y, z
 *         x, y, z = pos             # <<<<<<<<<<<<<<
 *         self.x = x
 *         self.y = y
 */
  if ((likely(PyTuple_CheckExact(__pyx_v_pos))) || (PyList_CheckExact(__pyx_v_pos))) {
    PyObject* sequence = __pyx_v_pos;
    #if !CYTHON_COMPILING_IN_PYPY
    Py_ssize_t size = Py_SIZE(sequence);
    #else
    Py_ssize_t size = PySequence_Size(sequence);
    #endif
    if (unlikely(size != 3)) {
      if (size > 3) __Pyx_RaiseTooManyValuesError(3);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(0, 64, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0); 
      __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1); 
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 2); 
    } else {
      __pyx_t_1 = PyList_GET_ITEM(sequence, 0); 
      __pyx_t_2 = PyList_GET_ITEM(sequence, 1); 
      __pyx_t_3 = PyList_GET_ITEM(sequence, 2); 
    }
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_3);
    #else
    __pyx_t_1 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 64, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 64, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 64, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
  } else {
    Py_ssize_t index = -1;
    __pyx_t_4 = PyObject_GetIter(__pyx_v_pos); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 64, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = Py_TYPE(__pyx_t_4)->tp_iternext;
    index = 0; __pyx_t_1 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_1)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_1);
    index = 1; __pyx_t_2 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_2)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_2);
    index = 2; __pyx_t_3 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_3)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_3);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_4), 3) < 0) __PYX_ERR(0, 64, __pyx_L1_error)
    __pyx_t_5 = NULL;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    goto __pyx_L4_unpacking_done;
    __pyx_L3_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_5 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(0, 64, __pyx_L1_error)
    __pyx_L4_unpacking_done:;
  }
  __pyx_t_6 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_6 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 64, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7 = __pyx_PyFloat_AsFloat(__pyx_t_2); if (unlikely((__pyx_t_7 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 64, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_8 = __pyx_PyFloat_AsFloat(__pyx_t_3); if (unlikely((__pyx_t_8 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 64, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_x = __pyx_t_6;
  __pyx_v_y = __pyx_t_7;
  __pyx_v_z = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":65
 *         cdef float x, y, z
 *         x, y, z = pos
 *         self.x = x             # <<<<<<<<<<<<<<
 *         self.y = y
 *         self.z = z
 */
  __pyx_v_self->x = __pyx_v_x;

  /* "pyspades/networking/loaders.pyx":66
 *         x, y, z = pos
 *         self.x = x
 *         self.y = y             # <<<<<<<<<<<<<<
 *         self.z = z
 * 
 */
  __pyx_v_self->y = __pyx_v_y;

  /* "pyspades/networking/loaders.pyx":67
 *         self.x = x
 *         self.y = y
 *         self.z = z             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */
  __pyx_v_self->z = __pyx_v_z;

  /* "pyspades/networking/loaders.pyx":62
 *         float x, y, z
 * 
 *     def set(self, pos):             # <<<<<<<<<<<<<<
 *         cdef float x, y, z
 *         x, y, z = pos
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("pyspades.networking.loaders.PositionData.set", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":69
 *         self.z = z
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         read_position(reader, &self.x, &self.y, &self.z)
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_3read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12PositionData_read(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12PositionData_3read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 69, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 69, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":70
 * 
 *     cpdef read(self, ByteReader reader):
 *         read_position(reader, &self.x, &self.y, &self.z)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_f_8pyspades_10networking_7loaders_read_position(__pyx_v_reader, (&__pyx_v_self->x), (&__pyx_v_self->y), (&__pyx_v_self->z));

  /* "pyspades/networking/loaders.pyx":69
 *         self.z = z
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         read_position(reader, &self.x, &self.y, &self.z)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.PositionData.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_3read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_3read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 69, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12PositionData_2read(((struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12PositionData_2read(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_12PositionData_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 69, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.PositionData.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":72
 *         read_position(reader, &self.x, &self.y, &self.z)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         write_position(reader, self.x, self.y, self.z)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_5write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12PositionData_write(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12PositionData_5write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 72, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 72, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 72, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 72, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 72, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":73
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         write_position(reader, self.x, self.y, self.z)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 73, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":74
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         write_position(reader, self.x, self.y, self.z)             # <<<<<<<<<<<<<<
 * 
 * cdef class OrientationData(Loader):
 */
  __pyx_f_8pyspades_10networking_7loaders_write_position(__pyx_v_reader, __pyx_v_self->x, __pyx_v_self->y, __pyx_v_self->z);

  /* "pyspades/networking/loaders.pyx":72
 *         read_position(reader, &self.x, &self.y, &self.z)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         write_position(reader, self.x, self.y, self.z)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.PositionData.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_5write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_5write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 72, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12PositionData_4write(((struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12PositionData_4write(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_12PositionData_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.PositionData.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":60
 * 
 *     cdef public:
 *         float x, y, z             # <<<<<<<<<<<<<<
 * 
 *     def set(self, pos):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_1x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12PositionData_1x___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12PositionData_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.PositionData.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12PositionData_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12PositionData_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12PositionData_1x_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12PositionData_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 60, __pyx_L1_error)
  __pyx_v_self->x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.PositionData.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_1y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12PositionData_1y___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12PositionData_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.PositionData.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12PositionData_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12PositionData_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12PositionData_1y_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12PositionData_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 60, __pyx_L1_error)
  __pyx_v_self->y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.PositionData.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12PositionData_1z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12PositionData_1z___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12PositionData_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 60, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.PositionData.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12PositionData_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12PositionData_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12PositionData_1z_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12PositionData_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 60, __pyx_L1_error)
  __pyx_v_self->z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.PositionData.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":82
 *         float x, y, z
 * 
 *     def set(self, pos):             # <<<<<<<<<<<<<<
 *         cdef float x, y, z
 *         x, y, z = pos
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1set(PyObject *__pyx_v_self, PyObject *__pyx_v_pos); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1set(PyObject *__pyx_v_self, PyObject *__pyx_v_pos) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_set(((struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *)__pyx_v_self), ((PyObject *)__pyx_v_pos));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15OrientationData_set(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, PyObject *__pyx_v_pos) {
  float __pyx_v_x;
  float __pyx_v_y;
  float __pyx_v_z;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *(*__pyx_t_5)(PyObject *);
  float __pyx_t_6;
  float __pyx_t_7;
  float __pyx_t_8;
  __Pyx_RefNannySetupContext("set", 0);

  /* "pyspades/networking/loaders.pyx":84
 *     def set(self, pos):
 *         cdef float x, y, z
 *         x, y, z = pos             # <<<<<<<<<<<<<<
 *         self.x = x
 *         self.y = y
 */
  if ((likely(PyTuple_CheckExact(__pyx_v_pos))) || (PyList_CheckExact(__pyx_v_pos))) {
    PyObject* sequence = __pyx_v_pos;
    #if !CYTHON_COMPILING_IN_PYPY
    Py_ssize_t size = Py_SIZE(sequence);
    #else
    Py_ssize_t size = PySequence_Size(sequence);
    #endif
    if (unlikely(size != 3)) {
      if (size > 3) __Pyx_RaiseTooManyValuesError(3);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(0, 84, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (likely(PyTuple_CheckExact(sequence))) {
      __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0); 
      __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1); 
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 2); 
    } else {
      __pyx_t_1 = PyList_GET_ITEM(sequence, 0); 
      __pyx_t_2 = PyList_GET_ITEM(sequence, 1); 
      __pyx_t_3 = PyList_GET_ITEM(sequence, 2); 
    }
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_3);
    #else
    __pyx_t_1 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 84, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 84, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
  } else {
    Py_ssize_t index = -1;
    __pyx_t_4 = PyObject_GetIter(__pyx_v_pos); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 84, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = Py_TYPE(__pyx_t_4)->tp_iternext;
    index = 0; __pyx_t_1 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_1)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_1);
    index = 1; __pyx_t_2 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_2)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_2);
    index = 2; __pyx_t_3 = __pyx_t_5(__pyx_t_4); if (unlikely(!__pyx_t_3)) goto __pyx_L3_unpacking_failed;
    __Pyx_GOTREF(__pyx_t_3);
    if (__Pyx_IternextUnpackEndCheck(__pyx_t_5(__pyx_t_4), 3) < 0) __PYX_ERR(0, 84, __pyx_L1_error)
    __pyx_t_5 = NULL;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    goto __pyx_L4_unpacking_done;
    __pyx_L3_unpacking_failed:;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_5 = NULL;
    if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
    __PYX_ERR(0, 84, __pyx_L1_error)
    __pyx_L4_unpacking_done:;
  }
  __pyx_t_6 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_6 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 84, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7 = __pyx_PyFloat_AsFloat(__pyx_t_2); if (unlikely((__pyx_t_7 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 84, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_8 = __pyx_PyFloat_AsFloat(__pyx_t_3); if (unlikely((__pyx_t_8 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 84, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_x = __pyx_t_6;
  __pyx_v_y = __pyx_t_7;
  __pyx_v_z = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":85
 *         cdef float x, y, z
 *         x, y, z = pos
 *         self.x = x             # <<<<<<<<<<<<<<
 *         self.y = y
 *         self.z = z
 */
  __pyx_v_self->x = __pyx_v_x;

  /* "pyspades/networking/loaders.pyx":86
 *         x, y, z = pos
 *         self.x = x
 *         self.y = y             # <<<<<<<<<<<<<<
 *         self.z = z
 * 
 */
  __pyx_v_self->y = __pyx_v_y;

  /* "pyspades/networking/loaders.pyx":87
 *         self.x = x
 *         self.y = y
 *         self.z = z             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */
  __pyx_v_self->z = __pyx_v_z;

  /* "pyspades/networking/loaders.pyx":82
 *         float x, y, z
 * 
 *     def set(self, pos):             # <<<<<<<<<<<<<<
 *         cdef float x, y, z
 *         x, y, z = pos
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("pyspades.networking.loaders.OrientationData.set", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":89
 *         self.z = z
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.x = reader.readFloat(False)
 *         self.y = reader.readFloat(False)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_3read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15OrientationData_read(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  float __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readFloat __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 89, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_3read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 89, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 89, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":90
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.x = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *         self.y = reader.readFloat(False)
 *         self.z = reader.readFloat(False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.big_endian = 0;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 90, __pyx_L1_error)
  __pyx_v_self->x = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":91
 *     cpdef read(self, ByteReader reader):
 *         self.x = reader.readFloat(False)
 *         self.y = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *         self.z = reader.readFloat(False)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.big_endian = 0;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 91, __pyx_L1_error)
  __pyx_v_self->y = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":92
 *         self.x = reader.readFloat(False)
 *         self.y = reader.readFloat(False)
 *         self.z = reader.readFloat(False)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.big_endian = 0;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 92, __pyx_L1_error)
  __pyx_v_self->z = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":89
 *         self.z = z
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.x = reader.readFloat(False)
 *         self.y = reader.readFloat(False)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.OrientationData.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_3read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_3read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 89, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_2read(((struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15OrientationData_2read(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_15OrientationData_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 89, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.OrientationData.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":94
 *         self.z = reader.readFloat(False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeFloat(self.x, False)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_5write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15OrientationData_write(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeFloat __pyx_t_8;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 94, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_5write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 94, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 94, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":95
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeFloat(self.x, False)
 *         reader.writeFloat(self.y, False)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 95, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":96
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeFloat(self.x, False)             # <<<<<<<<<<<<<<
 *         reader.writeFloat(self.y, False)
 *         reader.writeFloat(self.z, False)
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_self->x, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 96, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":97
 *         reader.writeByte(self.id, True)
 *         reader.writeFloat(self.x, False)
 *         reader.writeFloat(self.y, False)             # <<<<<<<<<<<<<<
 *         reader.writeFloat(self.z, False)
 * 
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_self->y, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 97, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":98
 *         reader.writeFloat(self.x, False)
 *         reader.writeFloat(self.y, False)
 *         reader.writeFloat(self.z, False)             # <<<<<<<<<<<<<<
 * 
 * cdef class WorldUpdate(Loader):
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_self->z, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 98, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":94
 *         self.z = reader.readFloat(False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeFloat(self.x, False)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.OrientationData.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_5write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_5write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 94, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_4write(((struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15OrientationData_4write(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_15OrientationData_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 94, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.OrientationData.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":80
 * 
 *     cdef public:
 *         float x, y, z             # <<<<<<<<<<<<<<
 * 
 *     def set(self, pos):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1x___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 80, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.OrientationData.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1x_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 80, __pyx_L1_error)
  __pyx_v_self->x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.OrientationData.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1y___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 80, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.OrientationData.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1y_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 80, __pyx_L1_error)
  __pyx_v_self->y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.OrientationData.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1z___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 80, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.OrientationData.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1z_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15OrientationData_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 80, __pyx_L1_error)
  __pyx_v_self->z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.OrientationData.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":106
 *         list items
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         cdef list items = []
 *         self.items = items
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11WorldUpdate_read(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_items = 0;
  CYTHON_UNUSED long __pyx_v__;
  PyObject *__pyx_v_p_x = NULL;
  PyObject *__pyx_v_p_y = NULL;
  PyObject *__pyx_v_p_z = NULL;
  PyObject *__pyx_v_o_x = NULL;
  PyObject *__pyx_v_o_y = NULL;
  PyObject *__pyx_v_o_z = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  long __pyx_t_6;
  float __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readFloat __pyx_t_8;
  int __pyx_t_9;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 106, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 106, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 106, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 106, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 106, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 106, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":107
 * 
 *     cpdef read(self, ByteReader reader):
 *         cdef list items = []             # <<<<<<<<<<<<<<
 *         self.items = items
 *         for _ in range(32):
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_items = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":108
 *     cpdef read(self, ByteReader reader):
 *         cdef list items = []
 *         self.items = items             # <<<<<<<<<<<<<<
 *         for _ in range(32):
 *             p_x = reader.readFloat(False)
 */
  __Pyx_INCREF(__pyx_v_items);
  __Pyx_GIVEREF(__pyx_v_items);
  __Pyx_GOTREF(__pyx_v_self->items);
  __Pyx_DECREF(__pyx_v_self->items);
  __pyx_v_self->items = __pyx_v_items;

  /* "pyspades/networking/loaders.pyx":109
 *         cdef list items = []
 *         self.items = items
 *         for _ in range(32):             # <<<<<<<<<<<<<<
 *             p_x = reader.readFloat(False)
 *             p_y = reader.readFloat(False)
 */
  for (__pyx_t_6 = 0; __pyx_t_6 < 32; __pyx_t_6+=1) {
    __pyx_v__ = __pyx_t_6;

    /* "pyspades/networking/loaders.pyx":110
 *         self.items = items
 *         for _ in range(32):
 *             p_x = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *             p_y = reader.readFloat(False)
 *             p_z = reader.readFloat(False)
 */
    __pyx_t_8.__pyx_n = 1;
    __pyx_t_8.big_endian = 0;
    __pyx_t_7 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_8); if (unlikely(__pyx_t_7 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 110, __pyx_L1_error)
    __pyx_t_1 = PyFloat_FromDouble(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_p_x, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":111
 *         for _ in range(32):
 *             p_x = reader.readFloat(False)
 *             p_y = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *             p_z = reader.readFloat(False)
 *             o_x = reader.readFloat(False)
 */
    __pyx_t_8.__pyx_n = 1;
    __pyx_t_8.big_endian = 0;
    __pyx_t_7 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_8); if (unlikely(__pyx_t_7 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 111, __pyx_L1_error)
    __pyx_t_1 = PyFloat_FromDouble(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 111, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_p_y, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":112
 *             p_x = reader.readFloat(False)
 *             p_y = reader.readFloat(False)
 *             p_z = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *             o_x = reader.readFloat(False)
 *             o_y = reader.readFloat(False)
 */
    __pyx_t_8.__pyx_n = 1;
    __pyx_t_8.big_endian = 0;
    __pyx_t_7 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_8); if (unlikely(__pyx_t_7 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 112, __pyx_L1_error)
    __pyx_t_1 = PyFloat_FromDouble(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 112, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_p_z, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":113
 *             p_y = reader.readFloat(False)
 *             p_z = reader.readFloat(False)
 *             o_x = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *             o_y = reader.readFloat(False)
 *             o_z = reader.readFloat(False)
 */
    __pyx_t_8.__pyx_n = 1;
    __pyx_t_8.big_endian = 0;
    __pyx_t_7 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_8); if (unlikely(__pyx_t_7 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 113, __pyx_L1_error)
    __pyx_t_1 = PyFloat_FromDouble(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 113, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_o_x, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":114
 *             p_z = reader.readFloat(False)
 *             o_x = reader.readFloat(False)
 *             o_y = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *             o_z = reader.readFloat(False)
 *             items.append(((p_x, p_y, p_z), (o_x, o_y, o_z)))
 */
    __pyx_t_8.__pyx_n = 1;
    __pyx_t_8.big_endian = 0;
    __pyx_t_7 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_8); if (unlikely(__pyx_t_7 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 114, __pyx_L1_error)
    __pyx_t_1 = PyFloat_FromDouble(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_o_y, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":115
 *             o_x = reader.readFloat(False)
 *             o_y = reader.readFloat(False)
 *             o_z = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *             items.append(((p_x, p_y, p_z), (o_x, o_y, o_z)))
 * 
 */
    __pyx_t_8.__pyx_n = 1;
    __pyx_t_8.big_endian = 0;
    __pyx_t_7 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_8); if (unlikely(__pyx_t_7 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 115, __pyx_L1_error)
    __pyx_t_1 = PyFloat_FromDouble(__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 115, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_XDECREF_SET(__pyx_v_o_z, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":116
 *             o_y = reader.readFloat(False)
 *             o_z = reader.readFloat(False)
 *             items.append(((p_x, p_y, p_z), (o_x, o_y, o_z)))             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
    __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 116, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_v_p_x);
    __Pyx_GIVEREF(__pyx_v_p_x);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_p_x);
    __Pyx_INCREF(__pyx_v_p_y);
    __Pyx_GIVEREF(__pyx_v_p_y);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_p_y);
    __Pyx_INCREF(__pyx_v_p_z);
    __Pyx_GIVEREF(__pyx_v_p_z);
    PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_v_p_z);
    __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 116, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_v_o_x);
    __Pyx_GIVEREF(__pyx_v_o_x);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_o_x);
    __Pyx_INCREF(__pyx_v_o_y);
    __Pyx_GIVEREF(__pyx_v_o_y);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_o_y);
    __Pyx_INCREF(__pyx_v_o_z);
    __Pyx_GIVEREF(__pyx_v_o_z);
    PyTuple_SET_ITEM(__pyx_t_2, 2, __pyx_v_o_z);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 116, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_items, __pyx_t_3); if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(0, 116, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  }

  /* "pyspades/networking/loaders.pyx":106
 *         list items
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         cdef list items = []
 *         self.items = items
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.WorldUpdate.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_items);
  __Pyx_XDECREF(__pyx_v_p_x);
  __Pyx_XDECREF(__pyx_v_p_y);
  __Pyx_XDECREF(__pyx_v_p_z);
  __Pyx_XDECREF(__pyx_v_o_x);
  __Pyx_XDECREF(__pyx_v_o_y);
  __Pyx_XDECREF(__pyx_v_o_z);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 106, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_read(((struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_read(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_11WorldUpdate_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 106, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WorldUpdate.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":118
 *             items.append(((p_x, p_y, p_z), (o_x, o_y, o_z)))
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         cdef tuple item
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11WorldUpdate_write(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_item = 0;
  PyObject *__pyx_v_p_x = NULL;
  PyObject *__pyx_v_p_y = NULL;
  PyObject *__pyx_v_p_z = NULL;
  PyObject *__pyx_v_o_x = NULL;
  PyObject *__pyx_v_o_y = NULL;
  PyObject *__pyx_v_o_z = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *(*__pyx_t_11)(PyObject *);
  float __pyx_t_12;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeFloat __pyx_t_13;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 118, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 118, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":119
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         cdef tuple item
 *         for item in self.items:
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 119, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":121
 *         reader.writeByte(self.id, True)
 *         cdef tuple item
 *         for item in self.items:             # <<<<<<<<<<<<<<
 *             (p_x, p_y, p_z), (o_x, o_y, o_z) = item
 *             reader.writeFloat(p_x, False)
 */
  if (unlikely(__pyx_v_self->items == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 121, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_self->items; __Pyx_INCREF(__pyx_t_1); __pyx_t_8 = 0;
  for (;;) {
    if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_2); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 121, __pyx_L1_error)
    #else
    __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 121, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    #endif
    if (!(likely(PyTuple_CheckExact(__pyx_t_2))||((__pyx_t_2) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_t_2)->tp_name), 0))) __PYX_ERR(0, 121, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_item, ((PyObject*)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "pyspades/networking/loaders.pyx":122
 *         cdef tuple item
 *         for item in self.items:
 *             (p_x, p_y, p_z), (o_x, o_y, o_z) = item             # <<<<<<<<<<<<<<
 *             reader.writeFloat(p_x, False)
 *             reader.writeFloat(p_y, False)
 */
    if (likely(__pyx_v_item != Py_None)) {
      PyObject* sequence = __pyx_v_item;
      #if !CYTHON_COMPILING_IN_PYPY
      Py_ssize_t size = Py_SIZE(sequence);
      #else
      Py_ssize_t size = PySequence_Size(sequence);
      #endif
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 122, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      __pyx_t_2 = PyTuple_GET_ITEM(sequence, 0); 
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 1); 
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      #else
      __pyx_t_2 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __pyx_t_3 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      #endif
    } else {
      __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 122, __pyx_L1_error)
    }
    if ((likely(PyTuple_CheckExact(__pyx_t_2))) || (PyList_CheckExact(__pyx_t_2))) {
      PyObject* sequence = __pyx_t_2;
      #if !CYTHON_COMPILING_IN_PYPY
      Py_ssize_t size = Py_SIZE(sequence);
      #else
      Py_ssize_t size = PySequence_Size(sequence);
      #endif
      if (unlikely(size != 3)) {
        if (size > 3) __Pyx_RaiseTooManyValuesError(3);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 122, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); 
        __pyx_t_9 = PyTuple_GET_ITEM(sequence, 2); 
      } else {
        __pyx_t_5 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_4 = PyList_GET_ITEM(sequence, 1); 
        __pyx_t_9 = PyList_GET_ITEM(sequence, 2); 
      }
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_9);
      #else
      __pyx_t_5 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_9 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      #endif
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_10 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
      __pyx_t_11 = Py_TYPE(__pyx_t_10)->tp_iternext;
      index = 0; __pyx_t_5 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_5)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      index = 1; __pyx_t_4 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_4)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 2; __pyx_t_9 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_9)) goto __pyx_L5_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_9);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 3) < 0) __PYX_ERR(0, 122, __pyx_L1_error)
      __pyx_t_11 = NULL;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L6_unpacking_done;
      __pyx_L5_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_11 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 122, __pyx_L1_error)
      __pyx_L6_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_p_x, __pyx_t_5);
    __pyx_t_5 = 0;
    __Pyx_XDECREF_SET(__pyx_v_p_y, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_p_z, __pyx_t_9);
    __pyx_t_9 = 0;
    if ((likely(PyTuple_CheckExact(__pyx_t_3))) || (PyList_CheckExact(__pyx_t_3))) {
      PyObject* sequence = __pyx_t_3;
      #if !CYTHON_COMPILING_IN_PYPY
      Py_ssize_t size = Py_SIZE(sequence);
      #else
      Py_ssize_t size = PySequence_Size(sequence);
      #endif
      if (unlikely(size != 3)) {
        if (size > 3) __Pyx_RaiseTooManyValuesError(3);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(0, 122, __pyx_L1_error)
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      if (likely(PyTuple_CheckExact(sequence))) {
        __pyx_t_9 = PyTuple_GET_ITEM(sequence, 0); 
        __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); 
        __pyx_t_5 = PyTuple_GET_ITEM(sequence, 2); 
      } else {
        __pyx_t_9 = PyList_GET_ITEM(sequence, 0); 
        __pyx_t_4 = PyList_GET_ITEM(sequence, 1); 
        __pyx_t_5 = PyList_GET_ITEM(sequence, 2); 
      }
      __Pyx_INCREF(__pyx_t_9);
      __Pyx_INCREF(__pyx_t_4);
      __Pyx_INCREF(__pyx_t_5);
      #else
      __pyx_t_9 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_9);
      __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_5 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      #endif
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else {
      Py_ssize_t index = -1;
      __pyx_t_10 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 122, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_10);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_11 = Py_TYPE(__pyx_t_10)->tp_iternext;
      index = 0; __pyx_t_9 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_9)) goto __pyx_L7_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_9);
      index = 1; __pyx_t_4 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_4)) goto __pyx_L7_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_4);
      index = 2; __pyx_t_5 = __pyx_t_11(__pyx_t_10); if (unlikely(!__pyx_t_5)) goto __pyx_L7_unpacking_failed;
      __Pyx_GOTREF(__pyx_t_5);
      if (__Pyx_IternextUnpackEndCheck(__pyx_t_11(__pyx_t_10), 3) < 0) __PYX_ERR(0, 122, __pyx_L1_error)
      __pyx_t_11 = NULL;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      goto __pyx_L8_unpacking_done;
      __pyx_L7_unpacking_failed:;
      __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
      __pyx_t_11 = NULL;
      if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index);
      __PYX_ERR(0, 122, __pyx_L1_error)
      __pyx_L8_unpacking_done:;
    }
    __Pyx_XDECREF_SET(__pyx_v_o_x, __pyx_t_9);
    __pyx_t_9 = 0;
    __Pyx_XDECREF_SET(__pyx_v_o_y, __pyx_t_4);
    __pyx_t_4 = 0;
    __Pyx_XDECREF_SET(__pyx_v_o_z, __pyx_t_5);
    __pyx_t_5 = 0;

    /* "pyspades/networking/loaders.pyx":123
 *         for item in self.items:
 *             (p_x, p_y, p_z), (o_x, o_y, o_z) = item
 *             reader.writeFloat(p_x, False)             # <<<<<<<<<<<<<<
 *             reader.writeFloat(p_y, False)
 *             reader.writeFloat(p_z, False)
 */
    __pyx_t_12 = __pyx_PyFloat_AsFloat(__pyx_v_p_x); if (unlikely((__pyx_t_12 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 123, __pyx_L1_error)
    __pyx_t_13.__pyx_n = 1;
    __pyx_t_13.big_endian = 0;
    __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_t_12, 0, &__pyx_t_13); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 123, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "pyspades/networking/loaders.pyx":124
 *             (p_x, p_y, p_z), (o_x, o_y, o_z) = item
 *             reader.writeFloat(p_x, False)
 *             reader.writeFloat(p_y, False)             # <<<<<<<<<<<<<<
 *             reader.writeFloat(p_z, False)
 *             reader.writeFloat(o_x, False)
 */
    __pyx_t_12 = __pyx_PyFloat_AsFloat(__pyx_v_p_y); if (unlikely((__pyx_t_12 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 124, __pyx_L1_error)
    __pyx_t_13.__pyx_n = 1;
    __pyx_t_13.big_endian = 0;
    __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_t_12, 0, &__pyx_t_13); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 124, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "pyspades/networking/loaders.pyx":125
 *             reader.writeFloat(p_x, False)
 *             reader.writeFloat(p_y, False)
 *             reader.writeFloat(p_z, False)             # <<<<<<<<<<<<<<
 *             reader.writeFloat(o_x, False)
 *             reader.writeFloat(o_y, False)
 */
    __pyx_t_12 = __pyx_PyFloat_AsFloat(__pyx_v_p_z); if (unlikely((__pyx_t_12 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 125, __pyx_L1_error)
    __pyx_t_13.__pyx_n = 1;
    __pyx_t_13.big_endian = 0;
    __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_t_12, 0, &__pyx_t_13); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 125, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "pyspades/networking/loaders.pyx":126
 *             reader.writeFloat(p_y, False)
 *             reader.writeFloat(p_z, False)
 *             reader.writeFloat(o_x, False)             # <<<<<<<<<<<<<<
 *             reader.writeFloat(o_y, False)
 *             reader.writeFloat(o_z, False)
 */
    __pyx_t_12 = __pyx_PyFloat_AsFloat(__pyx_v_o_x); if (unlikely((__pyx_t_12 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 126, __pyx_L1_error)
    __pyx_t_13.__pyx_n = 1;
    __pyx_t_13.big_endian = 0;
    __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_t_12, 0, &__pyx_t_13); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 126, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "pyspades/networking/loaders.pyx":127
 *             reader.writeFloat(p_z, False)
 *             reader.writeFloat(o_x, False)
 *             reader.writeFloat(o_y, False)             # <<<<<<<<<<<<<<
 *             reader.writeFloat(o_z, False)
 * 
 */
    __pyx_t_12 = __pyx_PyFloat_AsFloat(__pyx_v_o_y); if (unlikely((__pyx_t_12 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 127, __pyx_L1_error)
    __pyx_t_13.__pyx_n = 1;
    __pyx_t_13.big_endian = 0;
    __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_t_12, 0, &__pyx_t_13); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 127, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "pyspades/networking/loaders.pyx":128
 *             reader.writeFloat(o_x, False)
 *             reader.writeFloat(o_y, False)
 *             reader.writeFloat(o_z, False)             # <<<<<<<<<<<<<<
 * 
 * cdef class InputData(Loader):
 */
    __pyx_t_12 = __pyx_PyFloat_AsFloat(__pyx_v_o_z); if (unlikely((__pyx_t_12 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 128, __pyx_L1_error)
    __pyx_t_13.__pyx_n = 1;
    __pyx_t_13.big_endian = 0;
    __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_t_12, 0, &__pyx_t_13); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 128, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "pyspades/networking/loaders.pyx":121
 *         reader.writeByte(self.id, True)
 *         cdef tuple item
 *         for item in self.items:             # <<<<<<<<<<<<<<
 *             (p_x, p_y, p_z), (o_x, o_y, o_z) = item
 *             reader.writeFloat(p_x, False)
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":118
 *             items.append(((p_x, p_y, p_z), (o_x, o_y, o_z)))
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         cdef tuple item
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("pyspades.networking.loaders.WorldUpdate.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_XDECREF(__pyx_v_p_x);
  __Pyx_XDECREF(__pyx_v_p_y);
  __Pyx_XDECREF(__pyx_v_p_z);
  __Pyx_XDECREF(__pyx_v_o_x);
  __Pyx_XDECREF(__pyx_v_o_y);
  __Pyx_XDECREF(__pyx_v_o_z);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 118, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_2write(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_11WorldUpdate_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WorldUpdate.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":104
 * 
 *     cdef public:
 *         list items             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_5items_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_5items_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_5items___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_5items___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->items);
  __pyx_r = __pyx_v_self->items;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_5items_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_5items_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_5items_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_5items_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyList_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 104, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->items);
  __Pyx_DECREF(__pyx_v_self->items);
  __pyx_v_self->items = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WorldUpdate.items.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_5items_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_5items_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_5items_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11WorldUpdate_5items_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->items);
  __Pyx_DECREF(__pyx_v_self->items);
  __pyx_v_self->items = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":136
 *         bint up, down, left, right, jump, crouch, sneak, sprint
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         cdef int firstByte = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9InputData_read(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  int __pyx_v_firstByte;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9InputData_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 136, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 136, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":137
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         cdef int firstByte = reader.readByte(True)
 *         self.up = (firstByte >> 0) & 1
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 137, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":138
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         cdef int firstByte = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.up = (firstByte >> 0) & 1
 *         self.down = (firstByte >> 1) & 1
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 138, __pyx_L1_error)
  __pyx_v_firstByte = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":139
 *         self.player_id = reader.readByte(True)
 *         cdef int firstByte = reader.readByte(True)
 *         self.up = (firstByte >> 0) & 1             # <<<<<<<<<<<<<<
 *         self.down = (firstByte >> 1) & 1
 *         self.left = (firstByte >> 2) & 1
 */
  __pyx_v_self->up = ((__pyx_v_firstByte >> 0) & 1);

  /* "pyspades/networking/loaders.pyx":140
 *         cdef int firstByte = reader.readByte(True)
 *         self.up = (firstByte >> 0) & 1
 *         self.down = (firstByte >> 1) & 1             # <<<<<<<<<<<<<<
 *         self.left = (firstByte >> 2) & 1
 *         self.right = (firstByte >> 3) & 1
 */
  __pyx_v_self->down = ((__pyx_v_firstByte >> 1) & 1);

  /* "pyspades/networking/loaders.pyx":141
 *         self.up = (firstByte >> 0) & 1
 *         self.down = (firstByte >> 1) & 1
 *         self.left = (firstByte >> 2) & 1             # <<<<<<<<<<<<<<
 *         self.right = (firstByte >> 3) & 1
 *         self.jump = (firstByte >> 4) & 1
 */
  __pyx_v_self->left = ((__pyx_v_firstByte >> 2) & 1);

  /* "pyspades/networking/loaders.pyx":142
 *         self.down = (firstByte >> 1) & 1
 *         self.left = (firstByte >> 2) & 1
 *         self.right = (firstByte >> 3) & 1             # <<<<<<<<<<<<<<
 *         self.jump = (firstByte >> 4) & 1
 *         self.crouch = (firstByte >> 5) & 1
 */
  __pyx_v_self->right = ((__pyx_v_firstByte >> 3) & 1);

  /* "pyspades/networking/loaders.pyx":143
 *         self.left = (firstByte >> 2) & 1
 *         self.right = (firstByte >> 3) & 1
 *         self.jump = (firstByte >> 4) & 1             # <<<<<<<<<<<<<<
 *         self.crouch = (firstByte >> 5) & 1
 *         self.sneak = (firstByte >> 6) & 1
 */
  __pyx_v_self->jump = ((__pyx_v_firstByte >> 4) & 1);

  /* "pyspades/networking/loaders.pyx":144
 *         self.right = (firstByte >> 3) & 1
 *         self.jump = (firstByte >> 4) & 1
 *         self.crouch = (firstByte >> 5) & 1             # <<<<<<<<<<<<<<
 *         self.sneak = (firstByte >> 6) & 1
 *         self.sprint = (firstByte >> 7) & 1
 */
  __pyx_v_self->crouch = ((__pyx_v_firstByte >> 5) & 1);

  /* "pyspades/networking/loaders.pyx":145
 *         self.jump = (firstByte >> 4) & 1
 *         self.crouch = (firstByte >> 5) & 1
 *         self.sneak = (firstByte >> 6) & 1             # <<<<<<<<<<<<<<
 *         self.sprint = (firstByte >> 7) & 1
 * 
 */
  __pyx_v_self->sneak = ((__pyx_v_firstByte >> 6) & 1);

  /* "pyspades/networking/loaders.pyx":146
 *         self.crouch = (firstByte >> 5) & 1
 *         self.sneak = (firstByte >> 6) & 1
 *         self.sprint = (firstByte >> 7) & 1             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_v_self->sprint = ((__pyx_v_firstByte >> 7) & 1);

  /* "pyspades/networking/loaders.pyx":136
 *         bint up, down, left, right, jump, crouch, sneak, sprint
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         cdef int firstByte = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 136, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_read(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_read(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_9InputData_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":148
 *         self.sprint = (firstByte >> 7) & 1
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9InputData_write(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  int __pyx_v_byte;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 148, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9InputData_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 148, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":149
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         cdef int byte
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 149, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":150
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         cdef int byte
 *         byte = (self.up | (self.down << 1) | (self.left << 2) |
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":154
 *         byte = (self.up | (self.down << 1) | (self.left << 2) |
 *             (self.right << 3) | (self.jump << 4) | (self.crouch << 5) |
 *             (self.sneak << 6) | (self.sprint << 7))             # <<<<<<<<<<<<<<
 *         reader.writeByte(byte, True)
 * 
 */
  __pyx_v_byte = (((((((__pyx_v_self->up | (__pyx_v_self->down << 1)) | (__pyx_v_self->left << 2)) | (__pyx_v_self->right << 3)) | (__pyx_v_self->jump << 4)) | (__pyx_v_self->crouch << 5)) | (__pyx_v_self->sneak << 6)) | (__pyx_v_self->sprint << 7));

  /* "pyspades/networking/loaders.pyx":155
 *             (self.right << 3) | (self.jump << 4) | (self.crouch << 5) |
 *             (self.sneak << 6) | (self.sprint << 7))
 *         reader.writeByte(byte, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class WeaponInput(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_byte, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":148
 *         self.sprint = (firstByte >> 7) & 1
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 148, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_2write(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_9InputData_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":133
 *     id = 3
 *     cdef public:
 *         int player_id             # <<<<<<<<<<<<<<
 *         bint up, down, left, right, jump, crouch, sneak, sprint
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 133, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":134
 *     cdef public:
 *         int player_id
 *         bint up, down, left, right, jump, crouch, sneak, sprint             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_2up_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_2up_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_2up___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_2up___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->up); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.up.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_2up_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_2up_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_2up_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_2up_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 134, __pyx_L1_error)
  __pyx_v_self->up = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.up.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_4down_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_4down_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_4down___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_4down___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->down); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.down.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_4down_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_4down_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_4down_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_4down_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 134, __pyx_L1_error)
  __pyx_v_self->down = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.down.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_4left_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_4left_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_4left___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_4left___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->left); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.left.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_4left_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_4left_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_4left_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_4left_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 134, __pyx_L1_error)
  __pyx_v_self->left = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.left.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_5right_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_5right_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_5right___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_5right___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->right); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.right.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_5right_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_5right_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_5right_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_5right_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 134, __pyx_L1_error)
  __pyx_v_self->right = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.right.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_4jump_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_4jump_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_4jump___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_4jump___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->jump); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.jump.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_4jump_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_4jump_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_4jump_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_4jump_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 134, __pyx_L1_error)
  __pyx_v_self->jump = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.jump.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_6crouch_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_6crouch_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_6crouch___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_6crouch___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->crouch); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.crouch.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_6crouch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_6crouch_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_6crouch_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_6crouch_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 134, __pyx_L1_error)
  __pyx_v_self->crouch = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.crouch.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_5sneak_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_5sneak_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_5sneak___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_5sneak___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->sneak); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.sneak.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_5sneak_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_5sneak_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_5sneak_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_5sneak_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 134, __pyx_L1_error)
  __pyx_v_self->sneak = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.sneak.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_6sprint_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9InputData_6sprint_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_6sprint___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9InputData_6sprint___get__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->sprint); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 134, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.sprint.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_6sprint_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9InputData_6sprint_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9InputData_6sprint_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9InputData_6sprint_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_InputData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 134, __pyx_L1_error)
  __pyx_v_self->sprint = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.InputData.sprint.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":164
 *         int player_id
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         cdef unsigned char byte = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11WeaponInput_read(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  unsigned char __pyx_v_byte;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 164, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 164, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":165
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         cdef unsigned char byte = reader.readByte(True)
 *         self.primary = byte & 1
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 165, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":166
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         cdef unsigned char byte = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.primary = byte & 1
 *         self.secondary = (byte >> 1) & 1
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 166, __pyx_L1_error)
  __pyx_v_byte = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":167
 *         self.player_id = reader.readByte(True)
 *         cdef unsigned char byte = reader.readByte(True)
 *         self.primary = byte & 1             # <<<<<<<<<<<<<<
 *         self.secondary = (byte >> 1) & 1
 * 
 */
  __pyx_v_self->primary = (__pyx_v_byte & 1);

  /* "pyspades/networking/loaders.pyx":168
 *         cdef unsigned char byte = reader.readByte(True)
 *         self.primary = byte & 1
 *         self.secondary = (byte >> 1) & 1             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_v_self->secondary = ((__pyx_v_byte >> 1) & 1);

  /* "pyspades/networking/loaders.pyx":164
 *         int player_id
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         cdef unsigned char byte = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponInput.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 164, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_read(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_read(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_11WeaponInput_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponInput.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":170
 *         self.secondary = (byte >> 1) & 1
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11WeaponInput_write(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  unsigned char __pyx_v_byte;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 170, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 170, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 170, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 170, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 170, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 170, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":171
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         cdef unsigned char byte = self.primary | (self.secondary << 1)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 171, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":172
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         cdef unsigned char byte = self.primary | (self.secondary << 1)
 *         reader.writeByte(byte, True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":173
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         cdef unsigned char byte = self.primary | (self.secondary << 1)             # <<<<<<<<<<<<<<
 *         reader.writeByte(byte, True)
 * 
 */
  __pyx_v_byte = (__pyx_v_self->primary | (__pyx_v_self->secondary << 1));

  /* "pyspades/networking/loaders.pyx":174
 *         reader.writeByte(self.player_id, True)
 *         cdef unsigned char byte = self.primary | (self.secondary << 1)
 *         reader.writeByte(byte, True)             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_byte, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":170
 *         self.secondary = (byte >> 1) & 1
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponInput.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 170, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_2write(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_11WeaponInput_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 170, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponInput.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":161
 * 
 *     cdef public:
 *         bint primary, secondary             # <<<<<<<<<<<<<<
 *         int player_id
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_7primary_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_7primary_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_7primary___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_7primary___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->primary); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponInput.primary.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_7primary_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_7primary_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_7primary_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_7primary_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 161, __pyx_L1_error)
  __pyx_v_self->primary = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponInput.primary.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_9secondary_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_9secondary_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_9secondary___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_9secondary___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->secondary); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponInput.secondary.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_9secondary_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_9secondary_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_9secondary_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_9secondary_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 161, __pyx_L1_error)
  __pyx_v_self->secondary = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponInput.secondary.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":162
 *     cdef public:
 *         bint primary, secondary
 *         int player_id             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponInput.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11WeaponInput_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 162, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponInput.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":183
 *         int player_id, value
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9HitPacket_read(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 183, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 183, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 183, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 183, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 183, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":184
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.value = reader.readByte(True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 184, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":185
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 185, __pyx_L1_error)
  __pyx_v_self->value = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":183
 *         int player_id, value
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.HitPacket.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 183, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9HitPacket_read(((struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9HitPacket_read(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_9HitPacket_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.HitPacket.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":187
 *         self.value = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9HitPacket_write(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 187, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 187, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 187, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 187, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 187, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 187, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":188
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.value, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 188, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 188, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 188, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":189
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.value, True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":190
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.value, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class SetHP(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->value, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":187
 *         self.value = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.HitPacket.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 187, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9HitPacket_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9HitPacket_2write(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_9HitPacket_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.HitPacket.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":181
 * 
 *     cdef public:
 *         int player_id, value             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9HitPacket_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9HitPacket_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.HitPacket.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9HitPacket_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9HitPacket_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9HitPacket_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9HitPacket_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 181, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.HitPacket.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_5value_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_5value_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9HitPacket_5value___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9HitPacket_5value___get__(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.HitPacket.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9HitPacket_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9HitPacket_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9HitPacket_5value_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9HitPacket_5value_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 181, __pyx_L1_error)
  __pyx_v_self->value = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.HitPacket.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":199
 *         float source_x, source_y, source_z
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.hp = reader.readByte(True)
 *         # FALL = 0, WEAPON = 1
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_5SetHP_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  float __pyx_t_8;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readFloat __pyx_t_9;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_5SetHP_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 199, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":200
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.hp = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         # FALL = 0, WEAPON = 1
 *         self.not_fall = reader.readByte(True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 200, __pyx_L1_error)
  __pyx_v_self->hp = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":202
 *         self.hp = reader.readByte(True)
 *         # FALL = 0, WEAPON = 1
 *         self.not_fall = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.source_x = reader.readFloat(False)
 *         self.source_y = reader.readFloat(False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 202, __pyx_L1_error)
  __pyx_v_self->not_fall = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":203
 *         # FALL = 0, WEAPON = 1
 *         self.not_fall = reader.readByte(True)
 *         self.source_x = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *         self.source_y = reader.readFloat(False)
 *         self.source_z = reader.readFloat(False)
 */
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 203, __pyx_L1_error)
  __pyx_v_self->source_x = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":204
 *         self.not_fall = reader.readByte(True)
 *         self.source_x = reader.readFloat(False)
 *         self.source_y = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *         self.source_z = reader.readFloat(False)
 * 
 */
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 204, __pyx_L1_error)
  __pyx_v_self->source_y = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":205
 *         self.source_x = reader.readFloat(False)
 *         self.source_y = reader.readFloat(False)
 *         self.source_z = reader.readFloat(False)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 205, __pyx_L1_error)
  __pyx_v_self->source_z = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":199
 *         float source_x, source_y, source_z
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.hp = reader.readByte(True)
 *         # FALL = 0, WEAPON = 1
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 199, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_5SetHP_read(((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_5SetHP_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":207
 *         self.source_z = reader.readFloat(False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.hp, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_5SetHP_write(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeFloat __pyx_t_8;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 207, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_5SetHP_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 207, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 207, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 207, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 207, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 207, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":208
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.hp, True)
 *         reader.writeByte(self.not_fall, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 208, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 208, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":209
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.hp, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.not_fall, True)
 *         reader.writeFloat(self.source_x, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->hp, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 209, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":210
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.hp, True)
 *         reader.writeByte(self.not_fall, True)             # <<<<<<<<<<<<<<
 *         reader.writeFloat(self.source_x, False)
 *         reader.writeFloat(self.source_y, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->not_fall, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":211
 *         reader.writeByte(self.hp, True)
 *         reader.writeByte(self.not_fall, True)
 *         reader.writeFloat(self.source_x, False)             # <<<<<<<<<<<<<<
 *         reader.writeFloat(self.source_y, False)
 *         reader.writeFloat(self.source_z, False)
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_self->source_x, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":212
 *         reader.writeByte(self.not_fall, True)
 *         reader.writeFloat(self.source_x, False)
 *         reader.writeFloat(self.source_y, False)             # <<<<<<<<<<<<<<
 *         reader.writeFloat(self.source_z, False)
 * 
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_self->source_y, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 212, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":213
 *         reader.writeFloat(self.source_x, False)
 *         reader.writeFloat(self.source_y, False)
 *         reader.writeFloat(self.source_z, False)             # <<<<<<<<<<<<<<
 * 
 * cdef class GrenadePacket(Loader):
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_self->source_z, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":207
 *         self.source_z = reader.readFloat(False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.hp, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 207, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_5SetHP_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_2write(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_5SetHP_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":196
 * 
 *     cdef public:
 *         int hp, not_fall             # <<<<<<<<<<<<<<
 *         float source_x, source_y, source_z
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_2hp_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_2hp_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_5SetHP_2hp___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_2hp___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->hp); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.hp.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_5SetHP_2hp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_5SetHP_2hp_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_5SetHP_2hp_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_5SetHP_2hp_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 196, __pyx_L1_error)
  __pyx_v_self->hp = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.hp.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_8not_fall_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_8not_fall_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8not_fall___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_8not_fall___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->not_fall); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.not_fall.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8not_fall_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8not_fall_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8not_fall_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8not_fall_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 196, __pyx_L1_error)
  __pyx_v_self->not_fall = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.not_fall.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":197
 *     cdef public:
 *         int hp, not_fall
 *         float source_x, source_y, source_z             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_x___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->source_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.source_x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_x_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 197, __pyx_L1_error)
  __pyx_v_self->source_x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.source_x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_y___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->source_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.source_y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_y_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 197, __pyx_L1_error)
  __pyx_v_self->source_y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.source_y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_z___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->source_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.source_z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_z_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_5SetHP_8source_z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 197, __pyx_L1_error)
  __pyx_v_self->source_z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.SetHP.source_z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":223
 *         tuple position, velocity
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readFloat(False)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_13GrenadePacket_read(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  float __pyx_t_8;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readFloat __pyx_t_9;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 223, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 223, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 223, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 223, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 223, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":224
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.value = reader.readFloat(False)
 *         self.position = (reader.readFloat(False), reader.readFloat(False),
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 224, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":225
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *         self.position = (reader.readFloat(False), reader.readFloat(False),
 *             reader.readFloat(False))
 */
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 225, __pyx_L1_error)
  __pyx_v_self->value = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":226
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readFloat(False)
 *         self.position = (reader.readFloat(False), reader.readFloat(False),             # <<<<<<<<<<<<<<
 *             reader.readFloat(False))
 *         self.velocity = (reader.readFloat(False), reader.readFloat(False),
 */
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 226, __pyx_L1_error)
  __pyx_t_1 = PyFloat_FromDouble(__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 226, __pyx_L1_error)
  __pyx_t_2 = PyFloat_FromDouble(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "pyspades/networking/loaders.pyx":227
 *         self.value = reader.readFloat(False)
 *         self.position = (reader.readFloat(False), reader.readFloat(False),
 *             reader.readFloat(False))             # <<<<<<<<<<<<<<
 *         self.velocity = (reader.readFloat(False), reader.readFloat(False),
 *             reader.readFloat(False))
 */
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 227, __pyx_L1_error)
  __pyx_t_3 = PyFloat_FromDouble(__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "pyspades/networking/loaders.pyx":226
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readFloat(False)
 *         self.position = (reader.readFloat(False), reader.readFloat(False),             # <<<<<<<<<<<<<<
 *             reader.readFloat(False))
 *         self.velocity = (reader.readFloat(False), reader.readFloat(False),
 */
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_1);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_GOTREF(__pyx_v_self->position);
  __Pyx_DECREF(__pyx_v_self->position);
  __pyx_v_self->position = ((PyObject*)__pyx_t_5);
  __pyx_t_5 = 0;

  /* "pyspades/networking/loaders.pyx":228
 *         self.position = (reader.readFloat(False), reader.readFloat(False),
 *             reader.readFloat(False))
 *         self.velocity = (reader.readFloat(False), reader.readFloat(False),             # <<<<<<<<<<<<<<
 *             reader.readFloat(False))
 * 
 */
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 228, __pyx_L1_error)
  __pyx_t_5 = PyFloat_FromDouble(__pyx_t_8); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 228, __pyx_L1_error)
  __pyx_t_3 = PyFloat_FromDouble(__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "pyspades/networking/loaders.pyx":229
 *             reader.readFloat(False))
 *         self.velocity = (reader.readFloat(False), reader.readFloat(False),
 *             reader.readFloat(False))             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 229, __pyx_L1_error)
  __pyx_t_2 = PyFloat_FromDouble(__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);

  /* "pyspades/networking/loaders.pyx":228
 *         self.position = (reader.readFloat(False), reader.readFloat(False),
 *             reader.readFloat(False))
 *         self.velocity = (reader.readFloat(False), reader.readFloat(False),             # <<<<<<<<<<<<<<
 *             reader.readFloat(False))
 * 
 */
  __pyx_t_1 = PyTuple_New(3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_1, 2, __pyx_t_2);
  __pyx_t_5 = 0;
  __pyx_t_3 = 0;
  __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->velocity);
  __Pyx_DECREF(__pyx_v_self->velocity);
  __pyx_v_self->velocity = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":223
 *         tuple position, velocity
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readFloat(False)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.GrenadePacket.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 223, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_read(((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_read(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_13GrenadePacket_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.GrenadePacket.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":231
 *             reader.readFloat(False))
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_13GrenadePacket_write(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_value = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeFloat __pyx_t_8;
  Py_ssize_t __pyx_t_9;
  float __pyx_t_10;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 231, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 231, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 231, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 231, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 231, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 231, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":232
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeFloat(self.value, False)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 232, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 232, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":233
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeFloat(self.value, False)
 *         for value in self.position:
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":234
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeFloat(self.value, False)             # <<<<<<<<<<<<<<
 *         for value in self.position:
 *             reader.writeFloat(value, False)
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_self->value, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":235
 *         reader.writeByte(self.player_id, True)
 *         reader.writeFloat(self.value, False)
 *         for value in self.position:             # <<<<<<<<<<<<<<
 *             reader.writeFloat(value, False)
 *         for value in self.velocity:
 */
  if (unlikely(__pyx_v_self->position == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 235, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_self->position; __Pyx_INCREF(__pyx_t_1); __pyx_t_9 = 0;
  for (;;) {
    if (__pyx_t_9 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_9); __Pyx_INCREF(__pyx_t_2); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(0, 235, __pyx_L1_error)
    #else
    __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 235, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "pyspades/networking/loaders.pyx":236
 *         reader.writeFloat(self.value, False)
 *         for value in self.position:
 *             reader.writeFloat(value, False)             # <<<<<<<<<<<<<<
 *         for value in self.velocity:
 *             reader.writeFloat(value, False)
 */
    __pyx_t_10 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_10 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 236, __pyx_L1_error)
    __pyx_t_8.__pyx_n = 1;
    __pyx_t_8.big_endian = 0;
    __pyx_t_2 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_t_10, 0, &__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "pyspades/networking/loaders.pyx":235
 *         reader.writeByte(self.player_id, True)
 *         reader.writeFloat(self.value, False)
 *         for value in self.position:             # <<<<<<<<<<<<<<
 *             reader.writeFloat(value, False)
 *         for value in self.velocity:
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":237
 *         for value in self.position:
 *             reader.writeFloat(value, False)
 *         for value in self.velocity:             # <<<<<<<<<<<<<<
 *             reader.writeFloat(value, False)
 * 
 */
  if (unlikely(__pyx_v_self->velocity == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 237, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_self->velocity; __Pyx_INCREF(__pyx_t_1); __pyx_t_9 = 0;
  for (;;) {
    if (__pyx_t_9 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_9); __Pyx_INCREF(__pyx_t_2); __pyx_t_9++; if (unlikely(0 < 0)) __PYX_ERR(0, 237, __pyx_L1_error)
    #else
    __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_9); __pyx_t_9++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_2);
    __pyx_t_2 = 0;

    /* "pyspades/networking/loaders.pyx":238
 *             reader.writeFloat(value, False)
 *         for value in self.velocity:
 *             reader.writeFloat(value, False)             # <<<<<<<<<<<<<<
 * 
 * cdef class SetTool(Loader):
 */
    __pyx_t_10 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_10 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 238, __pyx_L1_error)
    __pyx_t_8.__pyx_n = 1;
    __pyx_t_8.big_endian = 0;
    __pyx_t_2 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_t_10, 0, &__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 238, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "pyspades/networking/loaders.pyx":237
 *         for value in self.position:
 *             reader.writeFloat(value, False)
 *         for value in self.velocity:             # <<<<<<<<<<<<<<
 *             reader.writeFloat(value, False)
 * 
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":231
 *             reader.readFloat(False))
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.GrenadePacket.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_value);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 231, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_2write(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_13GrenadePacket_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.GrenadePacket.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":219
 * 
 *     cdef public:
 *         int player_id             # <<<<<<<<<<<<<<
 *         float value
 *         tuple position, velocity
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.GrenadePacket.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 219, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.GrenadePacket.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":220
 *     cdef public:
 *         int player_id
 *         float value             # <<<<<<<<<<<<<<
 *         tuple position, velocity
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_5value_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_5value_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_5value___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_5value___get__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.GrenadePacket.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_5value_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_5value_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 220, __pyx_L1_error)
  __pyx_v_self->value = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.GrenadePacket.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":221
 *         int player_id
 *         float value
 *         tuple position, velocity             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8position_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8position_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8position___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8position___get__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->position);
  __pyx_r = __pyx_v_self->position;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8position_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8position_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8position_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8position_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyTuple_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 221, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->position);
  __Pyx_DECREF(__pyx_v_self->position);
  __pyx_v_self->position = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.GrenadePacket.position.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8position_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8position_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8position_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8position_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->position);
  __Pyx_DECREF(__pyx_v_self->position);
  __pyx_v_self->position = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8velocity___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8velocity___get__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->velocity);
  __pyx_r = __pyx_v_self->velocity;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyTuple_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 221, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->velocity);
  __Pyx_DECREF(__pyx_v_self->velocity);
  __pyx_v_self->velocity = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.GrenadePacket.velocity.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->velocity);
  __Pyx_DECREF(__pyx_v_self->velocity);
  __pyx_v_self->velocity = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":246
 *         int player_id, value
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7SetTool_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_7SetTool_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 246, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7SetTool_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 246, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 246, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 246, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 246, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 246, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":247
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.value = reader.readByte(True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 247, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":248
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 248, __pyx_L1_error)
  __pyx_v_self->value = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":246
 *         int player_id, value
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetTool.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7SetTool_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7SetTool_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 246, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7SetTool_read(((struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7SetTool_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_7SetTool_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetTool.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":250
 *         self.value = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7SetTool_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_7SetTool_write(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 250, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7SetTool_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 250, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 250, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 250, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 250, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 250, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":251
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.value, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 251, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":252
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.value, True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":253
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.value, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class SetColor(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->value, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":250
 *         self.value = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetTool.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7SetTool_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7SetTool_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 250, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7SetTool_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7SetTool_2write(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_7SetTool_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetTool.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":244
 * 
 *     cdef public:
 *         int player_id, value             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7SetTool_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7SetTool_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7SetTool_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7SetTool_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetTool.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_7SetTool_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_7SetTool_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7SetTool_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_7SetTool_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 244, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.SetTool.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7SetTool_5value_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7SetTool_5value_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7SetTool_5value___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7SetTool_5value___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetTool.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_7SetTool_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_7SetTool_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7SetTool_5value_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_7SetTool_5value_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 244, __pyx_L1_error)
  __pyx_v_self->value = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.SetTool.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":261
 *         unsigned int value, player_id
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.value = read_color(reader)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8SetColor_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8SetColor_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8SetColor_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 261, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 261, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 261, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 261, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 261, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":262
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.value = read_color(reader)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 262, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":263
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.value = read_color(reader)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_v_self->value = __pyx_f_8pyspades_10networking_7loaders_read_color(__pyx_v_reader);

  /* "pyspades/networking/loaders.pyx":261
 *         unsigned int value, player_id
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.value = read_color(reader)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetColor.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8SetColor_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8SetColor_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 261, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8SetColor_read(((struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8SetColor_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_8SetColor_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 261, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetColor.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":265
 *         self.value = read_color(reader)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8SetColor_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8SetColor_write(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 265, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8SetColor_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 265, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 265, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 265, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 265, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 265, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":266
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         write_color(reader, self.value)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 266, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 266, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":267
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         write_color(reader, self.value)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":268
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         write_color(reader, self.value)             # <<<<<<<<<<<<<<
 * 
 * cdef class ExistingPlayer(Loader):
 */
  __pyx_f_8pyspades_10networking_7loaders_write_color(__pyx_v_reader, __pyx_v_self->value);

  /* "pyspades/networking/loaders.pyx":265
 *         self.value = read_color(reader)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetColor.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8SetColor_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8SetColor_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 265, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8SetColor_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8SetColor_2write(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_8SetColor_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetColor.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":259
 * 
 *     cdef public:
 *         unsigned int value, player_id             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8SetColor_5value_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8SetColor_5value_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8SetColor_5value___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8SetColor_5value___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetColor.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8SetColor_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8SetColor_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8SetColor_5value_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8SetColor_5value_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 259, __pyx_L1_error)
  __pyx_v_self->value = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.SetColor.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8SetColor_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8SetColor_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8SetColor_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8SetColor_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetColor.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8SetColor_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8SetColor_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8SetColor_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8SetColor_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 259, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.SetColor.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":278
 *         object name
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.team = reader.readByte(False)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_14ExistingPlayer_read(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  PY_LONG_LONG __pyx_t_8;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readInt __pyx_t_9;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 278, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 278, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 278, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 278, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 278, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 278, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":279
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.team = reader.readByte(False)
 *         self.weapon = reader.readByte(True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 279, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":280
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.team = reader.readByte(False)             # <<<<<<<<<<<<<<
 *         self.weapon = reader.readByte(True)
 *         self.tool = reader.readByte(True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 0;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 280, __pyx_L1_error)
  __pyx_v_self->team = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":281
 *         self.player_id = reader.readByte(True)
 *         self.team = reader.readByte(False)
 *         self.weapon = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.tool = reader.readByte(True)
 *         self.kills = reader.readInt(True, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 281, __pyx_L1_error)
  __pyx_v_self->weapon = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":282
 *         self.team = reader.readByte(False)
 *         self.weapon = reader.readByte(True)
 *         self.tool = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.kills = reader.readInt(True, False)
 *         self.color = read_color(reader)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 282, __pyx_L1_error)
  __pyx_v_self->tool = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":283
 *         self.weapon = reader.readByte(True)
 *         self.tool = reader.readByte(True)
 *         self.kills = reader.readInt(True, False)             # <<<<<<<<<<<<<<
 *         self.color = read_color(reader)
 *         self.name = decode(reader.readString()) # 16 bytes
 */
  __pyx_t_9.__pyx_n = 2;
  __pyx_t_9.__pyx_unsigned = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == -9223372036854775808LL)) __PYX_ERR(0, 283, __pyx_L1_error)
  __pyx_v_self->kills = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":284
 *         self.tool = reader.readByte(True)
 *         self.kills = reader.readInt(True, False)
 *         self.color = read_color(reader)             # <<<<<<<<<<<<<<
 *         self.name = decode(reader.readString()) # 16 bytes
 * 
 */
  __pyx_v_self->color = __pyx_f_8pyspades_10networking_7loaders_read_color(__pyx_v_reader);

  /* "pyspades/networking/loaders.pyx":285
 *         self.kills = reader.readInt(True, False)
 *         self.color = read_color(reader)
 *         self.name = decode(reader.readString()) # 16 bytes             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_decode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readString(__pyx_v_reader, 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (!__pyx_t_5) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 285, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 285, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 285, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else
    #endif
    {
      __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 285, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL;
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 285, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":278
 *         object name
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.team = reader.readByte(False)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 278, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_read(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_read(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_14ExistingPlayer_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 278, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":287
 *         self.name = decode(reader.readString()) # 16 bytes
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_14ExistingPlayer_write(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeInt __pyx_t_8;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 287, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 287, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 287, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 287, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 287, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":288
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.team, False)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":289
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.team, False)
 *         reader.writeByte(self.weapon, True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 289, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":290
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.team, False)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.weapon, True)
 *         reader.writeByte(self.tool, True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->team, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 290, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":291
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.team, False)
 *         reader.writeByte(self.weapon, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.tool, True)
 *         reader.writeInt(self.kills, True, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->weapon, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":292
 *         reader.writeByte(self.team, False)
 *         reader.writeByte(self.weapon, True)
 *         reader.writeByte(self.tool, True)             # <<<<<<<<<<<<<<
 *         reader.writeInt(self.kills, True, False)
 *         write_color(reader, self.color)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->tool, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":293
 *         reader.writeByte(self.weapon, True)
 *         reader.writeByte(self.tool, True)
 *         reader.writeInt(self.kills, True, False)             # <<<<<<<<<<<<<<
 *         write_color(reader, self.color)
 *         reader.writeString(encode(self.name))
 */
  __pyx_t_8.__pyx_n = 2;
  __pyx_t_8.__pyx_unsigned = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeInt(__pyx_v_reader, __pyx_v_self->kills, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":294
 *         reader.writeByte(self.tool, True)
 *         reader.writeInt(self.kills, True, False)
 *         write_color(reader, self.color)             # <<<<<<<<<<<<<<
 *         reader.writeString(encode(self.name))
 * 
 */
  __pyx_f_8pyspades_10networking_7loaders_write_color(__pyx_v_reader, __pyx_v_self->color);

  /* "pyspades/networking/loaders.pyx":295
 *         reader.writeInt(self.kills, True, False)
 *         write_color(reader, self.color)
 *         reader.writeString(encode(self.name))             # <<<<<<<<<<<<<<
 * 
 * cdef class ShortPlayerData(Loader):
 */
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (!__pyx_t_3) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_self->name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 295, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_self->name};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 295, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_self->name};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 295, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    {
      __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 295, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
      __Pyx_INCREF(__pyx_v_self->name);
      __Pyx_GIVEREF(__pyx_v_self->name);
      PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_self->name);
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 295, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeString(__pyx_v_reader, __pyx_t_1, 0, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyspades/networking/loaders.pyx":287
 *         self.name = decode(reader.readString()) # 16 bytes
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 287, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_14ExistingPlayer_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":274
 * 
 *     cdef public:
 *         int player_id, team, weapon, tool, kills             # <<<<<<<<<<<<<<
 *         unsigned int color
 *         object name
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 274, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4team_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4team_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4team___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4team___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->team); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.team.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4team_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4team_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4team_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4team_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 274, __pyx_L1_error)
  __pyx_v_self->team = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.team.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_6weapon_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_6weapon_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_6weapon___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_6weapon___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->weapon); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.weapon.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_6weapon_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_6weapon_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_6weapon_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_6weapon_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 274, __pyx_L1_error)
  __pyx_v_self->weapon = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.weapon.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4tool_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4tool_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4tool___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4tool___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->tool); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.tool.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4tool_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4tool_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4tool_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4tool_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 274, __pyx_L1_error)
  __pyx_v_self->tool = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.tool.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_5kills_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_5kills_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_5kills___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_5kills___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->kills); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.kills.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_5kills_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_5kills_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_5kills_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_5kills_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 274, __pyx_L1_error)
  __pyx_v_self->kills = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.kills.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":275
 *     cdef public:
 *         int player_id, team, weapon, tool, kills
 *         unsigned int color             # <<<<<<<<<<<<<<
 *         object name
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_5color_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_5color_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_5color___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_5color___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->color); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.color.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_5color_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_5color_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_5color_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_5color_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 275, __pyx_L1_error)
  __pyx_v_self->color = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ExistingPlayer.color.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":276
 *         int player_id, team, weapon, tool, kills
 *         unsigned int color
 *         object name             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4name___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4name___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->name);
  __pyx_r = __pyx_v_self->name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4name_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4name_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_INCREF(__pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_v_value;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4name_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4name_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4name_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_14ExistingPlayer_4name_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = Py_None;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":303
 *         int player_id, team, weapon
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.team = reader.readByte(False)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15ShortPlayerData_read(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 303, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 303, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 303, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 303, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 303, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":304
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.team = reader.readByte(False)
 *         self.weapon = reader.readByte(True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 304, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":305
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.team = reader.readByte(False)             # <<<<<<<<<<<<<<
 *         self.weapon = reader.readByte(True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 0;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 305, __pyx_L1_error)
  __pyx_v_self->team = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":306
 *         self.player_id = reader.readByte(True)
 *         self.team = reader.readByte(False)
 *         self.weapon = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 306, __pyx_L1_error)
  __pyx_v_self->weapon = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":303
 *         int player_id, team, weapon
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.team = reader.readByte(False)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ShortPlayerData.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 303, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_read(((struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_read(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_15ShortPlayerData_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 303, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ShortPlayerData.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":308
 *         self.weapon = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15ShortPlayerData_write(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 308, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 308, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 308, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 308, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 308, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":309
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.team, False)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 309, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":310
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.team, False)
 *         reader.writeByte(self.weapon, True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":311
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.team, False)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.weapon, True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->team, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":312
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.team, False)
 *         reader.writeByte(self.weapon, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class MoveObject(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->weapon, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 312, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":308
 *         self.weapon = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ShortPlayerData.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 308, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_15ShortPlayerData_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ShortPlayerData.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":301
 * 
 *     cdef public:
 *         int player_id, team, weapon             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ShortPlayerData.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 301, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ShortPlayerData.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_4team_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_4team_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_4team___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_4team___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->team); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ShortPlayerData.team.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_4team_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_4team_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_4team_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_4team_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 301, __pyx_L1_error)
  __pyx_v_self->team = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ShortPlayerData.team.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_6weapon_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_6weapon_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_6weapon___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_6weapon___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->weapon); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ShortPlayerData.weapon.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_6weapon_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_6weapon_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_6weapon_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15ShortPlayerData_6weapon_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 301, __pyx_L1_error)
  __pyx_v_self->weapon = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ShortPlayerData.weapon.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":321
 *         float x, y, z
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.object_type = reader.readByte(True)
 *         self.state = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10MoveObject_read(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  float __pyx_t_8;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readFloat __pyx_t_9;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 321, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 321, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":322
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.object_type = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.state = reader.readByte(True)
 *         self.x = reader.readFloat(False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 322, __pyx_L1_error)
  __pyx_v_self->object_type = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":323
 *     cpdef read(self, ByteReader reader):
 *         self.object_type = reader.readByte(True)
 *         self.state = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.x = reader.readFloat(False)
 *         self.y = reader.readFloat(False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 323, __pyx_L1_error)
  __pyx_v_self->state = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":324
 *         self.object_type = reader.readByte(True)
 *         self.state = reader.readByte(True)
 *         self.x = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *         self.y = reader.readFloat(False)
 *         self.z = reader.readFloat(False)
 */
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 324, __pyx_L1_error)
  __pyx_v_self->x = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":325
 *         self.state = reader.readByte(True)
 *         self.x = reader.readFloat(False)
 *         self.y = reader.readFloat(False)             # <<<<<<<<<<<<<<
 *         self.z = reader.readFloat(False)
 * 
 */
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 325, __pyx_L1_error)
  __pyx_v_self->y = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":326
 *         self.x = reader.readFloat(False)
 *         self.y = reader.readFloat(False)
 *         self.z = reader.readFloat(False)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 326, __pyx_L1_error)
  __pyx_v_self->z = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":321
 *         float x, y, z
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.object_type = reader.readByte(True)
 *         self.state = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 321, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_read(((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_read(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_10MoveObject_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 321, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":328
 *         self.z = reader.readFloat(False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.object_type, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10MoveObject_write(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeFloat __pyx_t_8;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 328, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 328, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 328, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 328, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 328, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":329
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.object_type, True)
 *         reader.writeByte(self.state, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":330
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.object_type, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.state, True)
 *         reader.writeFloat(self.x, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->object_type, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":331
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.object_type, True)
 *         reader.writeByte(self.state, True)             # <<<<<<<<<<<<<<
 *         reader.writeFloat(self.x, False)
 *         reader.writeFloat(self.y, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->state, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":332
 *         reader.writeByte(self.object_type, True)
 *         reader.writeByte(self.state, True)
 *         reader.writeFloat(self.x, False)             # <<<<<<<<<<<<<<
 *         reader.writeFloat(self.y, False)
 *         reader.writeFloat(self.z, False)
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_self->x, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":333
 *         reader.writeByte(self.state, True)
 *         reader.writeFloat(self.x, False)
 *         reader.writeFloat(self.y, False)             # <<<<<<<<<<<<<<
 *         reader.writeFloat(self.z, False)
 * 
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_self->y, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":334
 *         reader.writeFloat(self.x, False)
 *         reader.writeFloat(self.y, False)
 *         reader.writeFloat(self.z, False)             # <<<<<<<<<<<<<<
 * 
 * cdef class CreatePlayer(Loader):
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_self->z, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":328
 *         self.z = reader.readFloat(False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.object_type, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 328, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_2write(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_10MoveObject_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":318
 * 
 *     cdef public:
 *         unsigned int object_type, state             # <<<<<<<<<<<<<<
 *         float x, y, z
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_11object_type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_11object_type_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_11object_type___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_11object_type___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->object_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.object_type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_11object_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_11object_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_11object_type_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_11object_type_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 318, __pyx_L1_error)
  __pyx_v_self->object_type = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.object_type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_5state_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_5state_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_5state___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_5state___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.state.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_5state_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_5state_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_5state_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_5state_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 318, __pyx_L1_error)
  __pyx_v_self->state = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.state.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":319
 *     cdef public:
 *         unsigned int object_type, state
 *         float x, y, z             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1x___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 319, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1x_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 319, __pyx_L1_error)
  __pyx_v_self->x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1y___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 319, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1y_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 319, __pyx_L1_error)
  __pyx_v_self->y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1z___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 319, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1z_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10MoveObject_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 319, __pyx_L1_error)
  __pyx_v_self->z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.MoveObject.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":345
 *         object name
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.weapon = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12CreatePlayer_read(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 345, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 345, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 345, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 345, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 345, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 345, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":346
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.weapon = reader.readByte(True)
 *         self.team = reader.readByte(False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 346, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":347
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.weapon = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.team = reader.readByte(False)
 *         read_position(reader, &self.x, &self.y, &self.z)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 347, __pyx_L1_error)
  __pyx_v_self->weapon = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":348
 *         self.player_id = reader.readByte(True)
 *         self.weapon = reader.readByte(True)
 *         self.team = reader.readByte(False)             # <<<<<<<<<<<<<<
 *         read_position(reader, &self.x, &self.y, &self.z)
 *         self.name = decode(reader.readString())
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 0;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 348, __pyx_L1_error)
  __pyx_v_self->team = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":349
 *         self.weapon = reader.readByte(True)
 *         self.team = reader.readByte(False)
 *         read_position(reader, &self.x, &self.y, &self.z)             # <<<<<<<<<<<<<<
 *         self.name = decode(reader.readString())
 * 
 */
  __pyx_f_8pyspades_10networking_7loaders_read_position(__pyx_v_reader, (&__pyx_v_self->x), (&__pyx_v_self->y), (&__pyx_v_self->z));

  /* "pyspades/networking/loaders.pyx":350
 *         self.team = reader.readByte(False)
 *         read_position(reader, &self.x, &self.y, &self.z)
 *         self.name = decode(reader.readString())             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_decode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readString(__pyx_v_reader, 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (!__pyx_t_5) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 350, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 350, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 350, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else
    #endif
    {
      __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 350, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL;
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 350, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":345
 *         object name
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.weapon = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 345, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_read(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_read(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_12CreatePlayer_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":352
 *         self.name = decode(reader.readString())
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12CreatePlayer_write(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 352, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 352, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 352, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 352, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 352, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 352, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":353
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.weapon, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 353, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":354
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.weapon, True)
 *         reader.writeByte(self.team, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":355
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.weapon, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.team, False)
 *         write_position(reader, self.x, self.y, self.z)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->weapon, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 355, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":356
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.weapon, True)
 *         reader.writeByte(self.team, False)             # <<<<<<<<<<<<<<
 *         write_position(reader, self.x, self.y, self.z)
 *         reader.writeString(encode(self.name))
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->team, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":357
 *         reader.writeByte(self.weapon, True)
 *         reader.writeByte(self.team, False)
 *         write_position(reader, self.x, self.y, self.z)             # <<<<<<<<<<<<<<
 *         reader.writeString(encode(self.name))
 * 
 */
  __pyx_f_8pyspades_10networking_7loaders_write_position(__pyx_v_reader, __pyx_v_self->x, __pyx_v_self->y, __pyx_v_self->z);

  /* "pyspades/networking/loaders.pyx":358
 *         reader.writeByte(self.team, False)
 *         write_position(reader, self.x, self.y, self.z)
 *         reader.writeString(encode(self.name))             # <<<<<<<<<<<<<<
 * 
 * cdef class BlockAction(Loader):
 */
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (!__pyx_t_3) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_self->name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 358, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_self->name};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 358, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_self->name};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 358, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    {
      __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 358, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
      __Pyx_INCREF(__pyx_v_self->name);
      __Pyx_GIVEREF(__pyx_v_self->name);
      PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_self->name);
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 358, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeString(__pyx_v_reader, __pyx_t_1, 0, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyspades/networking/loaders.pyx":352
 *         self.name = decode(reader.readString())
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 352, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_2write(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_12CreatePlayer_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":340
 * 
 *     cdef public:
 *         unsigned int player_id, weapon             # <<<<<<<<<<<<<<
 *         int team
 *         float x, y, z
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 340, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_6weapon_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_6weapon_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_6weapon___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_6weapon___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->weapon); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.weapon.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_6weapon_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_6weapon_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_6weapon_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_6weapon_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 340, __pyx_L1_error)
  __pyx_v_self->weapon = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.weapon.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":341
 *     cdef public:
 *         unsigned int player_id, weapon
 *         int team             # <<<<<<<<<<<<<<
 *         float x, y, z
 *         object name
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4team_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4team_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4team___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4team___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->team); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.team.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4team_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4team_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4team_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4team_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 341, __pyx_L1_error)
  __pyx_v_self->team = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.team.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":342
 *         unsigned int player_id, weapon
 *         int team
 *         float x, y, z             # <<<<<<<<<<<<<<
 *         object name
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1x___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1x_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 342, __pyx_L1_error)
  __pyx_v_self->x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1y___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1y_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 342, __pyx_L1_error)
  __pyx_v_self->y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1z___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1z_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 342, __pyx_L1_error)
  __pyx_v_self->z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CreatePlayer.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":343
 *         int team
 *         float x, y, z
 *         object name             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4name___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4name___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->name);
  __pyx_r = __pyx_v_self->name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4name_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4name_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_INCREF(__pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = __pyx_v_value;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4name_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4name_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4name_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12CreatePlayer_4name_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->name);
  __Pyx_DECREF(__pyx_v_self->name);
  __pyx_v_self->name = Py_None;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":366
 *         int x, y, z, value, player_id
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11BlockAction_read(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  PY_LONG_LONG __pyx_t_8;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readInt __pyx_t_9;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 366, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 366, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 366, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 366, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 366, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":367
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.value = reader.readByte(True)
 *         self.x = reader.readInt(False, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 367, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":368
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.x = reader.readInt(False, False)
 *         self.y = reader.readInt(False, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 368, __pyx_L1_error)
  __pyx_v_self->value = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":369
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readByte(True)
 *         self.x = reader.readInt(False, False)             # <<<<<<<<<<<<<<
 *         self.y = reader.readInt(False, False)
 *         self.z = reader.readInt(False, False)
 */
  __pyx_t_9.__pyx_n = 2;
  __pyx_t_9.__pyx_unsigned = 0;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == -9223372036854775808LL)) __PYX_ERR(0, 369, __pyx_L1_error)
  __pyx_v_self->x = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":370
 *         self.value = reader.readByte(True)
 *         self.x = reader.readInt(False, False)
 *         self.y = reader.readInt(False, False)             # <<<<<<<<<<<<<<
 *         self.z = reader.readInt(False, False)
 * 
 */
  __pyx_t_9.__pyx_n = 2;
  __pyx_t_9.__pyx_unsigned = 0;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == -9223372036854775808LL)) __PYX_ERR(0, 370, __pyx_L1_error)
  __pyx_v_self->y = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":371
 *         self.x = reader.readInt(False, False)
 *         self.y = reader.readInt(False, False)
 *         self.z = reader.readInt(False, False)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_9.__pyx_n = 2;
  __pyx_t_9.__pyx_unsigned = 0;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == -9223372036854775808LL)) __PYX_ERR(0, 371, __pyx_L1_error)
  __pyx_v_self->z = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":366
 *         int x, y, z, value, player_id
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.value = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 366, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_read(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_read(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_11BlockAction_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":373
 *         self.z = reader.readInt(False, False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11BlockAction_write(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeInt __pyx_t_8;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 373, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 373, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 373, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 373, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 373, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":374
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.value, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":375
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.value, True)
 *         reader.writeInt(self.x, False, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":376
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.value, True)             # <<<<<<<<<<<<<<
 *         reader.writeInt(self.x, False, False)
 *         reader.writeInt(self.y, False, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->value, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 376, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":377
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.value, True)
 *         reader.writeInt(self.x, False, False)             # <<<<<<<<<<<<<<
 *         reader.writeInt(self.y, False, False)
 *         reader.writeInt(self.z, False, False)
 */
  __pyx_t_8.__pyx_n = 2;
  __pyx_t_8.__pyx_unsigned = 0;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeInt(__pyx_v_reader, __pyx_v_self->x, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":378
 *         reader.writeByte(self.value, True)
 *         reader.writeInt(self.x, False, False)
 *         reader.writeInt(self.y, False, False)             # <<<<<<<<<<<<<<
 *         reader.writeInt(self.z, False, False)
 * 
 */
  __pyx_t_8.__pyx_n = 2;
  __pyx_t_8.__pyx_unsigned = 0;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeInt(__pyx_v_reader, __pyx_v_self->y, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":379
 *         reader.writeInt(self.x, False, False)
 *         reader.writeInt(self.y, False, False)
 *         reader.writeInt(self.z, False, False)             # <<<<<<<<<<<<<<
 * 
 * cdef class BlockLine(Loader):
 */
  __pyx_t_8.__pyx_n = 2;
  __pyx_t_8.__pyx_unsigned = 0;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeInt(__pyx_v_reader, __pyx_v_self->z, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":373
 *         self.z = reader.readInt(False, False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 373, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_2write(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_11BlockAction_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":364
 * 
 *     cdef public:
 *         int x, y, z, value, player_id             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1x___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 364, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1x_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 364, __pyx_L1_error)
  __pyx_v_self->x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1y___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 364, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1y_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 364, __pyx_L1_error)
  __pyx_v_self->y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1z___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 364, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1z_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 364, __pyx_L1_error)
  __pyx_v_self->z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_5value_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_5value_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_5value___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_5value___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 364, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.value.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_5value_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_5value_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 364, __pyx_L1_error)
  __pyx_v_self->value = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.value.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11BlockAction_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 364, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11BlockAction_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 364, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockAction.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":389
 *         int x2, y2, z2
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.x1 = reader.readInt(False, False)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9BlockLine_read(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  PY_LONG_LONG __pyx_t_8;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readInt __pyx_t_9;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 389, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 389, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 389, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 389, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 389, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":390
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.x1 = reader.readInt(False, False)
 *         self.y1 = reader.readInt(False, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 390, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":391
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.x1 = reader.readInt(False, False)             # <<<<<<<<<<<<<<
 *         self.y1 = reader.readInt(False, False)
 *         self.z1 = reader.readInt(False, False)
 */
  __pyx_t_9.__pyx_n = 2;
  __pyx_t_9.__pyx_unsigned = 0;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == -9223372036854775808LL)) __PYX_ERR(0, 391, __pyx_L1_error)
  __pyx_v_self->x1 = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":392
 *         self.player_id = reader.readByte(True)
 *         self.x1 = reader.readInt(False, False)
 *         self.y1 = reader.readInt(False, False)             # <<<<<<<<<<<<<<
 *         self.z1 = reader.readInt(False, False)
 *         self.x2 = reader.readInt(False, False)
 */
  __pyx_t_9.__pyx_n = 2;
  __pyx_t_9.__pyx_unsigned = 0;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == -9223372036854775808LL)) __PYX_ERR(0, 392, __pyx_L1_error)
  __pyx_v_self->y1 = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":393
 *         self.x1 = reader.readInt(False, False)
 *         self.y1 = reader.readInt(False, False)
 *         self.z1 = reader.readInt(False, False)             # <<<<<<<<<<<<<<
 *         self.x2 = reader.readInt(False, False)
 *         self.y2 = reader.readInt(False, False)
 */
  __pyx_t_9.__pyx_n = 2;
  __pyx_t_9.__pyx_unsigned = 0;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == -9223372036854775808LL)) __PYX_ERR(0, 393, __pyx_L1_error)
  __pyx_v_self->z1 = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":394
 *         self.y1 = reader.readInt(False, False)
 *         self.z1 = reader.readInt(False, False)
 *         self.x2 = reader.readInt(False, False)             # <<<<<<<<<<<<<<
 *         self.y2 = reader.readInt(False, False)
 *         self.z2 = reader.readInt(False, False)
 */
  __pyx_t_9.__pyx_n = 2;
  __pyx_t_9.__pyx_unsigned = 0;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == -9223372036854775808LL)) __PYX_ERR(0, 394, __pyx_L1_error)
  __pyx_v_self->x2 = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":395
 *         self.z1 = reader.readInt(False, False)
 *         self.x2 = reader.readInt(False, False)
 *         self.y2 = reader.readInt(False, False)             # <<<<<<<<<<<<<<
 *         self.z2 = reader.readInt(False, False)
 * 
 */
  __pyx_t_9.__pyx_n = 2;
  __pyx_t_9.__pyx_unsigned = 0;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == -9223372036854775808LL)) __PYX_ERR(0, 395, __pyx_L1_error)
  __pyx_v_self->y2 = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":396
 *         self.x2 = reader.readInt(False, False)
 *         self.y2 = reader.readInt(False, False)
 *         self.z2 = reader.readInt(False, False)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_9.__pyx_n = 2;
  __pyx_t_9.__pyx_unsigned = 0;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == -9223372036854775808LL)) __PYX_ERR(0, 396, __pyx_L1_error)
  __pyx_v_self->z2 = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":389
 *         int x2, y2, z2
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.x1 = reader.readInt(False, False)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 389, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_read(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_read(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_9BlockLine_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":398
 *         self.z2 = reader.readInt(False, False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9BlockLine_write(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeInt __pyx_t_8;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 398, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 398, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 398, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 398, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 398, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 398, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":399
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeInt(self.x1, False, False)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 399, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":400
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeInt(self.x1, False, False)
 *         reader.writeInt(self.y1, False, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":401
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeInt(self.x1, False, False)             # <<<<<<<<<<<<<<
 *         reader.writeInt(self.y1, False, False)
 *         reader.writeInt(self.z1, False, False)
 */
  __pyx_t_8.__pyx_n = 2;
  __pyx_t_8.__pyx_unsigned = 0;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeInt(__pyx_v_reader, __pyx_v_self->x1, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":402
 *         reader.writeByte(self.player_id, True)
 *         reader.writeInt(self.x1, False, False)
 *         reader.writeInt(self.y1, False, False)             # <<<<<<<<<<<<<<
 *         reader.writeInt(self.z1, False, False)
 *         reader.writeInt(self.x2, False, False)
 */
  __pyx_t_8.__pyx_n = 2;
  __pyx_t_8.__pyx_unsigned = 0;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeInt(__pyx_v_reader, __pyx_v_self->y1, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":403
 *         reader.writeInt(self.x1, False, False)
 *         reader.writeInt(self.y1, False, False)
 *         reader.writeInt(self.z1, False, False)             # <<<<<<<<<<<<<<
 *         reader.writeInt(self.x2, False, False)
 *         reader.writeInt(self.y2, False, False)
 */
  __pyx_t_8.__pyx_n = 2;
  __pyx_t_8.__pyx_unsigned = 0;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeInt(__pyx_v_reader, __pyx_v_self->z1, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":404
 *         reader.writeInt(self.y1, False, False)
 *         reader.writeInt(self.z1, False, False)
 *         reader.writeInt(self.x2, False, False)             # <<<<<<<<<<<<<<
 *         reader.writeInt(self.y2, False, False)
 *         reader.writeInt(self.z2, False, False)
 */
  __pyx_t_8.__pyx_n = 2;
  __pyx_t_8.__pyx_unsigned = 0;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeInt(__pyx_v_reader, __pyx_v_self->x2, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":405
 *         reader.writeInt(self.z1, False, False)
 *         reader.writeInt(self.x2, False, False)
 *         reader.writeInt(self.y2, False, False)             # <<<<<<<<<<<<<<
 *         reader.writeInt(self.z2, False, False)
 * 
 */
  __pyx_t_8.__pyx_n = 2;
  __pyx_t_8.__pyx_unsigned = 0;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeInt(__pyx_v_reader, __pyx_v_self->y2, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":406
 *         reader.writeInt(self.x2, False, False)
 *         reader.writeInt(self.y2, False, False)
 *         reader.writeInt(self.z2, False, False)             # <<<<<<<<<<<<<<
 * 
 * cdef class CTFState(Loader):
 */
  __pyx_t_8.__pyx_n = 2;
  __pyx_t_8.__pyx_unsigned = 0;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeInt(__pyx_v_reader, __pyx_v_self->z2, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 406, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":398
 *         self.z2 = reader.readInt(False, False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 398, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2write(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_9BlockLine_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":385
 * 
 *     cdef public:
 *         int player_id             # <<<<<<<<<<<<<<
 *         int x1, y1, z1
 *         int x2, y2, z2
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 385, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":386
 *     cdef public:
 *         int player_id
 *         int x1, y1, z1             # <<<<<<<<<<<<<<
 *         int x2, y2, z2
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2x1_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2x1_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2x1___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2x1___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->x1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.x1.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2x1_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2x1_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2x1_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2x1_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 386, __pyx_L1_error)
  __pyx_v_self->x1 = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.x1.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2y1_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2y1_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2y1___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2y1___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->y1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.y1.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2y1_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2y1_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2y1_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2y1_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 386, __pyx_L1_error)
  __pyx_v_self->y1 = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.y1.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2z1_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2z1_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2z1___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2z1___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->z1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.z1.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2z1_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2z1_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2z1_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2z1_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 386, __pyx_L1_error)
  __pyx_v_self->z1 = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.z1.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":387
 *         int player_id
 *         int x1, y1, z1
 *         int x2, y2, z2             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2x2_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2x2_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2x2___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2x2___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->x2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.x2.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2x2_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2x2_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2x2_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2x2_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 387, __pyx_L1_error)
  __pyx_v_self->x2 = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.x2.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2y2_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2y2_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2y2___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2y2___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->y2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.y2.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2y2_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2y2_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2y2_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2y2_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 387, __pyx_L1_error)
  __pyx_v_self->y2 = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.y2.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2z2_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2z2_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2z2___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2z2___get__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->z2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.z2.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2z2_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2z2_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2z2_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9BlockLine_2z2_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 387, __pyx_L1_error)
  __pyx_v_self->z2 = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.BlockLine.z2.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":420
 *         float team2_base_x, team2_base_y, team2_base_z
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.team1_score = reader.readByte(True)
 *         self.team2_score = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8CTFState_read(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  int __pyx_v_intel_flags;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 420, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8CTFState_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 420, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 420, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 420, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 420, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 420, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":421
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.team1_score = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.team2_score = reader.readByte(True)
 *         self.cap_limit = reader.readByte(True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 421, __pyx_L1_error)
  __pyx_v_self->team1_score = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":422
 *     cpdef read(self, ByteReader reader):
 *         self.team1_score = reader.readByte(True)
 *         self.team2_score = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.cap_limit = reader.readByte(True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 422, __pyx_L1_error)
  __pyx_v_self->team2_score = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":423
 *         self.team1_score = reader.readByte(True)
 *         self.team2_score = reader.readByte(True)
 *         self.cap_limit = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *         cdef int intel_flags = reader.readByte(True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 423, __pyx_L1_error)
  __pyx_v_self->cap_limit = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":425
 *         self.cap_limit = reader.readByte(True)
 * 
 *         cdef int intel_flags = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.team1_has_intel = intel_flags & 1
 *         self.team2_has_intel = (intel_flags >> 1) & 1
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 425, __pyx_L1_error)
  __pyx_v_intel_flags = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":426
 * 
 *         cdef int intel_flags = reader.readByte(True)
 *         self.team1_has_intel = intel_flags & 1             # <<<<<<<<<<<<<<
 *         self.team2_has_intel = (intel_flags >> 1) & 1
 * 
 */
  __pyx_v_self->team1_has_intel = (__pyx_v_intel_flags & 1);

  /* "pyspades/networking/loaders.pyx":427
 *         cdef int intel_flags = reader.readByte(True)
 *         self.team1_has_intel = intel_flags & 1
 *         self.team2_has_intel = (intel_flags >> 1) & 1             # <<<<<<<<<<<<<<
 * 
 *         if self.team2_has_intel:
 */
  __pyx_v_self->team2_has_intel = ((__pyx_v_intel_flags >> 1) & 1);

  /* "pyspades/networking/loaders.pyx":429
 *         self.team2_has_intel = (intel_flags >> 1) & 1
 * 
 *         if self.team2_has_intel:             # <<<<<<<<<<<<<<
 *             self.team1_carrier = reader.readByte(True)
 *             reader.skipBytes(11)
 */
  __pyx_t_8 = (__pyx_v_self->team2_has_intel != 0);
  if (__pyx_t_8) {

    /* "pyspades/networking/loaders.pyx":430
 * 
 *         if self.team2_has_intel:
 *             self.team1_carrier = reader.readByte(True)             # <<<<<<<<<<<<<<
 *             reader.skipBytes(11)
 *         else:
 */
    __pyx_t_7.__pyx_n = 1;
    __pyx_t_7.__pyx_unsigned = 1;
    __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 430, __pyx_L1_error)
    __pyx_v_self->team1_carrier = __pyx_t_6;

    /* "pyspades/networking/loaders.pyx":431
 *         if self.team2_has_intel:
 *             self.team1_carrier = reader.readByte(True)
 *             reader.skipBytes(11)             # <<<<<<<<<<<<<<
 *         else:
 *             read_position(reader, &self.team1_flag_x, &self.team1_flag_y,
 */
    __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->skipBytes(__pyx_v_reader, 11, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 431, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":429
 *         self.team2_has_intel = (intel_flags >> 1) & 1
 * 
 *         if self.team2_has_intel:             # <<<<<<<<<<<<<<
 *             self.team1_carrier = reader.readByte(True)
 *             reader.skipBytes(11)
 */
    goto __pyx_L3;
  }

  /* "pyspades/networking/loaders.pyx":433
 *             reader.skipBytes(11)
 *         else:
 *             read_position(reader, &self.team1_flag_x, &self.team1_flag_y,             # <<<<<<<<<<<<<<
 *                 &self.team1_flag_z)
 * 
 */
  /*else*/ {

    /* "pyspades/networking/loaders.pyx":434
 *         else:
 *             read_position(reader, &self.team1_flag_x, &self.team1_flag_y,
 *                 &self.team1_flag_z)             # <<<<<<<<<<<<<<
 * 
 *         if self.team1_has_intel:
 */
    __pyx_f_8pyspades_10networking_7loaders_read_position(__pyx_v_reader, (&__pyx_v_self->team1_flag_x), (&__pyx_v_self->team1_flag_y), (&__pyx_v_self->team1_flag_z));
  }
  __pyx_L3:;

  /* "pyspades/networking/loaders.pyx":436
 *                 &self.team1_flag_z)
 * 
 *         if self.team1_has_intel:             # <<<<<<<<<<<<<<
 *             self.team2_carrier = reader.readByte(True)
 *             reader.skipBytes(11)
 */
  __pyx_t_8 = (__pyx_v_self->team1_has_intel != 0);
  if (__pyx_t_8) {

    /* "pyspades/networking/loaders.pyx":437
 * 
 *         if self.team1_has_intel:
 *             self.team2_carrier = reader.readByte(True)             # <<<<<<<<<<<<<<
 *             reader.skipBytes(11)
 *         else:
 */
    __pyx_t_7.__pyx_n = 1;
    __pyx_t_7.__pyx_unsigned = 1;
    __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 437, __pyx_L1_error)
    __pyx_v_self->team2_carrier = __pyx_t_6;

    /* "pyspades/networking/loaders.pyx":438
 *         if self.team1_has_intel:
 *             self.team2_carrier = reader.readByte(True)
 *             reader.skipBytes(11)             # <<<<<<<<<<<<<<
 *         else:
 *             read_position(reader, &self.team2_flag_x, &self.team2_flag_y,
 */
    __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->skipBytes(__pyx_v_reader, 11, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 438, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":436
 *                 &self.team1_flag_z)
 * 
 *         if self.team1_has_intel:             # <<<<<<<<<<<<<<
 *             self.team2_carrier = reader.readByte(True)
 *             reader.skipBytes(11)
 */
    goto __pyx_L4;
  }

  /* "pyspades/networking/loaders.pyx":440
 *             reader.skipBytes(11)
 *         else:
 *             read_position(reader, &self.team2_flag_x, &self.team2_flag_y,             # <<<<<<<<<<<<<<
 *                 &self.team2_flag_z)
 * 
 */
  /*else*/ {

    /* "pyspades/networking/loaders.pyx":441
 *         else:
 *             read_position(reader, &self.team2_flag_x, &self.team2_flag_y,
 *                 &self.team2_flag_z)             # <<<<<<<<<<<<<<
 * 
 *         read_position(reader, &self.team1_base_x, &self.team1_base_y,
 */
    __pyx_f_8pyspades_10networking_7loaders_read_position(__pyx_v_reader, (&__pyx_v_self->team2_flag_x), (&__pyx_v_self->team2_flag_y), (&__pyx_v_self->team2_flag_z));
  }
  __pyx_L4:;

  /* "pyspades/networking/loaders.pyx":443
 *                 &self.team2_flag_z)
 * 
 *         read_position(reader, &self.team1_base_x, &self.team1_base_y,             # <<<<<<<<<<<<<<
 *             &self.team1_base_z)
 * 
 */
  __pyx_f_8pyspades_10networking_7loaders_read_position(__pyx_v_reader, (&__pyx_v_self->team1_base_x), (&__pyx_v_self->team1_base_y), (&__pyx_v_self->team1_base_z));

  /* "pyspades/networking/loaders.pyx":446
 *             &self.team1_base_z)
 * 
 *         read_position(reader, &self.team2_base_x, &self.team2_base_y,             # <<<<<<<<<<<<<<
 *             &self.team2_base_z)
 * 
 */
  __pyx_f_8pyspades_10networking_7loaders_read_position(__pyx_v_reader, (&__pyx_v_self->team2_base_x), (&__pyx_v_self->team2_base_y), (&__pyx_v_self->team2_base_z));

  /* "pyspades/networking/loaders.pyx":420
 *         float team2_base_x, team2_base_y, team2_base_z
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.team1_score = reader.readByte(True)
 *         self.team2_score = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 420, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_read(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_read(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_8CTFState_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":449
 *             &self.team2_base_z)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.team1_score, True)
 *         reader.writeByte(self.team2_score, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8CTFState_write(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  int __pyx_v_intel_flags;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_6;
  int __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 449, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8CTFState_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 449, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 449, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 449, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 449, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 449, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":450
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.team1_score, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.team2_score, True)
 *         reader.writeByte(self.cap_limit, True)
 */
  __pyx_t_6.__pyx_n = 1;
  __pyx_t_6.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->team1_score, 0, &__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 450, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":451
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.team1_score, True)
 *         reader.writeByte(self.team2_score, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.cap_limit, True)
 *         cdef int intel_flags = (self.team1_has_intel | (
 */
  __pyx_t_6.__pyx_n = 1;
  __pyx_t_6.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->team2_score, 0, &__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":452
 *         reader.writeByte(self.team1_score, True)
 *         reader.writeByte(self.team2_score, True)
 *         reader.writeByte(self.cap_limit, True)             # <<<<<<<<<<<<<<
 *         cdef int intel_flags = (self.team1_has_intel | (
 *             self.team2_has_intel << 1))
 */
  __pyx_t_6.__pyx_n = 1;
  __pyx_t_6.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->cap_limit, 0, &__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 452, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":453
 *         reader.writeByte(self.team2_score, True)
 *         reader.writeByte(self.cap_limit, True)
 *         cdef int intel_flags = (self.team1_has_intel | (             # <<<<<<<<<<<<<<
 *             self.team2_has_intel << 1))
 * 
 */
  __pyx_v_intel_flags = (__pyx_v_self->team1_has_intel | (__pyx_v_self->team2_has_intel << 1));

  /* "pyspades/networking/loaders.pyx":456
 *             self.team2_has_intel << 1))
 * 
 *         reader.writeByte(intel_flags, True)             # <<<<<<<<<<<<<<
 * 
 *         if self.team2_has_intel:
 */
  __pyx_t_6.__pyx_n = 1;
  __pyx_t_6.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_intel_flags, 0, &__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":458
 *         reader.writeByte(intel_flags, True)
 * 
 *         if self.team2_has_intel:             # <<<<<<<<<<<<<<
 *             reader.writeByte(self.team1_carrier, True)
 *             reader.pad(11)
 */
  __pyx_t_7 = (__pyx_v_self->team2_has_intel != 0);
  if (__pyx_t_7) {

    /* "pyspades/networking/loaders.pyx":459
 * 
 *         if self.team2_has_intel:
 *             reader.writeByte(self.team1_carrier, True)             # <<<<<<<<<<<<<<
 *             reader.pad(11)
 *         else:
 */
    __pyx_t_6.__pyx_n = 1;
    __pyx_t_6.__pyx_unsigned = 1;
    __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->team1_carrier, 0, &__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 459, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":460
 *         if self.team2_has_intel:
 *             reader.writeByte(self.team1_carrier, True)
 *             reader.pad(11)             # <<<<<<<<<<<<<<
 *         else:
 *             write_position(reader, self.team1_flag_x, self.team1_flag_y,
 */
    __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->pad(__pyx_v_reader, 11, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 460, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":458
 *         reader.writeByte(intel_flags, True)
 * 
 *         if self.team2_has_intel:             # <<<<<<<<<<<<<<
 *             reader.writeByte(self.team1_carrier, True)
 *             reader.pad(11)
 */
    goto __pyx_L3;
  }

  /* "pyspades/networking/loaders.pyx":462
 *             reader.pad(11)
 *         else:
 *             write_position(reader, self.team1_flag_x, self.team1_flag_y,             # <<<<<<<<<<<<<<
 *                 self.team1_flag_z)
 * 
 */
  /*else*/ {

    /* "pyspades/networking/loaders.pyx":463
 *         else:
 *             write_position(reader, self.team1_flag_x, self.team1_flag_y,
 *                 self.team1_flag_z)             # <<<<<<<<<<<<<<
 * 
 *         if self.team1_has_intel:
 */
    __pyx_f_8pyspades_10networking_7loaders_write_position(__pyx_v_reader, __pyx_v_self->team1_flag_x, __pyx_v_self->team1_flag_y, __pyx_v_self->team1_flag_z);
  }
  __pyx_L3:;

  /* "pyspades/networking/loaders.pyx":465
 *                 self.team1_flag_z)
 * 
 *         if self.team1_has_intel:             # <<<<<<<<<<<<<<
 *             reader.writeByte(self.team2_carrier, True)
 *             reader.pad(11)
 */
  __pyx_t_7 = (__pyx_v_self->team1_has_intel != 0);
  if (__pyx_t_7) {

    /* "pyspades/networking/loaders.pyx":466
 * 
 *         if self.team1_has_intel:
 *             reader.writeByte(self.team2_carrier, True)             # <<<<<<<<<<<<<<
 *             reader.pad(11)
 *         else:
 */
    __pyx_t_6.__pyx_n = 1;
    __pyx_t_6.__pyx_unsigned = 1;
    __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->team2_carrier, 0, &__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":467
 *         if self.team1_has_intel:
 *             reader.writeByte(self.team2_carrier, True)
 *             reader.pad(11)             # <<<<<<<<<<<<<<
 *         else:
 *             write_position(reader, self.team2_flag_x, self.team2_flag_y,
 */
    __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->pad(__pyx_v_reader, 11, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 467, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":465
 *                 self.team1_flag_z)
 * 
 *         if self.team1_has_intel:             # <<<<<<<<<<<<<<
 *             reader.writeByte(self.team2_carrier, True)
 *             reader.pad(11)
 */
    goto __pyx_L4;
  }

  /* "pyspades/networking/loaders.pyx":469
 *             reader.pad(11)
 *         else:
 *             write_position(reader, self.team2_flag_x, self.team2_flag_y,             # <<<<<<<<<<<<<<
 *                 self.team2_flag_z)
 * 
 */
  /*else*/ {

    /* "pyspades/networking/loaders.pyx":470
 *         else:
 *             write_position(reader, self.team2_flag_x, self.team2_flag_y,
 *                 self.team2_flag_z)             # <<<<<<<<<<<<<<
 * 
 *         write_position(reader, self.team1_base_x, self.team1_base_y,
 */
    __pyx_f_8pyspades_10networking_7loaders_write_position(__pyx_v_reader, __pyx_v_self->team2_flag_x, __pyx_v_self->team2_flag_y, __pyx_v_self->team2_flag_z);
  }
  __pyx_L4:;

  /* "pyspades/networking/loaders.pyx":472
 *                 self.team2_flag_z)
 * 
 *         write_position(reader, self.team1_base_x, self.team1_base_y,             # <<<<<<<<<<<<<<
 *             self.team1_base_z)
 * 
 */
  __pyx_f_8pyspades_10networking_7loaders_write_position(__pyx_v_reader, __pyx_v_self->team1_base_x, __pyx_v_self->team1_base_y, __pyx_v_self->team1_base_z);

  /* "pyspades/networking/loaders.pyx":475
 *             self.team1_base_z)
 * 
 *         write_position(reader, self.team2_base_x, self.team2_base_y,             # <<<<<<<<<<<<<<
 *             self.team2_base_z)
 * 
 */
  __pyx_f_8pyspades_10networking_7loaders_write_position(__pyx_v_reader, __pyx_v_self->team2_base_x, __pyx_v_self->team2_base_y, __pyx_v_self->team2_base_z);

  /* "pyspades/networking/loaders.pyx":449
 *             &self.team2_base_z)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.team1_score, True)
 *         reader.writeByte(self.team2_score, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 449, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_2write(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_8CTFState_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":412
 * 
 *     cdef public:
 *         unsigned int team1_score, team2_score, cap_limit             # <<<<<<<<<<<<<<
 *         bint team1_has_intel, team2_has_intel
 *         unsigned int team1_carrier, team2_carrier
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_11team1_score_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_11team1_score_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_11team1_score___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_11team1_score___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->team1_score); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_score.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_11team1_score_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_11team1_score_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_11team1_score_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_11team1_score_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 412, __pyx_L1_error)
  __pyx_v_self->team1_score = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_score.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_11team2_score_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_11team2_score_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_11team2_score___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_11team2_score___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->team2_score); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_score.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_11team2_score_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_11team2_score_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_11team2_score_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_11team2_score_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 412, __pyx_L1_error)
  __pyx_v_self->team2_score = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_score.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_9cap_limit_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_9cap_limit_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_9cap_limit___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_9cap_limit___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->cap_limit); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 412, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.cap_limit.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_9cap_limit_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_9cap_limit_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_9cap_limit_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_9cap_limit_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 412, __pyx_L1_error)
  __pyx_v_self->cap_limit = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.cap_limit.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":413
 *     cdef public:
 *         unsigned int team1_score, team2_score, cap_limit
 *         bint team1_has_intel, team2_has_intel             # <<<<<<<<<<<<<<
 *         unsigned int team1_carrier, team2_carrier
 *         float team1_flag_x, team1_flag_y, team1_flag_z
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_15team1_has_intel_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_15team1_has_intel_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_15team1_has_intel___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_15team1_has_intel___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->team1_has_intel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_has_intel.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_15team1_has_intel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_15team1_has_intel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_15team1_has_intel_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_15team1_has_intel_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 413, __pyx_L1_error)
  __pyx_v_self->team1_has_intel = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_has_intel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_15team2_has_intel_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_15team2_has_intel_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_15team2_has_intel___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_15team2_has_intel___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->team2_has_intel); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_has_intel.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_15team2_has_intel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_15team2_has_intel_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_15team2_has_intel_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_15team2_has_intel_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 413, __pyx_L1_error)
  __pyx_v_self->team2_has_intel = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_has_intel.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":414
 *         unsigned int team1_score, team2_score, cap_limit
 *         bint team1_has_intel, team2_has_intel
 *         unsigned int team1_carrier, team2_carrier             # <<<<<<<<<<<<<<
 *         float team1_flag_x, team1_flag_y, team1_flag_z
 *         float team2_flag_x, team2_flag_y, team2_flag_z
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_13team1_carrier_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_13team1_carrier_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_13team1_carrier___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_13team1_carrier___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->team1_carrier); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_carrier.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_13team1_carrier_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_13team1_carrier_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_13team1_carrier_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_13team1_carrier_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 414, __pyx_L1_error)
  __pyx_v_self->team1_carrier = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_carrier.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_13team2_carrier_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_13team2_carrier_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_13team2_carrier___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_13team2_carrier___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->team2_carrier); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 414, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_carrier.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_13team2_carrier_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_13team2_carrier_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_13team2_carrier_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_13team2_carrier_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 414, __pyx_L1_error)
  __pyx_v_self->team2_carrier = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_carrier.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":415
 *         bint team1_has_intel, team2_has_intel
 *         unsigned int team1_carrier, team2_carrier
 *         float team1_flag_x, team1_flag_y, team1_flag_z             # <<<<<<<<<<<<<<
 *         float team2_flag_x, team2_flag_y, team2_flag_z
 *         float team1_base_x, team1_base_y, team1_base_z
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_x___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->team1_flag_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 415, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_flag_x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_x_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 415, __pyx_L1_error)
  __pyx_v_self->team1_flag_x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_flag_x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_y___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->team1_flag_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 415, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_flag_y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_y_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 415, __pyx_L1_error)
  __pyx_v_self->team1_flag_y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_flag_y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_z___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->team1_flag_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 415, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_flag_z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_z_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_flag_z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 415, __pyx_L1_error)
  __pyx_v_self->team1_flag_z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_flag_z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":416
 *         unsigned int team1_carrier, team2_carrier
 *         float team1_flag_x, team1_flag_y, team1_flag_z
 *         float team2_flag_x, team2_flag_y, team2_flag_z             # <<<<<<<<<<<<<<
 *         float team1_base_x, team1_base_y, team1_base_z
 *         float team2_base_x, team2_base_y, team2_base_z
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_x___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->team2_flag_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_flag_x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_x_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 416, __pyx_L1_error)
  __pyx_v_self->team2_flag_x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_flag_x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_y___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->team2_flag_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_flag_y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_y_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 416, __pyx_L1_error)
  __pyx_v_self->team2_flag_y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_flag_y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_z___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->team2_flag_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_flag_z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_z_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_flag_z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 416, __pyx_L1_error)
  __pyx_v_self->team2_flag_z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_flag_z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":417
 *         float team1_flag_x, team1_flag_y, team1_flag_z
 *         float team2_flag_x, team2_flag_y, team2_flag_z
 *         float team1_base_x, team1_base_y, team1_base_z             # <<<<<<<<<<<<<<
 *         float team2_base_x, team2_base_y, team2_base_z
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_x___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->team1_base_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 417, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_base_x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_x_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 417, __pyx_L1_error)
  __pyx_v_self->team1_base_x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_base_x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_y___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->team1_base_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 417, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_base_y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_y_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 417, __pyx_L1_error)
  __pyx_v_self->team1_base_y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_base_y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_z___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->team1_base_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 417, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_base_z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_z_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team1_base_z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 417, __pyx_L1_error)
  __pyx_v_self->team1_base_z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team1_base_z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":418
 *         float team2_flag_x, team2_flag_y, team2_flag_z
 *         float team1_base_x, team1_base_y, team1_base_z
 *         float team2_base_x, team2_base_y, team2_base_z             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_x___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->team2_base_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_base_x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_x_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 418, __pyx_L1_error)
  __pyx_v_self->team2_base_x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_base_x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_y___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->team2_base_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_base_y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_y_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 418, __pyx_L1_error)
  __pyx_v_self->team2_base_y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_base_y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_z___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->team2_base_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_base_z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_z_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8CTFState_12team2_base_z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 418, __pyx_L1_error)
  __pyx_v_self->team2_base_z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.CTFState.team2_base_z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":487
 *         unsigned int state
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         read_position(reader, &self.x, &self.y, &self.z)
 *         self.state = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9Territory_read(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 487, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9Territory_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 487, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 487, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 487, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 487, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 487, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":488
 * 
 *     cpdef read(self, ByteReader reader):
 *         read_position(reader, &self.x, &self.y, &self.z)             # <<<<<<<<<<<<<<
 *         self.state = reader.readByte(True)
 * 
 */
  __pyx_f_8pyspades_10networking_7loaders_read_position(__pyx_v_reader, (&__pyx_v_self->x), (&__pyx_v_self->y), (&__pyx_v_self->z));

  /* "pyspades/networking/loaders.pyx":489
 *     cpdef read(self, ByteReader reader):
 *         read_position(reader, &self.x, &self.y, &self.z)
 *         self.state = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 489, __pyx_L1_error)
  __pyx_v_self->state = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":487
 *         unsigned int state
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         read_position(reader, &self.x, &self.y, &self.z)
 *         self.state = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.Territory.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 487, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9Territory_read(((struct __pyx_obj_8pyspades_10networking_7loaders_Territory *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9Territory_read(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_9Territory_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.Territory.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":491
 *         self.state = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         write_position(reader, self.x, self.y, self.z)
 *         reader.writeByte(self.state, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9Territory_write(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_6;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9Territory_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 491, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 491, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 491, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 491, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 491, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":492
 * 
 *     cpdef write(self, ByteWriter reader):
 *         write_position(reader, self.x, self.y, self.z)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.state, True)
 * 
 */
  __pyx_f_8pyspades_10networking_7loaders_write_position(__pyx_v_reader, __pyx_v_self->x, __pyx_v_self->y, __pyx_v_self->z);

  /* "pyspades/networking/loaders.pyx":493
 *     cpdef write(self, ByteWriter reader):
 *         write_position(reader, self.x, self.y, self.z)
 *         reader.writeByte(self.state, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class ObjectTerritory(Loader):
 */
  __pyx_t_6.__pyx_n = 1;
  __pyx_t_6.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->state, 0, &__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":491
 *         self.state = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         write_position(reader, self.x, self.y, self.z)
 *         reader.writeByte(self.state, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.Territory.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 491, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9Territory_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_Territory *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9Territory_2write(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_9Territory_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.Territory.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":484
 * cdef class Territory(Loader):
 *     cdef public:
 *         float x, y, z             # <<<<<<<<<<<<<<
 *         unsigned int state
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_1x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9Territory_1x___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_Territory *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9Territory_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.Territory.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9Territory_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9Territory_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9Territory_1x_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_Territory *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9Territory_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 484, __pyx_L1_error)
  __pyx_v_self->x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.Territory.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_1y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9Territory_1y___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_Territory *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9Territory_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.Territory.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9Territory_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9Territory_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9Territory_1y_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_Territory *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9Territory_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 484, __pyx_L1_error)
  __pyx_v_self->y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.Territory.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_1z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9Territory_1z___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_Territory *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9Territory_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.Territory.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9Territory_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9Territory_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9Territory_1z_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_Territory *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9Territory_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 484, __pyx_L1_error)
  __pyx_v_self->z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.Territory.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":485
 *     cdef public:
 *         float x, y, z
 *         unsigned int state             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_5state_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9Territory_5state_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9Territory_5state___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_Territory *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9Territory_5state___get__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.Territory.state.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9Territory_5state_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9Territory_5state_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9Territory_5state_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_Territory *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9Territory_5state_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_Territory *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 485, __pyx_L1_error)
  __pyx_v_self->state = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.Territory.state.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":499
 *         object item
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         write_position(reader, self.item.x, self.item.y, self.item.z)
 *         team = self.item.team
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_1write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15ObjectTerritory_write(struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_v_team = NULL;
  int __pyx_v_state;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  float __pyx_t_6;
  float __pyx_t_7;
  float __pyx_t_8;
  int __pyx_t_9;
  int __pyx_t_10;
  int __pyx_t_11;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_12;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 499, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_1write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 499, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 499, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 499, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 499, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 499, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":500
 * 
 *     cpdef write(self, ByteWriter reader):
 *         write_position(reader, self.item.x, self.item.y, self.item.z)             # <<<<<<<<<<<<<<
 *         team = self.item.team
 *         cdef int state
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->item, __pyx_n_s_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_6 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->item, __pyx_n_s_y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_7 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_7 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->item, __pyx_n_s_z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_8 = __pyx_PyFloat_AsFloat(__pyx_t_1); if (unlikely((__pyx_t_8 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 500, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_f_8pyspades_10networking_7loaders_write_position(__pyx_v_reader, __pyx_t_6, __pyx_t_7, __pyx_t_8);

  /* "pyspades/networking/loaders.pyx":501
 *     cpdef write(self, ByteWriter reader):
 *         write_position(reader, self.item.x, self.item.y, self.item.z)
 *         team = self.item.team             # <<<<<<<<<<<<<<
 *         cdef int state
 *         if team is None:
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self->item, __pyx_n_s_team); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_team = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":503
 *         team = self.item.team
 *         cdef int state
 *         if team is None:             # <<<<<<<<<<<<<<
 *             state = NEUTRAL_TEAM
 *         else:
 */
  __pyx_t_9 = (__pyx_v_team == Py_None);
  __pyx_t_10 = (__pyx_t_9 != 0);
  if (__pyx_t_10) {

    /* "pyspades/networking/loaders.pyx":504
 *         cdef int state
 *         if team is None:
 *             state = NEUTRAL_TEAM             # <<<<<<<<<<<<<<
 *         else:
 *             state = team.id
 */
    __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_NEUTRAL_TEAM); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 504, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 504, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_state = __pyx_t_11;

    /* "pyspades/networking/loaders.pyx":503
 *         team = self.item.team
 *         cdef int state
 *         if team is None:             # <<<<<<<<<<<<<<
 *             state = NEUTRAL_TEAM
 *         else:
 */
    goto __pyx_L3;
  }

  /* "pyspades/networking/loaders.pyx":506
 *             state = NEUTRAL_TEAM
 *         else:
 *             state = team.id             # <<<<<<<<<<<<<<
 *         reader.writeByte(state, True)
 * 
 */
  /*else*/ {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_team, __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 506, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_11 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_11 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 506, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_v_state = __pyx_t_11;
  }
  __pyx_L3:;

  /* "pyspades/networking/loaders.pyx":507
 *         else:
 *             state = team.id
 *         reader.writeByte(state, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class TCState(Loader):
 */
  __pyx_t_12.__pyx_n = 1;
  __pyx_t_12.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_state, 0, &__pyx_t_12); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":499
 *         object item
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         write_position(reader, self.item.x, self.item.y, self.item.z)
 *         team = self.item.team
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ObjectTerritory.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_team);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_1write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_1write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 499, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15ObjectTerritory_write(((struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ObjectTerritory_write(struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_15ObjectTerritory_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 499, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ObjectTerritory.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":497
 * cdef class ObjectTerritory(Loader):
 *     cdef public:
 *         object item             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_4item_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_4item_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15ObjectTerritory_4item___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15ObjectTerritory_4item___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->item);
  __pyx_r = __pyx_v_self->item;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_4item_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_4item_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15ObjectTerritory_4item_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15ObjectTerritory_4item_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_INCREF(__pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_GOTREF(__pyx_v_self->item);
  __Pyx_DECREF(__pyx_v_self->item);
  __pyx_v_self->item = __pyx_v_value;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_4item_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_4item_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15ObjectTerritory_4item_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15ObjectTerritory_4item_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->item);
  __Pyx_DECREF(__pyx_v_self->item);
  __pyx_v_self->item = Py_None;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":515
 *         list territories
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.territories = []
 *         cdef unsigned int count = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7TCState_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_7TCState_read(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  unsigned int __pyx_v_count;
  CYTHON_UNUSED unsigned int __pyx_v__;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  unsigned int __pyx_t_8;
  unsigned int __pyx_t_9;
  int __pyx_t_10;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 515, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7TCState_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 515, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 515, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 515, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 515, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 515, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":516
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.territories = []             # <<<<<<<<<<<<<<
 *         cdef unsigned int count = reader.readByte(True)
 *         for _ in xrange(count):
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 516, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->territories);
  __Pyx_DECREF(__pyx_v_self->territories);
  __pyx_v_self->territories = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":517
 *     cpdef read(self, ByteReader reader):
 *         self.territories = []
 *         cdef unsigned int count = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         for _ in xrange(count):
 *             self.territories.append(Territory(reader))
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 517, __pyx_L1_error)
  __pyx_v_count = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":518
 *         self.territories = []
 *         cdef unsigned int count = reader.readByte(True)
 *         for _ in xrange(count):             # <<<<<<<<<<<<<<
 *             self.territories.append(Territory(reader))
 * 
 */
  __pyx_t_8 = __pyx_v_count;
  for (__pyx_t_9 = 0; __pyx_t_9 < __pyx_t_8; __pyx_t_9+=1) {
    __pyx_v__ = __pyx_t_9;

    /* "pyspades/networking/loaders.pyx":519
 *         cdef unsigned int count = reader.readByte(True)
 *         for _ in xrange(count):
 *             self.territories.append(Territory(reader))             # <<<<<<<<<<<<<<
 * 
 *     def set_entities(self, items):
 */
    if (unlikely(__pyx_v_self->territories == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append");
      __PYX_ERR(0, 519, __pyx_L1_error)
    }
    __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 519, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_INCREF(((PyObject *)__pyx_v_reader));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
    PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)__pyx_v_reader));
    __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_Territory), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 519, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_self->territories, __pyx_t_2); if (unlikely(__pyx_t_10 == -1)) __PYX_ERR(0, 519, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  }

  /* "pyspades/networking/loaders.pyx":515
 *         list territories
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.territories = []
 *         cdef unsigned int count = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.TCState.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7TCState_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7TCState_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 515, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7TCState_read(((struct __pyx_obj_8pyspades_10networking_7loaders_TCState *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7TCState_read(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_7TCState_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 515, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.TCState.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":521
 *             self.territories.append(Territory(reader))
 * 
 *     def set_entities(self, items):             # <<<<<<<<<<<<<<
 *         self.territories = []
 *         for item in items:
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7TCState_3set_entities(PyObject *__pyx_v_self, PyObject *__pyx_v_items); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7TCState_3set_entities(PyObject *__pyx_v_self, PyObject *__pyx_v_items) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("set_entities (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7TCState_2set_entities(((struct __pyx_obj_8pyspades_10networking_7loaders_TCState *)__pyx_v_self), ((PyObject *)__pyx_v_items));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7TCState_2set_entities(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self, PyObject *__pyx_v_items) {
  PyObject *__pyx_v_item = NULL;
  struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *__pyx_v_territory = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *(*__pyx_t_3)(PyObject *);
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  __Pyx_RefNannySetupContext("set_entities", 0);

  /* "pyspades/networking/loaders.pyx":522
 * 
 *     def set_entities(self, items):
 *         self.territories = []             # <<<<<<<<<<<<<<
 *         for item in items:
 *             territory = ObjectTerritory()
 */
  __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 522, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->territories);
  __Pyx_DECREF(__pyx_v_self->territories);
  __pyx_v_self->territories = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":523
 *     def set_entities(self, items):
 *         self.territories = []
 *         for item in items:             # <<<<<<<<<<<<<<
 *             territory = ObjectTerritory()
 *             territory.item = item
 */
  if (likely(PyList_CheckExact(__pyx_v_items)) || PyTuple_CheckExact(__pyx_v_items)) {
    __pyx_t_1 = __pyx_v_items; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
    __pyx_t_3 = NULL;
  } else {
    __pyx_t_2 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_items); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 523, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_3 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 523, __pyx_L1_error)
  }
  for (;;) {
    if (likely(!__pyx_t_3)) {
      if (likely(PyList_CheckExact(__pyx_t_1))) {
        if (__pyx_t_2 >= PyList_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 523, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 523, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      } else {
        if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_4); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(0, 523, __pyx_L1_error)
        #else
        __pyx_t_4 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 523, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        #endif
      }
    } else {
      __pyx_t_4 = __pyx_t_3(__pyx_t_1);
      if (unlikely(!__pyx_t_4)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 523, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_4);
    }
    __Pyx_XDECREF_SET(__pyx_v_item, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "pyspades/networking/loaders.pyx":524
 *         self.territories = []
 *         for item in items:
 *             territory = ObjectTerritory()             # <<<<<<<<<<<<<<
 *             territory.item = item
 *             self.territories.append(territory)
 */
    __pyx_t_4 = __Pyx_PyObject_Call(((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_ObjectTerritory), __pyx_empty_tuple, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 524, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __Pyx_XDECREF_SET(__pyx_v_territory, ((struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *)__pyx_t_4));
    __pyx_t_4 = 0;

    /* "pyspades/networking/loaders.pyx":525
 *         for item in items:
 *             territory = ObjectTerritory()
 *             territory.item = item             # <<<<<<<<<<<<<<
 *             self.territories.append(territory)
 * 
 */
    __Pyx_INCREF(__pyx_v_item);
    __Pyx_GIVEREF(__pyx_v_item);
    __Pyx_GOTREF(__pyx_v_territory->item);
    __Pyx_DECREF(__pyx_v_territory->item);
    __pyx_v_territory->item = __pyx_v_item;

    /* "pyspades/networking/loaders.pyx":526
 *             territory = ObjectTerritory()
 *             territory.item = item
 *             self.territories.append(territory)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
    if (unlikely(__pyx_v_self->territories == Py_None)) {
      PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "append");
      __PYX_ERR(0, 526, __pyx_L1_error)
    }
    __pyx_t_5 = __Pyx_PyList_Append(__pyx_v_self->territories, ((PyObject *)__pyx_v_territory)); if (unlikely(__pyx_t_5 == -1)) __PYX_ERR(0, 526, __pyx_L1_error)

    /* "pyspades/networking/loaders.pyx":523
 *     def set_entities(self, items):
 *         self.territories = []
 *         for item in items:             # <<<<<<<<<<<<<<
 *             territory = ObjectTerritory()
 *             territory.item = item
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":521
 *             self.territories.append(Territory(reader))
 * 
 *     def set_entities(self, items):             # <<<<<<<<<<<<<<
 *         self.territories = []
 *         for item in items:
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("pyspades.networking.loaders.TCState.set_entities", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_item);
  __Pyx_XDECREF((PyObject *)__pyx_v_territory);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":528
 *             self.territories.append(territory)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         cdef Loader territory
 *         reader.writeByte(len(self.territories), True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7TCState_5write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_7TCState_write(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  struct __pyx_obj_8pyspades_10networking_6loader_Loader *__pyx_v_territory = 0;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  Py_ssize_t __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 528, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7TCState_5write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 528, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 528, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 528, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 528, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 528, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":530
 *     cpdef write(self, ByteWriter reader):
 *         cdef Loader territory
 *         reader.writeByte(len(self.territories), True)             # <<<<<<<<<<<<<<
 *         for territory in self.territories:
 *             territory.write(reader)
 */
  __pyx_t_1 = __pyx_v_self->territories;
  __Pyx_INCREF(__pyx_t_1);
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 530, __pyx_L1_error)
  }
  __pyx_t_6 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 530, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":531
 *         cdef Loader territory
 *         reader.writeByte(len(self.territories), True)
 *         for territory in self.territories:             # <<<<<<<<<<<<<<
 *             territory.write(reader)
 *         reader.pad((MAX_TERRITORIES - len(self.territories)) * TERRITORY_SIZE)
 */
  if (unlikely(__pyx_v_self->territories == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(0, 531, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_self->territories; __Pyx_INCREF(__pyx_t_1); __pyx_t_6 = 0;
  for (;;) {
    if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(0, 531, __pyx_L1_error)
    #else
    __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    #endif
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_8pyspades_10networking_6loader_Loader))))) __PYX_ERR(0, 531, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_territory, ((struct __pyx_obj_8pyspades_10networking_6loader_Loader *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "pyspades/networking/loaders.pyx":532
 *         reader.writeByte(len(self.territories), True)
 *         for territory in self.territories:
 *             territory.write(reader)             # <<<<<<<<<<<<<<
 *         reader.pad((MAX_TERRITORIES - len(self.territories)) * TERRITORY_SIZE)
 * 
 */
    __pyx_t_2 = ((struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader *)__pyx_v_territory->__pyx_vtab)->write(__pyx_v_territory, __pyx_v_reader, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 532, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

    /* "pyspades/networking/loaders.pyx":531
 *         cdef Loader territory
 *         reader.writeByte(len(self.territories), True)
 *         for territory in self.territories:             # <<<<<<<<<<<<<<
 *             territory.write(reader)
 *         reader.pad((MAX_TERRITORIES - len(self.territories)) * TERRITORY_SIZE)
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":533
 *         for territory in self.territories:
 *             territory.write(reader)
 *         reader.pad((MAX_TERRITORIES - len(self.territories)) * TERRITORY_SIZE)             # <<<<<<<<<<<<<<
 * 
 * modes = {
 */
  __pyx_t_1 = __pyx_v_self->territories;
  __Pyx_INCREF(__pyx_t_1);
  if (unlikely(__pyx_t_1 == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
    __PYX_ERR(0, 533, __pyx_L1_error)
  }
  __pyx_t_6 = PyList_GET_SIZE(__pyx_t_1); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(0, 533, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->pad(__pyx_v_reader, ((16 - __pyx_t_6) * 13), 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":528
 *             self.territories.append(territory)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         cdef Loader territory
 *         reader.writeByte(len(self.territories), True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.TCState.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_territory);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7TCState_5write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7TCState_5write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 528, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7TCState_4write(((struct __pyx_obj_8pyspades_10networking_7loaders_TCState *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7TCState_4write(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_7TCState_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.TCState.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":513
 * 
 *     cdef public:
 *         list territories             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7TCState_11territories_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7TCState_11territories_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7TCState_11territories___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_TCState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7TCState_11territories___get__(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->territories);
  __pyx_r = __pyx_v_self->territories;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_7TCState_11territories_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_7TCState_11territories_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7TCState_11territories_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_TCState *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_7TCState_11territories_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyList_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 513, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->territories);
  __Pyx_DECREF(__pyx_v_self->territories);
  __pyx_v_self->territories = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.TCState.territories.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_7TCState_11territories_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_7TCState_11territories_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7TCState_11territories_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_TCState *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_7TCState_11territories_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_TCState *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->territories);
  __Pyx_DECREF(__pyx_v_self->territories);
  __pyx_v_self->territories = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":540
 * }
 * 
 * cdef inline tuple read_team_color(ByteReader reader):             # <<<<<<<<<<<<<<
 *     b = reader.readByte(True)
 *     g = reader.readByte(True)
 */

static CYTHON_INLINE PyObject *__pyx_f_8pyspades_10networking_7loaders_read_team_color(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  int __pyx_v_b;
  int __pyx_v_g;
  int __pyx_v_r;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  __Pyx_RefNannySetupContext("read_team_color", 0);

  /* "pyspades/networking/loaders.pyx":541
 * 
 * cdef inline tuple read_team_color(ByteReader reader):
 *     b = reader.readByte(True)             # <<<<<<<<<<<<<<
 *     g = reader.readByte(True)
 *     r = reader.readByte(True)
 */
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_2); if (unlikely(__pyx_t_1 == -2147483648)) __PYX_ERR(0, 541, __pyx_L1_error)
  __pyx_v_b = __pyx_t_1;

  /* "pyspades/networking/loaders.pyx":542
 * cdef inline tuple read_team_color(ByteReader reader):
 *     b = reader.readByte(True)
 *     g = reader.readByte(True)             # <<<<<<<<<<<<<<
 *     r = reader.readByte(True)
 *     return (r, g, b)
 */
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_2); if (unlikely(__pyx_t_1 == -2147483648)) __PYX_ERR(0, 542, __pyx_L1_error)
  __pyx_v_g = __pyx_t_1;

  /* "pyspades/networking/loaders.pyx":543
 *     b = reader.readByte(True)
 *     g = reader.readByte(True)
 *     r = reader.readByte(True)             # <<<<<<<<<<<<<<
 *     return (r, g, b)
 * 
 */
  __pyx_t_2.__pyx_n = 1;
  __pyx_t_2.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_2); if (unlikely(__pyx_t_1 == -2147483648)) __PYX_ERR(0, 543, __pyx_L1_error)
  __pyx_v_r = __pyx_t_1;

  /* "pyspades/networking/loaders.pyx":544
 *     g = reader.readByte(True)
 *     r = reader.readByte(True)
 *     return (r, g, b)             # <<<<<<<<<<<<<<
 * 
 * cdef inline void write_team_color(ByteWriter reader, tuple color):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_r); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_g); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyInt_From_int(__pyx_v_b); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(3); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_6, 2, __pyx_t_5);
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_r = ((PyObject*)__pyx_t_6);
  __pyx_t_6 = 0;
  goto __pyx_L0;

  /* "pyspades/networking/loaders.pyx":540
 * }
 * 
 * cdef inline tuple read_team_color(ByteReader reader):             # <<<<<<<<<<<<<<
 *     b = reader.readByte(True)
 *     g = reader.readByte(True)
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("pyspades.networking.loaders.read_team_color", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":546
 *     return (r, g, b)
 * 
 * cdef inline void write_team_color(ByteWriter reader, tuple color):             # <<<<<<<<<<<<<<
 *     r, g, b = color
 *     reader.writeByte(b, True)
 */

static CYTHON_INLINE void __pyx_f_8pyspades_10networking_7loaders_write_team_color(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, PyObject *__pyx_v_color) {
  PyObject *__pyx_v_r = NULL;
  PyObject *__pyx_v_g = NULL;
  PyObject *__pyx_v_b = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_5;
  __Pyx_RefNannySetupContext("write_team_color", 0);

  /* "pyspades/networking/loaders.pyx":547
 * 
 * cdef inline void write_team_color(ByteWriter reader, tuple color):
 *     r, g, b = color             # <<<<<<<<<<<<<<
 *     reader.writeByte(b, True)
 *     reader.writeByte(g, True)
 */
  if (likely(__pyx_v_color != Py_None)) {
    PyObject* sequence = __pyx_v_color;
    #if !CYTHON_COMPILING_IN_PYPY
    Py_ssize_t size = Py_SIZE(sequence);
    #else
    Py_ssize_t size = PySequence_Size(sequence);
    #endif
    if (unlikely(size != 3)) {
      if (size > 3) __Pyx_RaiseTooManyValuesError(3);
      else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
      __PYX_ERR(0, 547, __pyx_L1_error)
    }
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    __pyx_t_1 = PyTuple_GET_ITEM(sequence, 0); 
    __pyx_t_2 = PyTuple_GET_ITEM(sequence, 1); 
    __pyx_t_3 = PyTuple_GET_ITEM(sequence, 2); 
    __Pyx_INCREF(__pyx_t_1);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_3);
    #else
    __pyx_t_1 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 547, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 547, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PySequence_ITEM(sequence, 2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 547, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
  } else {
    __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(0, 547, __pyx_L1_error)
  }
  __pyx_v_r = __pyx_t_1;
  __pyx_t_1 = 0;
  __pyx_v_g = __pyx_t_2;
  __pyx_t_2 = 0;
  __pyx_v_b = __pyx_t_3;
  __pyx_t_3 = 0;

  /* "pyspades/networking/loaders.pyx":548
 * cdef inline void write_team_color(ByteWriter reader, tuple color):
 *     r, g, b = color
 *     reader.writeByte(b, True)             # <<<<<<<<<<<<<<
 *     reader.writeByte(g, True)
 *     reader.writeByte(r, True)
 */
  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_b); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 548, __pyx_L1_error)
  __pyx_t_5.__pyx_n = 1;
  __pyx_t_5.__pyx_unsigned = 1;
  __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_4, 0, &__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyspades/networking/loaders.pyx":549
 *     r, g, b = color
 *     reader.writeByte(b, True)
 *     reader.writeByte(g, True)             # <<<<<<<<<<<<<<
 *     reader.writeByte(r, True)
 * 
 */
  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_g); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 549, __pyx_L1_error)
  __pyx_t_5.__pyx_n = 1;
  __pyx_t_5.__pyx_unsigned = 1;
  __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_4, 0, &__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 549, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyspades/networking/loaders.pyx":550
 *     reader.writeByte(b, True)
 *     reader.writeByte(g, True)
 *     reader.writeByte(r, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class StateData(Loader):
 */
  __pyx_t_4 = __Pyx_PyInt_As_int(__pyx_v_r); if (unlikely((__pyx_t_4 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 550, __pyx_L1_error)
  __pyx_t_5.__pyx_n = 1;
  __pyx_t_5.__pyx_unsigned = 1;
  __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_4, 0, &__pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyspades/networking/loaders.pyx":546
 *     return (r, g, b)
 * 
 * cdef inline void write_team_color(ByteWriter reader, tuple color):             # <<<<<<<<<<<<<<
 *     r, g, b = color
 *     reader.writeByte(b, True)
 */

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("pyspades.networking.loaders.write_team_color", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0);
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_r);
  __Pyx_XDECREF(__pyx_v_g);
  __Pyx_XDECREF(__pyx_v_b);
  __Pyx_RefNannyFinishContext();
}

/* "pyspades/networking/loaders.pyx":563
 *         object team1_name, team2_name
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.fog_color = read_team_color(reader)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9StateData_read(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  int __pyx_v_mode;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readString __pyx_t_8;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 563, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9StateData_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 563, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 563, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 563, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 563, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 563, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":564
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.fog_color = read_team_color(reader)
 *         self.team1_color = read_team_color(reader)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 564, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":565
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.fog_color = read_team_color(reader)             # <<<<<<<<<<<<<<
 *         self.team1_color = read_team_color(reader)
 *         self.team2_color = read_team_color(reader)
 */
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_read_team_color(__pyx_v_reader); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->fog_color);
  __Pyx_DECREF(__pyx_v_self->fog_color);
  __pyx_v_self->fog_color = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":566
 *         self.player_id = reader.readByte(True)
 *         self.fog_color = read_team_color(reader)
 *         self.team1_color = read_team_color(reader)             # <<<<<<<<<<<<<<
 *         self.team2_color = read_team_color(reader)
 *         self.team1_name = decode(reader.readString(10))
 */
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_read_team_color(__pyx_v_reader); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->team1_color);
  __Pyx_DECREF(__pyx_v_self->team1_color);
  __pyx_v_self->team1_color = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":567
 *         self.fog_color = read_team_color(reader)
 *         self.team1_color = read_team_color(reader)
 *         self.team2_color = read_team_color(reader)             # <<<<<<<<<<<<<<
 *         self.team1_name = decode(reader.readString(10))
 *         self.team2_name = decode(reader.readString(10))
 */
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_read_team_color(__pyx_v_reader); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->team2_color);
  __Pyx_DECREF(__pyx_v_self->team2_color);
  __pyx_v_self->team2_color = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":568
 *         self.team1_color = read_team_color(reader)
 *         self.team2_color = read_team_color(reader)
 *         self.team1_name = decode(reader.readString(10))             # <<<<<<<<<<<<<<
 *         self.team2_name = decode(reader.readString(10))
 *         cdef int mode = reader.readByte(True)
 */
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_decode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.size = 10;
  __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readString(__pyx_v_reader, 0, &__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (!__pyx_t_5) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 568, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 568, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 568, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else
    #endif
    {
      __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 568, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL;
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 568, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->team1_name);
  __Pyx_DECREF(__pyx_v_self->team1_name);
  __pyx_v_self->team1_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":569
 *         self.team2_color = read_team_color(reader)
 *         self.team1_name = decode(reader.readString(10))
 *         self.team2_name = decode(reader.readString(10))             # <<<<<<<<<<<<<<
 *         cdef int mode = reader.readByte(True)
 *         self.state = modes[mode](reader)
 */
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_decode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 569, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.size = 10;
  __pyx_t_4 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readString(__pyx_v_reader, 0, &__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 569, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (!__pyx_t_3) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 569, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 569, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_t_4};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 569, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    } else
    #endif
    {
      __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 569, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
      __Pyx_GIVEREF(__pyx_t_4);
      PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_4);
      __pyx_t_4 = 0;
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 569, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->team2_name);
  __Pyx_DECREF(__pyx_v_self->team2_name);
  __pyx_v_self->team2_name = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":570
 *         self.team1_name = decode(reader.readString(10))
 *         self.team2_name = decode(reader.readString(10))
 *         cdef int mode = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.state = modes[mode](reader)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 570, __pyx_L1_error)
  __pyx_v_mode = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":571
 *         self.team2_name = decode(reader.readString(10))
 *         cdef int mode = reader.readByte(True)
 *         self.state = modes[mode](reader)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_modes); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_5 = __Pyx_GetItemInt(__pyx_t_2, __pyx_v_mode, int, 1, __Pyx_PyInt_From_int, 0, 1, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_5, function);
    }
  }
  if (!__pyx_t_2) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_5)) {
      PyObject *__pyx_temp[2] = {__pyx_t_2, ((PyObject *)__pyx_v_reader)};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 571, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_5)) {
      PyObject *__pyx_temp[2] = {__pyx_t_2, ((PyObject *)__pyx_v_reader)};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_5, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 571, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    {
      __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 571, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_2); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2); __pyx_t_2 = NULL;
      __Pyx_INCREF(((PyObject *)__pyx_v_reader));
      __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
      PyTuple_SET_ITEM(__pyx_t_4, 0+1, ((PyObject *)__pyx_v_reader));
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 571, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  if (!(likely(((__pyx_t_1) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_1, __pyx_ptype_8pyspades_10networking_6loader_Loader))))) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->state);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->state));
  __pyx_v_self->state = ((struct __pyx_obj_8pyspades_10networking_6loader_Loader *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":563
 *         object team1_name, team2_name
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.fog_color = read_team_color(reader)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.StateData.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 563, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_read(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_read(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_9StateData_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.StateData.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":573
 *         self.state = modes[mode](reader)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9StateData_write(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeString __pyx_t_8;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9StateData_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 573, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 573, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 573, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 573, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 573, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":574
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         write_team_color(reader, self.fog_color)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":575
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         write_team_color(reader, self.fog_color)
 *         write_team_color(reader, self.team1_color)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":576
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         write_team_color(reader, self.fog_color)             # <<<<<<<<<<<<<<
 *         write_team_color(reader, self.team1_color)
 *         write_team_color(reader, self.team2_color)
 */
  __pyx_t_1 = __pyx_v_self->fog_color;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_f_8pyspades_10networking_7loaders_write_team_color(__pyx_v_reader, ((PyObject*)__pyx_t_1));
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":577
 *         reader.writeByte(self.player_id, True)
 *         write_team_color(reader, self.fog_color)
 *         write_team_color(reader, self.team1_color)             # <<<<<<<<<<<<<<
 *         write_team_color(reader, self.team2_color)
 *         reader.writeString(encode(self.team1_name), 10)
 */
  __pyx_t_1 = __pyx_v_self->team1_color;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_f_8pyspades_10networking_7loaders_write_team_color(__pyx_v_reader, ((PyObject*)__pyx_t_1));
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":578
 *         write_team_color(reader, self.fog_color)
 *         write_team_color(reader, self.team1_color)
 *         write_team_color(reader, self.team2_color)             # <<<<<<<<<<<<<<
 *         reader.writeString(encode(self.team1_name), 10)
 *         reader.writeString(encode(self.team2_name), 10)
 */
  __pyx_t_1 = __pyx_v_self->team2_color;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_f_8pyspades_10networking_7loaders_write_team_color(__pyx_v_reader, ((PyObject*)__pyx_t_1));
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":579
 *         write_team_color(reader, self.team1_color)
 *         write_team_color(reader, self.team2_color)
 *         reader.writeString(encode(self.team1_name), 10)             # <<<<<<<<<<<<<<
 *         reader.writeString(encode(self.team2_name), 10)
 *         reader.writeByte(self.state.id, True)
 */
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (!__pyx_t_3) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_self->team1_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 579, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_self->team1_name};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 579, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_self->team1_name};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 579, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    {
      __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
      __Pyx_INCREF(__pyx_v_self->team1_name);
      __Pyx_GIVEREF(__pyx_v_self->team1_name);
      PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_self->team1_name);
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 579, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.size = 10;
  __pyx_t_2 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeString(__pyx_v_reader, __pyx_t_1, 0, &__pyx_t_8); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 579, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyspades/networking/loaders.pyx":580
 *         write_team_color(reader, self.team2_color)
 *         reader.writeString(encode(self.team1_name), 10)
 *         reader.writeString(encode(self.team2_name), 10)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.state.id, True)
 *         self.state.write(reader)
 */
  __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_encode); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_1);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_1, function);
    }
  }
  if (!__pyx_t_5) {
    __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_self->team2_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 580, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_1)) {
      PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_self->team2_name};
      __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 580, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_2);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
      PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_v_self->team2_name};
      __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 580, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_2);
    } else
    #endif
    {
      __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 580, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5); __pyx_t_5 = NULL;
      __Pyx_INCREF(__pyx_v_self->team2_name);
      __Pyx_GIVEREF(__pyx_v_self->team2_name);
      PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_v_self->team2_name);
      __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 580, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_2);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.size = 10;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeString(__pyx_v_reader, __pyx_t_2, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":581
 *         reader.writeString(encode(self.team1_name), 10)
 *         reader.writeString(encode(self.team2_name), 10)
 *         reader.writeByte(self.state.id, True)             # <<<<<<<<<<<<<<
 *         self.state.write(reader)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self->state), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 581, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":582
 *         reader.writeString(encode(self.team2_name), 10)
 *         reader.writeByte(self.state.id, True)
 *         self.state.write(reader)             # <<<<<<<<<<<<<<
 * 
 * cdef class KillAction(Loader):
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader *)__pyx_v_self->state->__pyx_vtab)->write(__pyx_v_self->state, __pyx_v_reader, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":573
 *         self.state = modes[mode](reader)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.StateData.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 573, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_2write(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_9StateData_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.StateData.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":556
 * 
 *     cdef public:
 *         int player_id             # <<<<<<<<<<<<<<
 *         tuple fog_color
 *         tuple team1_color
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 556, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.StateData.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 556, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.StateData.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":557
 *     cdef public:
 *         int player_id
 *         tuple fog_color             # <<<<<<<<<<<<<<
 *         tuple team1_color
 *         tuple team2_color
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_9fog_color_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_9fog_color_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_9fog_color___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_9fog_color___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->fog_color);
  __pyx_r = __pyx_v_self->fog_color;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_9fog_color_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_9fog_color_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_9fog_color_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_9fog_color_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyTuple_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 557, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->fog_color);
  __Pyx_DECREF(__pyx_v_self->fog_color);
  __pyx_v_self->fog_color = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.StateData.fog_color.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_9fog_color_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_9fog_color_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_9fog_color_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_9fog_color_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->fog_color);
  __Pyx_DECREF(__pyx_v_self->fog_color);
  __pyx_v_self->fog_color = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":558
 *         int player_id
 *         tuple fog_color
 *         tuple team1_color             # <<<<<<<<<<<<<<
 *         tuple team2_color
 *         Loader state
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_11team1_color_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_11team1_color_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team1_color___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_11team1_color___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->team1_color);
  __pyx_r = __pyx_v_self->team1_color;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team1_color_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team1_color_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team1_color_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team1_color_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyTuple_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 558, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->team1_color);
  __Pyx_DECREF(__pyx_v_self->team1_color);
  __pyx_v_self->team1_color = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.StateData.team1_color.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team1_color_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team1_color_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team1_color_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team1_color_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->team1_color);
  __Pyx_DECREF(__pyx_v_self->team1_color);
  __pyx_v_self->team1_color = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":559
 *         tuple fog_color
 *         tuple team1_color
 *         tuple team2_color             # <<<<<<<<<<<<<<
 *         Loader state
 *         object team1_name, team2_name
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_11team2_color_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_11team2_color_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team2_color___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_11team2_color___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->team2_color);
  __pyx_r = __pyx_v_self->team2_color;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team2_color_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team2_color_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team2_color_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team2_color_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyTuple_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 559, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->team2_color);
  __Pyx_DECREF(__pyx_v_self->team2_color);
  __pyx_v_self->team2_color = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.StateData.team2_color.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team2_color_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team2_color_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team2_color_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_11team2_color_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->team2_color);
  __Pyx_DECREF(__pyx_v_self->team2_color);
  __pyx_v_self->team2_color = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":560
 *         tuple team1_color
 *         tuple team2_color
 *         Loader state             # <<<<<<<<<<<<<<
 *         object team1_name, team2_name
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_5state_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_5state_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_5state___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_5state___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(((PyObject *)__pyx_v_self->state));
  __pyx_r = ((PyObject *)__pyx_v_self->state);
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_5state_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_5state_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_5state_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_5state_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(((__pyx_v_value) == Py_None) || likely(__Pyx_TypeTest(__pyx_v_value, __pyx_ptype_8pyspades_10networking_6loader_Loader))))) __PYX_ERR(0, 560, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->state);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->state));
  __pyx_v_self->state = ((struct __pyx_obj_8pyspades_10networking_6loader_Loader *)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.StateData.state.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_5state_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_5state_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_5state_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_5state_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->state);
  __Pyx_DECREF(((PyObject *)__pyx_v_self->state));
  __pyx_v_self->state = ((struct __pyx_obj_8pyspades_10networking_6loader_Loader *)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":561
 *         tuple team2_color
 *         Loader state
 *         object team1_name, team2_name             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_10team1_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_10team1_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team1_name___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_10team1_name___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->team1_name);
  __pyx_r = __pyx_v_self->team1_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team1_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team1_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team1_name_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team1_name_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_INCREF(__pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_GOTREF(__pyx_v_self->team1_name);
  __Pyx_DECREF(__pyx_v_self->team1_name);
  __pyx_v_self->team1_name = __pyx_v_value;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team1_name_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team1_name_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team1_name_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team1_name_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->team1_name);
  __Pyx_DECREF(__pyx_v_self->team1_name);
  __pyx_v_self->team1_name = Py_None;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_10team2_name_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9StateData_10team2_name_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team2_name___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9StateData_10team2_name___get__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->team2_name);
  __pyx_r = __pyx_v_self->team2_name;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team2_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team2_name_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team2_name_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team2_name_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_INCREF(__pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_GOTREF(__pyx_v_self->team2_name);
  __Pyx_DECREF(__pyx_v_self->team2_name);
  __pyx_v_self->team2_name = __pyx_v_value;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team2_name_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team2_name_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team2_name_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9StateData_10team2_name_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_StateData *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->team2_name);
  __Pyx_DECREF(__pyx_v_self->team2_name);
  __pyx_v_self->team2_name = Py_None;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":590
 *         int player_id, killer_id, kill_type, respawn_time
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.killer_id = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10KillAction_read(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 590, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10KillAction_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 590, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 590, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 590, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 590, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 590, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":591
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.killer_id = reader.readByte(True)
 *         self.kill_type = reader.readByte(True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 591, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":592
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.killer_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.kill_type = reader.readByte(True)
 *         self.respawn_time = reader.readByte(True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 592, __pyx_L1_error)
  __pyx_v_self->killer_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":593
 *         self.player_id = reader.readByte(True)
 *         self.killer_id = reader.readByte(True)
 *         self.kill_type = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.respawn_time = reader.readByte(True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 593, __pyx_L1_error)
  __pyx_v_self->kill_type = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":594
 *         self.killer_id = reader.readByte(True)
 *         self.kill_type = reader.readByte(True)
 *         self.respawn_time = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 594, __pyx_L1_error)
  __pyx_v_self->respawn_time = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":590
 *         int player_id, killer_id, kill_type, respawn_time
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.killer_id = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.KillAction.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 590, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10KillAction_read(((struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10KillAction_read(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_10KillAction_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.KillAction.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":596
 *         self.respawn_time = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10KillAction_write(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 596, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10KillAction_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 596, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 596, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 596, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 596, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 596, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":597
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.killer_id, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 597, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":598
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.killer_id, True)
 *         reader.writeByte(self.kill_type, True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":599
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.killer_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.kill_type, True)
 *         reader.writeByte(self.respawn_time, True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->killer_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":600
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.killer_id, True)
 *         reader.writeByte(self.kill_type, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.respawn_time, True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->kill_type, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":601
 *         reader.writeByte(self.killer_id, True)
 *         reader.writeByte(self.kill_type, True)
 *         reader.writeByte(self.respawn_time, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class ChatMessage(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->respawn_time, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":596
 *         self.respawn_time = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.KillAction.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 596, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10KillAction_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10KillAction_2write(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_10KillAction_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 596, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.KillAction.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":588
 * 
 *     cdef public:
 *         int player_id, killer_id, kill_type, respawn_time             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10KillAction_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10KillAction_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.KillAction.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10KillAction_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10KillAction_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10KillAction_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10KillAction_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 588, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.KillAction.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_9killer_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_9killer_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10KillAction_9killer_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10KillAction_9killer_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->killer_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.KillAction.killer_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10KillAction_9killer_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10KillAction_9killer_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10KillAction_9killer_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10KillAction_9killer_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 588, __pyx_L1_error)
  __pyx_v_self->killer_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.KillAction.killer_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_9kill_type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_9kill_type_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10KillAction_9kill_type___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10KillAction_9kill_type___get__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->kill_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.KillAction.kill_type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10KillAction_9kill_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10KillAction_9kill_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10KillAction_9kill_type_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10KillAction_9kill_type_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 588, __pyx_L1_error)
  __pyx_v_self->kill_type = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.KillAction.kill_type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_12respawn_time_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10KillAction_12respawn_time_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10KillAction_12respawn_time___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10KillAction_12respawn_time___get__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->respawn_time); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.KillAction.respawn_time.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10KillAction_12respawn_time_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10KillAction_12respawn_time_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10KillAction_12respawn_time_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10KillAction_12respawn_time_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 588, __pyx_L1_error)
  __pyx_v_self->respawn_time = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.KillAction.respawn_time.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":610
 *         object value
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.chat_type = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11ChatMessage_read(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 610, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 610, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 610, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 610, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 610, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 610, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":611
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.chat_type = reader.readByte(True)
 *         self.value = decode(reader.readString())
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 611, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":612
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.chat_type = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.value = decode(reader.readString())
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 612, __pyx_L1_error)
  __pyx_v_self->chat_type = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":613
 *         self.player_id = reader.readByte(True)
 *         self.chat_type = reader.readByte(True)
 *         self.value = decode(reader.readString())             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_decode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readString(__pyx_v_reader, 0, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_5)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_5);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (!__pyx_t_5) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 613, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 613, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_5, __pyx_t_3};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 613, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else
    #endif
    {
      __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 613, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); __pyx_t_5 = NULL;
      __Pyx_GIVEREF(__pyx_t_3);
      PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_3);
      __pyx_t_3 = 0;
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 613, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->value);
  __Pyx_DECREF(__pyx_v_self->value);
  __pyx_v_self->value = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":610
 *         object value
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.chat_type = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChatMessage.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 610, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_read(((struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_read(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_11ChatMessage_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 610, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChatMessage.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":615
 *         self.value = decode(reader.readString())
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11ChatMessage_write(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 615, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 615, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 615, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 615, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 615, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":616
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.chat_type, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 616, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":617
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.chat_type, True)
 *         reader.writeString(encode(self.value))
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":618
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.chat_type, True)             # <<<<<<<<<<<<<<
 *         reader.writeString(encode(self.value))
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->chat_type, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":619
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.chat_type, True)
 *         reader.writeString(encode(self.value))             # <<<<<<<<<<<<<<
 * 
 * cdef class MapStart(Loader):
 */
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_encode); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    if (likely(__pyx_t_3)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_2, function);
    }
  }
  if (!__pyx_t_3) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_self->value); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  } else {
    #if CYTHON_FAST_PYCALL
    if (PyFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_self->value};
      __pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 619, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    #if CYTHON_FAST_PYCCALL
    if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
      PyObject *__pyx_temp[2] = {__pyx_t_3, __pyx_v_self->value};
      __pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 619, __pyx_L1_error)
      __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_GOTREF(__pyx_t_1);
    } else
    #endif
    {
      __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 619, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_5);
      __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
      __Pyx_INCREF(__pyx_v_self->value);
      __Pyx_GIVEREF(__pyx_v_self->value);
      PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_self->value);
      __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 619, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_1);
      __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    }
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeString(__pyx_v_reader, __pyx_t_1, 0, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 619, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyspades/networking/loaders.pyx":615
 *         self.value = decode(reader.readString())
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChatMessage.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 615, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_11ChatMessage_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChatMessage.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":607
 * 
 *     cdef public:
 *         unsigned int player_id, chat_type             # <<<<<<<<<<<<<<
 *         object value
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChatMessage.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 607, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ChatMessage.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_9chat_type_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_9chat_type_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_9chat_type___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_9chat_type___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->chat_type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChatMessage.chat_type.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_9chat_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_9chat_type_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_9chat_type_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_9chat_type_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 607, __pyx_L1_error)
  __pyx_v_self->chat_type = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ChatMessage.chat_type.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":608
 *     cdef public:
 *         unsigned int player_id, chat_type
 *         object value             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_5value_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_5value_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_5value___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_5value___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->value);
  __pyx_r = __pyx_v_self->value;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_5value_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_5value_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_5value_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_INCREF(__pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_GOTREF(__pyx_v_self->value);
  __Pyx_DECREF(__pyx_v_self->value);
  __pyx_v_self->value = __pyx_v_value;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_5value_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_5value_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_5value_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11ChatMessage_5value_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->value);
  __Pyx_DECREF(__pyx_v_self->value);
  __pyx_v_self->value = Py_None;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":627
 *         unsigned int size
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.size = reader.readInt(True, False)
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapStart_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8MapStart_read(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PY_LONG_LONG __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readInt __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8MapStart_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 627, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 627, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 627, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 627, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 627, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":628
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.size = reader.readInt(True, False)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 2;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_7.big_endian = 0;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -9223372036854775808LL)) __PYX_ERR(0, 628, __pyx_L1_error)
  __pyx_v_self->size = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":627
 *         unsigned int size
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.size = reader.readInt(True, False)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.MapStart.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapStart_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapStart_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 627, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8MapStart_read(((struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8MapStart_read(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_8MapStart_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.MapStart.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":630
 *         self.size = reader.readInt(True, False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeInt(self.size, True, False)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapStart_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8MapStart_write(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeInt __pyx_t_8;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 630, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8MapStart_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 630, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 630, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 630, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 630, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 630, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":631
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeInt(self.size, True, False)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 631, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":632
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeInt(self.size, True, False)             # <<<<<<<<<<<<<<
 * 
 * cdef class MapChunk(Loader):
 */
  __pyx_t_8.__pyx_n = 2;
  __pyx_t_8.__pyx_unsigned = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeInt(__pyx_v_reader, __pyx_v_self->size, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 632, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":630
 *         self.size = reader.readInt(True, False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeInt(self.size, True, False)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.MapStart.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapStart_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapStart_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 630, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8MapStart_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8MapStart_2write(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_8MapStart_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.MapStart.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":625
 * 
 *     cdef public:
 *         unsigned int size             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapStart_4size_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapStart_4size_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8MapStart_4size___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8MapStart_4size___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->size); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.MapStart.size.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8MapStart_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8MapStart_4size_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8MapStart_4size_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8MapStart_4size_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 625, __pyx_L1_error)
  __pyx_v_self->size = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.MapStart.size.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":640
 *         object data
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.data = reader.read()
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapChunk_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8MapChunk_read(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8MapChunk_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 640, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 640, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 640, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 640, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 640, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":641
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.data = reader.read()             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->read(__pyx_v_reader, 0, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->data);
  __Pyx_DECREF(__pyx_v_self->data);
  __pyx_v_self->data = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":640
 *         object data
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.data = reader.read()
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.MapChunk.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapChunk_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapChunk_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 640, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8MapChunk_read(((struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8MapChunk_read(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_8MapChunk_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.MapChunk.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":643
 *         self.data = reader.read()
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.write(self.data)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapChunk_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8MapChunk_write(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 643, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8MapChunk_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 643, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 643, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 643, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 643, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 643, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":644
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.write(self.data)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 644, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":645
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.write(self.data)             # <<<<<<<<<<<<<<
 * 
 * cdef class PlayerLeft(Loader):
 */
  __pyx_t_1 = __pyx_v_self->data;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->write(__pyx_v_reader, __pyx_t_1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyspades/networking/loaders.pyx":643
 *         self.data = reader.read()
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.write(self.data)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.MapChunk.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapChunk_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapChunk_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 643, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8MapChunk_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8MapChunk_2write(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_8MapChunk_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.MapChunk.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":638
 * 
 *     cdef public:
 *         object data             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapChunk_4data_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8MapChunk_4data_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8MapChunk_4data___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8MapChunk_4data___get__(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->data);
  __pyx_r = __pyx_v_self->data;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8MapChunk_4data_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8MapChunk_4data_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8MapChunk_4data_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8MapChunk_4data_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__", 0);
  __Pyx_INCREF(__pyx_v_value);
  __Pyx_GIVEREF(__pyx_v_value);
  __Pyx_GOTREF(__pyx_v_self->data);
  __Pyx_DECREF(__pyx_v_self->data);
  __pyx_v_self->data = __pyx_v_value;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8MapChunk_4data_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8MapChunk_4data_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8MapChunk_4data_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8MapChunk_4data_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->data);
  __Pyx_DECREF(__pyx_v_self->data);
  __pyx_v_self->data = Py_None;

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":653
 *         int player_id
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10PlayerLeft_read(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 653, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 653, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 653, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 653, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 653, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 653, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":654
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 654, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":653
 *         int player_id
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.PlayerLeft.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 653, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10PlayerLeft_read(((struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10PlayerLeft_read(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_10PlayerLeft_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 653, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.PlayerLeft.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":656
 *         self.player_id = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10PlayerLeft_write(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 656, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 656, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 656, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 656, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 656, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 656, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":657
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 657, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":658
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class TerritoryCapture(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 658, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":656
 *         self.player_id = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.PlayerLeft.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 656, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10PlayerLeft_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10PlayerLeft_2write(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_10PlayerLeft_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 656, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.PlayerLeft.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":651
 * 
 *     cdef public:
 *         int player_id             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10PlayerLeft_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10PlayerLeft_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 651, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.PlayerLeft.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10PlayerLeft_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10PlayerLeft_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 651, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.PlayerLeft.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":666
 *         unsigned int object_index, winning, state
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.object_index = reader.readByte(True)
 *         self.winning = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_16TerritoryCapture_read(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 666, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 666, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 666, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 666, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 666, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 666, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":667
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.object_index = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.winning = reader.readByte(True)
 *         self.state = reader.readByte(True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 667, __pyx_L1_error)
  __pyx_v_self->object_index = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":668
 *     cpdef read(self, ByteReader reader):
 *         self.object_index = reader.readByte(True)
 *         self.winning = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.state = reader.readByte(True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 668, __pyx_L1_error)
  __pyx_v_self->winning = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":669
 *         self.object_index = reader.readByte(True)
 *         self.winning = reader.readByte(True)
 *         self.state = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 669, __pyx_L1_error)
  __pyx_v_self->state = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":666
 *         unsigned int object_index, winning, state
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.object_index = reader.readByte(True)
 *         self.winning = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.TerritoryCapture.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 666, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_read(((struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_read(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_16TerritoryCapture_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 666, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.TerritoryCapture.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":671
 *         self.state = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.object_index, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_16TerritoryCapture_write(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 671, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 671, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 671, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 671, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 671, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 671, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":672
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.object_index, True)
 *         reader.writeByte(self.winning, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":673
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.object_index, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.winning, True)
 *         reader.writeByte(self.state, True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->object_index, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 673, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":674
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.object_index, True)
 *         reader.writeByte(self.winning, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.state, True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->winning, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 674, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":675
 *         reader.writeByte(self.object_index, True)
 *         reader.writeByte(self.winning, True)
 *         reader.writeByte(self.state, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class ProgressBar(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->state, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":671
 *         self.state = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.object_index, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.TerritoryCapture.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 671, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_2write(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_16TerritoryCapture_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 671, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.TerritoryCapture.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":664
 * 
 *     cdef public:
 *         unsigned int object_index, winning, state             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_12object_index_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_12object_index_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_12object_index___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_12object_index___get__(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->object_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.TerritoryCapture.object_index.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_12object_index_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_12object_index_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_12object_index_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_12object_index_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 664, __pyx_L1_error)
  __pyx_v_self->object_index = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.TerritoryCapture.object_index.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_7winning_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_7winning_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_7winning___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_7winning___get__(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->winning); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.TerritoryCapture.winning.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_7winning_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_7winning_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_7winning_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_7winning_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 664, __pyx_L1_error)
  __pyx_v_self->winning = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.TerritoryCapture.winning.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_5state_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_5state_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_5state___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_5state___get__(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->state); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.TerritoryCapture.state.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_5state_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_5state_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_5state_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_16TerritoryCapture_5state_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 664, __pyx_L1_error)
  __pyx_v_self->state = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.TerritoryCapture.state.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":685
 *         float progress
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.object_index = reader.readByte(True)
 *         self.capturing_team = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11ProgressBar_read(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  float __pyx_t_8;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readFloat __pyx_t_9;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 685, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 685, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 685, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 685, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 685, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 685, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":686
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.object_index = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.capturing_team = reader.readByte(True)
 *         self.rate = reader.readByte(False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 686, __pyx_L1_error)
  __pyx_v_self->object_index = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":687
 *     cpdef read(self, ByteReader reader):
 *         self.object_index = reader.readByte(True)
 *         self.capturing_team = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.rate = reader.readByte(False)
 *         self.progress = reader.readFloat(False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 687, __pyx_L1_error)
  __pyx_v_self->capturing_team = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":688
 *         self.object_index = reader.readByte(True)
 *         self.capturing_team = reader.readByte(True)
 *         self.rate = reader.readByte(False)             # <<<<<<<<<<<<<<
 *         self.progress = reader.readFloat(False)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 0;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 688, __pyx_L1_error)
  __pyx_v_self->rate = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":689
 *         self.capturing_team = reader.readByte(True)
 *         self.rate = reader.readByte(False)
 *         self.progress = reader.readFloat(False)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_9.__pyx_n = 1;
  __pyx_t_9.big_endian = 0;
  __pyx_t_8 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readFloat(__pyx_v_reader, 0, &__pyx_t_9); if (unlikely(__pyx_t_8 == (Py_HUGE_VAL * 0) && PyErr_Occurred())) __PYX_ERR(0, 689, __pyx_L1_error)
  __pyx_v_self->progress = __pyx_t_8;

  /* "pyspades/networking/loaders.pyx":685
 *         float progress
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.object_index = reader.readByte(True)
 *         self.capturing_team = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ProgressBar.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 685, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_read(((struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_read(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_11ProgressBar_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 685, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ProgressBar.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":691
 *         self.progress = reader.readFloat(False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.object_index, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11ProgressBar_write(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeFloat __pyx_t_8;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 691, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 691, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 691, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 691, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 691, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 691, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":692
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.object_index, True)
 *         reader.writeByte(self.capturing_team, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 692, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":693
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.object_index, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.capturing_team, True)
 *         reader.writeByte(self.rate, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->object_index, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 693, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":694
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.object_index, True)
 *         reader.writeByte(self.capturing_team, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.rate, False)
 *         reader.writeFloat(self.progress, False)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->capturing_team, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":695
 *         reader.writeByte(self.object_index, True)
 *         reader.writeByte(self.capturing_team, True)
 *         reader.writeByte(self.rate, False)             # <<<<<<<<<<<<<<
 *         reader.writeFloat(self.progress, False)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->rate, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":696
 *         reader.writeByte(self.capturing_team, True)
 *         reader.writeByte(self.rate, False)
 *         reader.writeFloat(self.progress, False)             # <<<<<<<<<<<<<<
 * 
 * cdef class IntelCapture(Loader):
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeFloat(__pyx_v_reader, __pyx_v_self->progress, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":691
 *         self.progress = reader.readFloat(False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.object_index, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ProgressBar.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 691, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_11ProgressBar_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 691, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ProgressBar.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":681
 * 
 *     cdef public:
 *         unsigned int object_index, capturing_team             # <<<<<<<<<<<<<<
 *         int rate
 *         float progress
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_12object_index_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_12object_index_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_12object_index___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_12object_index___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->object_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ProgressBar.object_index.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_12object_index_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_12object_index_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_12object_index_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_12object_index_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 681, __pyx_L1_error)
  __pyx_v_self->object_index = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ProgressBar.object_index.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_14capturing_team_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_14capturing_team_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_14capturing_team___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_14capturing_team___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_unsigned_int(__pyx_v_self->capturing_team); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ProgressBar.capturing_team.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_14capturing_team_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_14capturing_team_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_14capturing_team_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_14capturing_team_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  unsigned int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_unsigned_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 681, __pyx_L1_error)
  __pyx_v_self->capturing_team = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ProgressBar.capturing_team.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":682
 *     cdef public:
 *         unsigned int object_index, capturing_team
 *         int rate             # <<<<<<<<<<<<<<
 *         float progress
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_4rate_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_4rate_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_4rate___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_4rate___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->rate); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 682, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ProgressBar.rate.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_4rate_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_4rate_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_4rate_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_4rate_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 682, __pyx_L1_error)
  __pyx_v_self->rate = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ProgressBar.rate.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":683
 *         unsigned int object_index, capturing_team
 *         int rate
 *         float progress             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_8progress_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_8progress_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_8progress___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_8progress___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->progress); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ProgressBar.progress.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_8progress_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_8progress_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_8progress_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11ProgressBar_8progress_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 683, __pyx_L1_error)
  __pyx_v_self->progress = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ProgressBar.progress.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":705
 *         bint winning
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.winning = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12IntelCapture_read(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 705, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 705, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 705, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 705, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 705, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 705, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":706
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.winning = reader.readByte(True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 706, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":707
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.winning = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 707, __pyx_L1_error)
  __pyx_v_self->winning = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":705
 *         bint winning
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.winning = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelCapture.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 705, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_read(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_read(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_12IntelCapture_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelCapture.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":709
 *         self.winning = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12IntelCapture_write(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 709, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 709, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 709, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 709, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 709, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":710
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.winning, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 710, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 710, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":711
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.winning, True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":712
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.winning, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class IntelPickup(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->winning, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 712, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":709
 *         self.winning = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelCapture.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 709, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_2write(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_12IntelCapture_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelCapture.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":702
 * 
 *     cdef public:
 *         int player_id             # <<<<<<<<<<<<<<
 *         bint winning
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelCapture.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 702, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelCapture.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":703
 *     cdef public:
 *         int player_id
 *         bint winning             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_7winning_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_7winning_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_7winning___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_7winning___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyBool_FromLong(__pyx_v_self->winning); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelCapture.winning.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_7winning_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_7winning_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_7winning_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12IntelCapture_7winning_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 703, __pyx_L1_error)
  __pyx_v_self->winning = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelCapture.winning.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":720
 *         int player_id
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11IntelPickup_read(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 720, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 720, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 720, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 720, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 720, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 720, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":721
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 721, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":720
 *         int player_id
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelPickup.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 720, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11IntelPickup_read(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11IntelPickup_read(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_11IntelPickup_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 720, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelPickup.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":723
 *         self.player_id = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_11IntelPickup_write(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 723, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 723, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 723, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 723, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 723, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 723, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":724
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 724, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 724, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 724, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":725
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class IntelDrop(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":723
 *         self.player_id = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelPickup.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 723, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11IntelPickup_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11IntelPickup_2write(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_11IntelPickup_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelPickup.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":718
 * 
 *     cdef public:
 *         int player_id             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11IntelPickup_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_11IntelPickup_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelPickup.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_11IntelPickup_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_11IntelPickup_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 718, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelPickup.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":734
 *         float x, y, z
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         read_position(reader, &self.x, &self.y, &self.z)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9IntelDrop_read(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 734, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 734, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 734, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 734, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 734, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 734, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":735
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         read_position(reader, &self.x, &self.y, &self.z)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 735, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":736
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         read_position(reader, &self.x, &self.y, &self.z)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_f_8pyspades_10networking_7loaders_read_position(__pyx_v_reader, (&__pyx_v_self->x), (&__pyx_v_self->y), (&__pyx_v_self->z));

  /* "pyspades/networking/loaders.pyx":734
 *         float x, y, z
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         read_position(reader, &self.x, &self.y, &self.z)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelDrop.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 734, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_read(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_read(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_9IntelDrop_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 734, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelDrop.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":738
 *         read_position(reader, &self.x, &self.y, &self.z)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_9IntelDrop_write(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 738, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 738, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 738, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 738, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 738, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 738, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":739
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         write_position(reader, self.x, self.y, self.z)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 739, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 739, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 739, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":740
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         write_position(reader, self.x, self.y, self.z)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":741
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         write_position(reader, self.x, self.y, self.z)             # <<<<<<<<<<<<<<
 * 
 * cdef class Restock(Loader):
 */
  __pyx_f_8pyspades_10networking_7loaders_write_position(__pyx_v_reader, __pyx_v_self->x, __pyx_v_self->y, __pyx_v_self->z);

  /* "pyspades/networking/loaders.pyx":738
 *         read_position(reader, &self.x, &self.y, &self.z)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelDrop.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 738, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_2write(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_9IntelDrop_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 738, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelDrop.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":731
 * 
 *     cdef public:
 *         int player_id             # <<<<<<<<<<<<<<
 *         float x, y, z
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 731, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelDrop.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 731, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelDrop.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":732
 *     cdef public:
 *         int player_id
 *         float x, y, z             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1x_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1x_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1x___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1x___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelDrop.x.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1x_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1x_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1x_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 732, __pyx_L1_error)
  __pyx_v_self->x = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelDrop.x.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1y_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1y_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1y___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1y___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->y); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelDrop.y.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1y_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1y_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1y_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 732, __pyx_L1_error)
  __pyx_v_self->y = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelDrop.y.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1z_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1z_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1z___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1z___get__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->z); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelDrop.z.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1z_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1z_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_9IntelDrop_1z_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  float __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 732, __pyx_L1_error)
  __pyx_v_self->z = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.IntelDrop.z.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":749
 *         int player_id
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7Restock_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_7Restock_read(struct __pyx_obj_8pyspades_10networking_7loaders_Restock *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 749, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7Restock_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 749, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 749, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 749, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 749, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 749, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":750
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 750, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":749
 *         int player_id
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.Restock.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7Restock_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7Restock_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 749, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7Restock_read(((struct __pyx_obj_8pyspades_10networking_7loaders_Restock *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7Restock_read(struct __pyx_obj_8pyspades_10networking_7loaders_Restock *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_7Restock_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 749, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.Restock.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":752
 *         self.player_id = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7Restock_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_7Restock_write(struct __pyx_obj_8pyspades_10networking_7loaders_Restock *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 752, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7Restock_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 752, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 752, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 752, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 752, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 752, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":753
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 753, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 753, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 753, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":754
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class FogColor(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":752
 *         self.player_id = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.Restock.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7Restock_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7Restock_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 752, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7Restock_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_Restock *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7Restock_2write(struct __pyx_obj_8pyspades_10networking_7loaders_Restock *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_7Restock_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 752, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.Restock.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":747
 * 
 *     cdef public:
 *         int player_id             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7Restock_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_7Restock_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7Restock_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_Restock *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_7Restock_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_Restock *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.Restock.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_7Restock_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_7Restock_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_7Restock_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_Restock *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_7Restock_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_Restock *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 747, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.Restock.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":762
 *         int color
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.color = reader.readInt(True, False) >> 8
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8FogColor_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8FogColor_read(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PY_LONG_LONG __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readInt __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 762, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8FogColor_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 762, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 762, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 762, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 762, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 762, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":763
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.color = reader.readInt(True, False) >> 8             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 2;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_7.big_endian = 0;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -9223372036854775808LL)) __PYX_ERR(0, 763, __pyx_L1_error)
  __pyx_v_self->color = (__pyx_t_6 >> 8);

  /* "pyspades/networking/loaders.pyx":762
 *         int color
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.color = reader.readInt(True, False) >> 8
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.FogColor.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8FogColor_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8FogColor_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 762, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8FogColor_read(((struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8FogColor_read(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_8FogColor_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 762, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.FogColor.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":765
 *         self.color = reader.readInt(True, False) >> 8
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeInt(self.color << 8, True, False)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8FogColor_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_8FogColor_write(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeInt __pyx_t_8;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 765, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8FogColor_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 765, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 765, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 765, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 765, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 765, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":766
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeInt(self.color << 8, True, False)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 766, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":767
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeInt(self.color << 8, True, False)             # <<<<<<<<<<<<<<
 * 
 * cdef class WeaponReload(Loader):
 */
  __pyx_t_8.__pyx_n = 2;
  __pyx_t_8.__pyx_unsigned = 1;
  __pyx_t_8.big_endian = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeInt(__pyx_v_reader, (__pyx_v_self->color << 8), 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 767, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":765
 *         self.color = reader.readInt(True, False) >> 8
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeInt(self.color << 8, True, False)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.FogColor.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8FogColor_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8FogColor_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 765, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8FogColor_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8FogColor_2write(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_8FogColor_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 765, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.FogColor.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":760
 * 
 *     cdef public:
 *         int color             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8FogColor_5color_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_8FogColor_5color_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8FogColor_5color___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_8FogColor_5color___get__(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->color); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 760, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.FogColor.color.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_8FogColor_5color_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_8FogColor_5color_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_8FogColor_5color_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_8FogColor_5color_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 760, __pyx_L1_error)
  __pyx_v_self->color = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.FogColor.color.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":775
 *         int player_id, clip_ammo, reserve_ammo
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.clip_ammo = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12WeaponReload_read(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 775, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 775, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 775, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 775, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 775, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 775, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":776
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.clip_ammo = reader.readByte(True)
 *         self.reserve_ammo = reader.readByte(True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 776, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":777
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.clip_ammo = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.reserve_ammo = reader.readByte(True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 777, __pyx_L1_error)
  __pyx_v_self->clip_ammo = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":778
 *         self.player_id = reader.readByte(True)
 *         self.clip_ammo = reader.readByte(True)
 *         self.reserve_ammo = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 778, __pyx_L1_error)
  __pyx_v_self->reserve_ammo = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":775
 *         int player_id, clip_ammo, reserve_ammo
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.clip_ammo = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponReload.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 775, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_read(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_read(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_12WeaponReload_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponReload.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":780
 *         self.reserve_ammo = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12WeaponReload_write(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 780, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 780, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 780, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 780, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 780, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 780, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":781
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.clip_ammo, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 781, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 781, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 781, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":782
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.clip_ammo, True)
 *         reader.writeByte(self.reserve_ammo, True)
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 782, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":783
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.clip_ammo, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.reserve_ammo, True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->clip_ammo, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 783, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":784
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.clip_ammo, True)
 *         reader.writeByte(self.reserve_ammo, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class ChangeTeam(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->reserve_ammo, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":780
 *         self.reserve_ammo = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponReload.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 780, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_2write(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_12WeaponReload_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponReload.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":773
 * 
 *     cdef public:
 *         int player_id, clip_ammo, reserve_ammo             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponReload.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 773, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponReload.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_9clip_ammo_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_9clip_ammo_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_9clip_ammo___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_9clip_ammo___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->clip_ammo); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponReload.clip_ammo.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_9clip_ammo_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_9clip_ammo_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_9clip_ammo_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_9clip_ammo_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 773, __pyx_L1_error)
  __pyx_v_self->clip_ammo = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponReload.clip_ammo.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_12reserve_ammo_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_12reserve_ammo_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_12reserve_ammo___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_12reserve_ammo___get__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->reserve_ammo); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponReload.reserve_ammo.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_12reserve_ammo_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_12reserve_ammo_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_12reserve_ammo_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12WeaponReload_12reserve_ammo_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 773, __pyx_L1_error)
  __pyx_v_self->reserve_ammo = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.WeaponReload.reserve_ammo.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":792
 *         int player_id, team
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.team = reader.readByte(False)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10ChangeTeam_read(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 792, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 792, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 792, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 792, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 792, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 792, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":793
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.team = reader.readByte(False)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 793, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":794
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.team = reader.readByte(False)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 0;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 794, __pyx_L1_error)
  __pyx_v_self->team = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":792
 *         int player_id, team
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.team = reader.readByte(False)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeTeam.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 792, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_read(((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_read(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_10ChangeTeam_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 792, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeTeam.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":796
 *         self.team = reader.readByte(False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10ChangeTeam_write(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 796, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 796, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":797
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.team, False)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 797, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 797, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 797, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":798
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.team, False)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":799
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.team, False)             # <<<<<<<<<<<<<<
 * 
 * cdef class ChangeWeapon(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->team, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":796
 *         self.team = reader.readByte(False)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeTeam.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 796, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_10ChangeTeam_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeTeam.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":790
 * 
 *     cdef public:
 *         int player_id, team             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeTeam.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 790, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeTeam.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_4team_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_4team_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_4team___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_4team___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->team); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeTeam.team.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_4team_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_4team_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_4team_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10ChangeTeam_4team_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 790, __pyx_L1_error)
  __pyx_v_self->team = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeTeam.team.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":807
 *         int player_id, weapon
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.weapon = reader.readByte(True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12ChangeWeapon_read(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 807, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 807, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 807, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 807, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 807, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 807, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":808
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         self.weapon = reader.readByte(True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 808, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":809
 *     cpdef read(self, ByteReader reader):
 *         self.player_id = reader.readByte(True)
 *         self.weapon = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter reader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 809, __pyx_L1_error)
  __pyx_v_self->weapon = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":807
 *         int player_id, weapon
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.player_id = reader.readByte(True)
 *         self.weapon = reader.readByte(True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeWeapon.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 807, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_read(((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_read(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_12ChangeWeapon_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 807, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeWeapon.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":811
 *         self.weapon = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_12ChangeWeapon_write(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 811, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 811, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 811, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 811, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 811, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 811, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":812
 * 
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.weapon, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":813
 *     cpdef write(self, ByteWriter reader):
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.weapon, True)
 * 
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->player_id, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":814
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 *         reader.writeByte(self.weapon, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class HandShakeInit(Loader):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader->__pyx_vtab)->writeByte(__pyx_v_reader, __pyx_v_self->weapon, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":811
 *         self.weapon = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter reader):             # <<<<<<<<<<<<<<
 *         reader.writeByte(self.id, True)
 *         reader.writeByte(self.player_id, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeWeapon.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "reader", 0))) __PYX_ERR(0, 811, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_12ChangeWeapon_write(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeWeapon.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":805
 * 
 *     cdef public:
 *         int player_id, weapon             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_9player_id_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_9player_id_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_9player_id___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_9player_id___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->player_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeWeapon.player_id.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_9player_id_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_9player_id_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_9player_id_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 805, __pyx_L1_error)
  __pyx_v_self->player_id = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeWeapon.player_id.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_6weapon_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_6weapon_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_6weapon___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_6weapon___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->weapon); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeWeapon.weapon.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_6weapon_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_6weapon_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_6weapon_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_12ChangeWeapon_6weapon_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 805, __pyx_L1_error)
  __pyx_v_self->weapon = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ChangeWeapon.weapon.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":819
 *     id = 31
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13HandShakeInit_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_13HandShakeInit_read(CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 819, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_13HandShakeInit_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 819, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 819, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 819, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 819, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 819, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":820
 * 
 *     cpdef read(self, ByteReader reader):
 *         pass             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter writer):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.HandShakeInit.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":819
 *     id = 31
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13HandShakeInit_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13HandShakeInit_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 819, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13HandShakeInit_read(((struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13HandShakeInit_read(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_13HandShakeInit_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.HandShakeInit.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":822
 *         pass
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 *         writer.writeInt(42, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13HandShakeInit_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_13HandShakeInit_write(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeInt __pyx_t_8;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 822, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_13HandShakeInit_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_writer)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 822, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 822, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 822, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 822, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_writer));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_writer));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_writer));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 822, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":823
 * 
 *     cpdef write(self, ByteWriter writer):
 *         writer.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         writer.writeInt(42, True)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 823, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 823, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeByte(__pyx_v_writer, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 823, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":824
 *     cpdef write(self, ByteWriter writer):
 *         writer.writeByte(self.id, True)
 *         writer.writeInt(42, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class HandShakeReturn(Loader):
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeInt(__pyx_v_writer, 42, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 824, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":822
 *         pass
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 *         writer.writeInt(42, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.HandShakeInit.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13HandShakeInit_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_13HandShakeInit_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_writer), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "writer", 0))) __PYX_ERR(0, 822, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_13HandShakeInit_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_13HandShakeInit_2write(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_13HandShakeInit_write(__pyx_v_self, __pyx_v_writer, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 822, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.HandShakeInit.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":832
 *         int success
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.success = int(reader.readInt(True) == 42)
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15HandShakeReturn_read(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PY_LONG_LONG __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readInt __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 832, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 832, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 832, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 832, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 832, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 832, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":833
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.success = int(reader.readInt(True) == 42)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter writer):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readInt(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -9223372036854775808LL)) __PYX_ERR(0, 833, __pyx_L1_error)
  __pyx_v_self->success = ((int)(__pyx_t_6 == 42));

  /* "pyspades/networking/loaders.pyx":832
 *         int success
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.success = int(reader.readInt(True) == 42)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.HandShakeReturn.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 832, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15HandShakeReturn_read(((struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15HandShakeReturn_read(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_15HandShakeReturn_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.HandShakeReturn.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":835
 *         self.success = int(reader.readInt(True) == 42)
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15HandShakeReturn_write(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_writer)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 835, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 835, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 835, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 835, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_writer));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_writer));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_writer));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 835, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":836
 * 
 *     cpdef write(self, ByteWriter writer):
 *         writer.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class VersionRequest(Loader):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 836, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeByte(__pyx_v_writer, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":835
 *         self.success = int(reader.readInt(True) == 42)
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.HandShakeReturn.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_writer), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "writer", 0))) __PYX_ERR(0, 835, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15HandShakeReturn_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15HandShakeReturn_2write(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_15HandShakeReturn_write(__pyx_v_self, __pyx_v_writer, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.HandShakeReturn.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":830
 * 
 *     cdef public:
 *         int success             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_7success_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_7success_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15HandShakeReturn_7success___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15HandShakeReturn_7success___get__(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->success); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.HandShakeReturn.success.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_7success_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_7success_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15HandShakeReturn_7success_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15HandShakeReturn_7success_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 830, __pyx_L1_error)
  __pyx_v_self->success = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.HandShakeReturn.success.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":841
 *     id = 33
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14VersionRequest_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_14VersionRequest_read(CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 841, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_14VersionRequest_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 841, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 841, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 841, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 841, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 841, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":842
 * 
 *     cpdef read(self, ByteReader reader):
 *         pass             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter writer):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.VersionRequest.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":841
 *     id = 33
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14VersionRequest_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14VersionRequest_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 841, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14VersionRequest_read(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14VersionRequest_read(struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_14VersionRequest_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 841, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.VersionRequest.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":844
 *         pass
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14VersionRequest_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_14VersionRequest_write(struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 844, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_14VersionRequest_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_writer)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 844, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 844, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 844, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 844, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_writer));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_writer));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_writer));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 844, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":845
 * 
 *     cpdef write(self, ByteWriter writer):
 *         writer.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class VersionResponse(Loader):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 845, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeByte(__pyx_v_writer, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":844
 *         pass
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.VersionRequest.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14VersionRequest_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_14VersionRequest_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_writer), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "writer", 0))) __PYX_ERR(0, 844, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_14VersionRequest_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_14VersionRequest_2write(struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_14VersionRequest_write(__pyx_v_self, __pyx_v_writer, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 844, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.VersionRequest.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":855
 *         str os_info
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         magic_no = reader.readByte(True)
 *         if magic_no == ord("o"):
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15VersionResponse_read(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  int __pyx_v_magic_no;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  int __pyx_t_8;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 855, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 855, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 855, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 855, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 855, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 855, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":856
 * 
 *     cpdef read(self, ByteReader reader):
 *         magic_no = reader.readByte(True)             # <<<<<<<<<<<<<<
 *         if magic_no == ord("o"):
 *             self.client = "OpenSpades"
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 856, __pyx_L1_error)
  __pyx_v_magic_no = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":857
 *     cpdef read(self, ByteReader reader):
 *         magic_no = reader.readByte(True)
 *         if magic_no == ord("o"):             # <<<<<<<<<<<<<<
 *             self.client = "OpenSpades"
 *             self.version = (
 */
  __pyx_t_8 = ((__pyx_v_magic_no == 0x6F) != 0);
  if (__pyx_t_8) {

    /* "pyspades/networking/loaders.pyx":858
 *         magic_no = reader.readByte(True)
 *         if magic_no == ord("o"):
 *             self.client = "OpenSpades"             # <<<<<<<<<<<<<<
 *             self.version = (
 *                 reader.readByte(True),
 */
    __Pyx_INCREF(__pyx_n_s_OpenSpades);
    __Pyx_GIVEREF(__pyx_n_s_OpenSpades);
    __Pyx_GOTREF(__pyx_v_self->client);
    __Pyx_DECREF(__pyx_v_self->client);
    __pyx_v_self->client = __pyx_n_s_OpenSpades;

    /* "pyspades/networking/loaders.pyx":860
 *             self.client = "OpenSpades"
 *             self.version = (
 *                 reader.readByte(True),             # <<<<<<<<<<<<<<
 *                 reader.readByte(True),
 *                 reader.readByte(True),
 */
    __pyx_t_7.__pyx_n = 1;
    __pyx_t_7.__pyx_unsigned = 1;
    __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 860, __pyx_L1_error)
    __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 860, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);

    /* "pyspades/networking/loaders.pyx":861
 *             self.version = (
 *                 reader.readByte(True),
 *                 reader.readByte(True),             # <<<<<<<<<<<<<<
 *                 reader.readByte(True),
 *             )
 */
    __pyx_t_7.__pyx_n = 1;
    __pyx_t_7.__pyx_unsigned = 1;
    __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 861, __pyx_L1_error)
    __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 861, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);

    /* "pyspades/networking/loaders.pyx":862
 *                 reader.readByte(True),
 *                 reader.readByte(True),
 *                 reader.readByte(True),             # <<<<<<<<<<<<<<
 *             )
 *             self.os_info = reader.readString()
 */
    __pyx_t_7.__pyx_n = 1;
    __pyx_t_7.__pyx_unsigned = 1;
    __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 862, __pyx_L1_error)
    __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 862, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);

    /* "pyspades/networking/loaders.pyx":860
 *             self.client = "OpenSpades"
 *             self.version = (
 *                 reader.readByte(True),             # <<<<<<<<<<<<<<
 *                 reader.readByte(True),
 *                 reader.readByte(True),
 */
    __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 860, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_3);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;

    /* "pyspades/networking/loaders.pyx":859
 *         if magic_no == ord("o"):
 *             self.client = "OpenSpades"
 *             self.version = (             # <<<<<<<<<<<<<<
 *                 reader.readByte(True),
 *                 reader.readByte(True),
 */
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_v_self->version);
    __Pyx_DECREF(__pyx_v_self->version);
    __pyx_v_self->version = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "pyspades/networking/loaders.pyx":864
 *                 reader.readByte(True),
 *             )
 *             self.os_info = reader.readString()             # <<<<<<<<<<<<<<
 *         # There are other magic numbers, but we currently do not implement them
 * 
 */
    __pyx_t_5 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readString(__pyx_v_reader, 0, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 864, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    if (!(likely(PyString_CheckExact(__pyx_t_5))||((__pyx_t_5) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_t_5)->tp_name), 0))) __PYX_ERR(0, 864, __pyx_L1_error)
    __Pyx_GIVEREF(__pyx_t_5);
    __Pyx_GOTREF(__pyx_v_self->os_info);
    __Pyx_DECREF(__pyx_v_self->os_info);
    __pyx_v_self->os_info = ((PyObject*)__pyx_t_5);
    __pyx_t_5 = 0;

    /* "pyspades/networking/loaders.pyx":857
 *     cpdef read(self, ByteReader reader):
 *         magic_no = reader.readByte(True)
 *         if magic_no == ord("o"):             # <<<<<<<<<<<<<<
 *             self.client = "OpenSpades"
 *             self.version = (
 */
  }

  /* "pyspades/networking/loaders.pyx":855
 *         str os_info
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         magic_no = reader.readByte(True)
 *         if magic_no == ord("o"):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.VersionResponse.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 855, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_read(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_read(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_15VersionResponse_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.VersionResponse.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":867
 *         # There are other magic numbers, but we currently do not implement them
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_15VersionResponse_write(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 867, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_writer)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 867, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 867, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 867, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 867, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_writer));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_writer));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_writer));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 867, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":868
 * 
 *     cpdef write(self, ByteWriter writer):
 *         writer.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 * 
 * cdef class ServerInfo(Loader):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 868, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeByte(__pyx_v_writer, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":867
 *         # There are other magic numbers, but we currently do not implement them
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.VersionResponse.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_writer), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "writer", 0))) __PYX_ERR(0, 867, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_2write(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_15VersionResponse_write(__pyx_v_self, __pyx_v_writer, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.VersionResponse.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":851
 * 
 *     cdef public:
 *         str client             # <<<<<<<<<<<<<<
 *         tuple version
 *         str os_info
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_6client_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_6client_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_6client___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_6client___get__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->client);
  __pyx_r = __pyx_v_self->client;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_6client_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_6client_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_6client_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_6client_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 851, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->client);
  __Pyx_DECREF(__pyx_v_self->client);
  __pyx_v_self->client = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.VersionResponse.client.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_6client_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_6client_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_6client_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_6client_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->client);
  __Pyx_DECREF(__pyx_v_self->client);
  __pyx_v_self->client = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":852
 *     cdef public:
 *         str client
 *         tuple version             # <<<<<<<<<<<<<<
 *         str os_info
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7version_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7version_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7version___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7version___get__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->version);
  __pyx_r = __pyx_v_self->version;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7version_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7version_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7version_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7version_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyTuple_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 852, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->version);
  __Pyx_DECREF(__pyx_v_self->version);
  __pyx_v_self->version = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.VersionResponse.version.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7version_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7version_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7version_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7version_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->version);
  __Pyx_DECREF(__pyx_v_self->version);
  __pyx_v_self->version = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":853
 *         str client
 *         tuple version
 *         str os_info             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7os_info_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7os_info_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7os_info___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7os_info___get__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->os_info);
  __pyx_r = __pyx_v_self->os_info;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7os_info_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7os_info_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7os_info_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7os_info_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 853, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->os_info);
  __Pyx_DECREF(__pyx_v_self->os_info);
  __pyx_v_self->os_info = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.VersionResponse.os_info.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7os_info_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7os_info_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7os_info_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_15VersionResponse_7os_info_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->os_info);
  __Pyx_DECREF(__pyx_v_self->os_info);
  __pyx_v_self->os_info = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":880
 *         str mapname
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10ServerInfo_read(CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 880, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 880, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 880, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 880, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 880, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 880, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":881
 * 
 *     cpdef read(self, ByteReader reader):
 *         pass             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter writer):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ServerInfo.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":880
 *         str mapname
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 880, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_read(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_read(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_10ServerInfo_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 880, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ServerInfo.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":883
 *         pass
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 *         writer.writeByte(self.protocolversion, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10ServerInfo_write(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeInt __pyx_t_8;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 883, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_writer)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 883, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 883, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 883, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 883, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_writer));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_writer));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_writer));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 883, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":884
 * 
 *     cpdef write(self, ByteWriter writer):
 *         writer.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.protocolversion, True)
 *         writer.writeInt(self.players, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 884, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeByte(__pyx_v_writer, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 884, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":885
 *     cpdef write(self, ByteWriter writer):
 *         writer.writeByte(self.id, True)
 *         writer.writeByte(self.protocolversion, True)             # <<<<<<<<<<<<<<
 *         writer.writeInt(self.players, True)
 *         writer.writeInt(self.maxplayers, True)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_protocolversion); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 885, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeByte(__pyx_v_writer, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":886
 *         writer.writeByte(self.id, True)
 *         writer.writeByte(self.protocolversion, True)
 *         writer.writeInt(self.players, True)             # <<<<<<<<<<<<<<
 *         writer.writeInt(self.maxplayers, True)
 *         writer.writeString(self.servername)
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeInt(__pyx_v_writer, __pyx_v_self->players, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 886, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":887
 *         writer.writeByte(self.protocolversion, True)
 *         writer.writeInt(self.players, True)
 *         writer.writeInt(self.maxplayers, True)             # <<<<<<<<<<<<<<
 *         writer.writeString(self.servername)
 *         writer.writeString(self.mapname)
 */
  __pyx_t_8.__pyx_n = 1;
  __pyx_t_8.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeInt(__pyx_v_writer, __pyx_v_self->maxplayers, 0, &__pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":888
 *         writer.writeInt(self.players, True)
 *         writer.writeInt(self.maxplayers, True)
 *         writer.writeString(self.servername)             # <<<<<<<<<<<<<<
 *         writer.writeString(self.mapname)
 * 
 */
  __pyx_t_1 = __pyx_v_self->servername;
  __Pyx_INCREF(__pyx_t_1);
  __pyx_t_2 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeString(__pyx_v_writer, __pyx_t_1, 0, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 888, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyspades/networking/loaders.pyx":889
 *         writer.writeInt(self.maxplayers, True)
 *         writer.writeString(self.servername)
 *         writer.writeString(self.mapname)             # <<<<<<<<<<<<<<
 * 
 * cdef class ApiRequest(Loader):
 */
  __pyx_t_2 = __pyx_v_self->mapname;
  __Pyx_INCREF(__pyx_t_2);
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeString(__pyx_v_writer, __pyx_t_2, 0, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 889, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":883
 *         pass
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 *         writer.writeByte(self.protocolversion, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ServerInfo.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_writer), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "writer", 0))) __PYX_ERR(0, 883, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_10ServerInfo_write(__pyx_v_self, __pyx_v_writer, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ServerInfo.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":874
 * 
 *     cdef public:
 *         int protocol_version             # <<<<<<<<<<<<<<
 *         int players
 *         int maxplayers
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_16protocol_version_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_16protocol_version_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_16protocol_version___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_16protocol_version___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->protocol_version); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 874, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ServerInfo.protocol_version.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_16protocol_version_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_16protocol_version_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_16protocol_version_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_16protocol_version_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 874, __pyx_L1_error)
  __pyx_v_self->protocol_version = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ServerInfo.protocol_version.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":875
 *     cdef public:
 *         int protocol_version
 *         int players             # <<<<<<<<<<<<<<
 *         int maxplayers
 *         str servername
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7players_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7players_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7players___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7players___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->players); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 875, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ServerInfo.players.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7players_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7players_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7players_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7players_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 875, __pyx_L1_error)
  __pyx_v_self->players = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ServerInfo.players.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":876
 *         int protocol_version
 *         int players
 *         int maxplayers             # <<<<<<<<<<<<<<
 *         str servername
 *         str mapname
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10maxplayers_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10maxplayers_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10maxplayers___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10maxplayers___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->maxplayers); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 876, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ServerInfo.maxplayers.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10maxplayers_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10maxplayers_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10maxplayers_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10maxplayers_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 876, __pyx_L1_error)
  __pyx_v_self->maxplayers = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ServerInfo.maxplayers.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":877
 *         int players
 *         int maxplayers
 *         str servername             # <<<<<<<<<<<<<<
 *         str mapname
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10servername_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10servername_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10servername___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10servername___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->servername);
  __pyx_r = __pyx_v_self->servername;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10servername_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10servername_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10servername_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10servername_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 877, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->servername);
  __Pyx_DECREF(__pyx_v_self->servername);
  __pyx_v_self->servername = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ServerInfo.servername.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10servername_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10servername_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10servername_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_10servername_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->servername);
  __Pyx_DECREF(__pyx_v_self->servername);
  __pyx_v_self->servername = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":878
 *         int maxplayers
 *         str servername
 *         str mapname             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7mapname_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7mapname_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7mapname___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7mapname___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->mapname);
  __pyx_r = __pyx_v_self->mapname;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7mapname_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7mapname_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7mapname_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7mapname_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 878, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->mapname);
  __Pyx_DECREF(__pyx_v_self->mapname);
  __pyx_v_self->mapname = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ServerInfo.mapname.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7mapname_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7mapname_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7mapname_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10ServerInfo_7mapname_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->mapname);
  __Pyx_DECREF(__pyx_v_self->mapname);
  __pyx_v_self->mapname = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":898
 *         str json_request
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.requestID = reader.readByte(True)
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10ApiRequest_read(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readByte __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 898, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 898, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 898, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 898, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 898, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 898, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":899
 * 
 *     cpdef read(self, ByteReader reader):
 *         self.requestID = reader.readByte(True)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter writer):
 */
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_6 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readByte(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(__pyx_t_6 == -2147483648)) __PYX_ERR(0, 899, __pyx_L1_error)
  __pyx_v_self->requestID = __pyx_t_6;

  /* "pyspades/networking/loaders.pyx":898
 *         str json_request
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         self.requestID = reader.readByte(True)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ApiRequest.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 898, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_read(((struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_read(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_10ApiRequest_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 898, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ApiRequest.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":901
 *         self.requestID = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 *         writer.writeByte(self.protocolversion, True)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_10ApiRequest_write(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  PY_LONG_LONG __pyx_t_8;
  int __pyx_t_9;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeInt __pyx_t_10;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 901, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_writer)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 901, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 901, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 901, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 901, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_writer));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_writer));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_writer));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 901, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":902
 * 
 *     cpdef write(self, ByteWriter writer):
 *         writer.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.protocolversion, True)
 *         writer.writeInt(self.players, Tr)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 902, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeByte(__pyx_v_writer, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":903
 *     cpdef write(self, ByteWriter writer):
 *         writer.writeByte(self.id, True)
 *         writer.writeByte(self.protocolversion, True)             # <<<<<<<<<<<<<<
 *         writer.writeInt(self.players, Tr)
 *         writer.writeInt(self.maxplayers)
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_protocolversion); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 903, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeByte(__pyx_v_writer, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":904
 *         writer.writeByte(self.id, True)
 *         writer.writeByte(self.protocolversion, True)
 *         writer.writeInt(self.players, Tr)             # <<<<<<<<<<<<<<
 *         writer.writeInt(self.maxplayers)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_players); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_8 = __Pyx_PyInt_As_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_8 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 904, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_Tr); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_9 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely((__pyx_t_9 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 904, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_10.__pyx_n = 1;
  __pyx_t_10.__pyx_unsigned = __pyx_t_9;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeInt(__pyx_v_writer, __pyx_t_8, 0, &__pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":905
 *         writer.writeByte(self.protocolversion, True)
 *         writer.writeInt(self.players, Tr)
 *         writer.writeInt(self.maxplayers)             # <<<<<<<<<<<<<<
 * 
 * cdef class AuthenticationRequest(Loader):
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_maxplayers); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_8 = __Pyx_PyInt_As_PY_LONG_LONG(__pyx_t_1); if (unlikely((__pyx_t_8 == (PY_LONG_LONG)-1) && PyErr_Occurred())) __PYX_ERR(0, 905, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeInt(__pyx_v_writer, __pyx_t_8, 0, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 905, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":901
 *         self.requestID = reader.readByte(True)
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 *         writer.writeByte(self.protocolversion, True)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.ApiRequest.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_writer), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "writer", 0))) __PYX_ERR(0, 901, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_2write(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_10ApiRequest_write(__pyx_v_self, __pyx_v_writer, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ApiRequest.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":895
 * 
 *     cdef public:
 *         int requestID             # <<<<<<<<<<<<<<
 *         str json_request
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_9requestID_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_9requestID_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_9requestID___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_9requestID___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->requestID); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ApiRequest.requestID.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_9requestID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_9requestID_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_9requestID_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_9requestID_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 895, __pyx_L1_error)
  __pyx_v_self->requestID = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.ApiRequest.requestID.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":896
 *     cdef public:
 *         int requestID
 *         str json_request             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_12json_request_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_12json_request_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_12json_request___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_12json_request___get__(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->json_request);
  __pyx_r = __pyx_v_self->json_request;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_12json_request_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_12json_request_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_12json_request_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_12json_request_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyString_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "str", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 896, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->json_request);
  __Pyx_DECREF(__pyx_v_self->json_request);
  __pyx_v_self->json_request = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.ApiRequest.json_request.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_12json_request_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_12json_request_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_12json_request_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_10ApiRequest_12json_request_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->json_request);
  __Pyx_DECREF(__pyx_v_self->json_request);
  __pyx_v_self->json_request = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":914
 *         int response_code
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         token = reader.readString(self)
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_21AuthenticationRequest_read(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  CYTHON_UNUSED PyObject *__pyx_v_token = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteReader_readString __pyx_t_7;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 914, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 914, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 914, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 914, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 914, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 914, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":915
 * 
 *     cpdef read(self, ByteReader reader):
 *         token = reader.readString(self)             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter writer):
 */
  __pyx_t_6 = __Pyx_PyInt_As_int(((PyObject *)__pyx_v_self)); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 915, __pyx_L1_error)
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.size = __pyx_t_6;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader->__pyx_vtab)->readString(__pyx_v_reader, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 915, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_v_token = __pyx_t_1;
  __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":914
 *         int response_code
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         token = reader.readString(self)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.AuthenticationRequest.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_token);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 914, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_read(((struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_read(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_21AuthenticationRequest_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.AuthenticationRequest.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":917
 *         token = reader.readString(self)
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 *         writer.writeByte(self.response_code)
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_21AuthenticationRequest_write(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 917, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_writer)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 917, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 917, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 917, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 917, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_writer));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_writer));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_writer));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 917, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":918
 * 
 *     cpdef write(self, ByteWriter writer):
 *         writer.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.response_code)
 * 
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 918, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeByte(__pyx_v_writer, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":919
 *     cpdef write(self, ByteWriter writer):
 *         writer.writeByte(self.id, True)
 *         writer.writeByte(self.response_code)             # <<<<<<<<<<<<<<
 * 
 * cdef class SetClientSetting(Loader):
 */
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeByte(__pyx_v_writer, __pyx_v_self->response_code, 0, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":917
 *         token = reader.readString(self)
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 *         writer.writeByte(self.response_code)
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.AuthenticationRequest.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_writer), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "writer", 0))) __PYX_ERR(0, 917, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_2write(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_21AuthenticationRequest_write(__pyx_v_self, __pyx_v_writer, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.AuthenticationRequest.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":911
 * 
 *     cdef public:
 *         bytes token             # <<<<<<<<<<<<<<
 *         int response_code
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_5token___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_5token___get__(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->token);
  __pyx_r = __pyx_v_self->token;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyBytes_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "bytes", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 911, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->token);
  __Pyx_DECREF(__pyx_v_self->token);
  __pyx_v_self->token = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.AuthenticationRequest.token.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->token);
  __Pyx_DECREF(__pyx_v_self->token);
  __pyx_v_self->token = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":912
 *     cdef public:
 *         bytes token
 *         int response_code             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_13response_code_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_13response_code_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_13response_code___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_13response_code___get__(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_self->response_code); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 912, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.AuthenticationRequest.response_code.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_13response_code_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_13response_code_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_13response_code_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_21AuthenticationRequest_13response_code_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__set__", 0);
  __pyx_t_1 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 912, __pyx_L1_error)
  __pyx_v_self->response_code = __pyx_t_1;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("pyspades.networking.loaders.AuthenticationRequest.response_code.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":927
 *         list settings
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_16SetClientSetting_read(CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self, CYTHON_UNUSED struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader, int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_read); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 927, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_1read)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_reader)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 927, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 927, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_reader)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 927, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 927, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_reader));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_reader));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_reader));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 927, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":928
 * 
 *     cpdef read(self, ByteReader reader):
 *         pass             # <<<<<<<<<<<<<<
 * 
 *     cpdef write(self, ByteWriter writer):
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetClientSetting.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":927
 *         list settings
 * 
 *     cpdef read(self, ByteReader reader):             # <<<<<<<<<<<<<<
 *         pass
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_1read(PyObject *__pyx_v_self, PyObject *__pyx_v_reader) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("read (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_reader), __pyx_ptype_8pyspades_10networking_5bytes_ByteReader, 1, "reader", 0))) __PYX_ERR(0, 927, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_read(((struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *)__pyx_v_reader));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_read(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *__pyx_v_reader) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("read", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_16SetClientSetting_read(__pyx_v_self, __pyx_v_reader, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetClientSetting.read", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":930
 *         pass
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 * 
 */

static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_f_8pyspades_10networking_7loaders_16SetClientSetting_write(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer, int __pyx_skip_dispatch) {
  CYTHON_UNUSED PyObject *__pyx_v_setting = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  struct __pyx_opt_args_8pyspades_10networking_5bytes_10ByteWriter_writeByte __pyx_t_7;
  Py_ssize_t __pyx_t_8;
  PyObject *(*__pyx_t_9)(PyObject *);
  __Pyx_RefNannySetupContext("write", 0);
  /* Check if called by wrapper */
  if (unlikely(__pyx_skip_dispatch)) ;
  /* Check if overridden in Python */
  else if (unlikely(Py_TYPE(((PyObject *)__pyx_v_self))->tp_dictoffset != 0)) {
    __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_write); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 930, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    if (!PyCFunction_Check(__pyx_t_1) || (PyCFunction_GET_FUNCTION(__pyx_t_1) != (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_3write)) {
      __Pyx_XDECREF(__pyx_r);
      __Pyx_INCREF(__pyx_t_1);
      __pyx_t_3 = __pyx_t_1; __pyx_t_4 = NULL;
      if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
        __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
        if (likely(__pyx_t_4)) {
          PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
          __Pyx_INCREF(__pyx_t_4);
          __Pyx_INCREF(function);
          __Pyx_DECREF_SET(__pyx_t_3, function);
        }
      }
      if (!__pyx_t_4) {
        __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, ((PyObject *)__pyx_v_writer)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 930, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_2);
      } else {
        #if CYTHON_FAST_PYCALL
        if (PyFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 930, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        #if CYTHON_FAST_PYCCALL
        if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
          PyObject *__pyx_temp[2] = {__pyx_t_4, ((PyObject *)__pyx_v_writer)};
          __pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-1, 1+1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 930, __pyx_L1_error)
          __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
          __Pyx_GOTREF(__pyx_t_2);
        } else
        #endif
        {
          __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 930, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_5);
          __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL;
          __Pyx_INCREF(((PyObject *)__pyx_v_writer));
          __Pyx_GIVEREF(((PyObject *)__pyx_v_writer));
          PyTuple_SET_ITEM(__pyx_t_5, 0+1, ((PyObject *)__pyx_v_writer));
          __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 930, __pyx_L1_error)
          __Pyx_GOTREF(__pyx_t_2);
          __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
        }
      }
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_r = __pyx_t_2;
      __pyx_t_2 = 0;
      __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
      goto __pyx_L0;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }

  /* "pyspades/networking/loaders.pyx":931
 * 
 *     cpdef write(self, ByteWriter writer):
 *         writer.writeByte(self.id, True)             # <<<<<<<<<<<<<<
 * 
 *         for setting in settings:
 */
  __pyx_t_1 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_id); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_6 = __Pyx_PyInt_As_int(__pyx_t_1); if (unlikely((__pyx_t_6 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 931, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  __pyx_t_7.__pyx_n = 1;
  __pyx_t_7.__pyx_unsigned = 1;
  __pyx_t_1 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->writeByte(__pyx_v_writer, __pyx_t_6, 0, &__pyx_t_7); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":933
 *         writer.writeByte(self.id, True)
 * 
 *         for setting in settings:             # <<<<<<<<<<<<<<
 *             writer.write(i.get_bytes())
 */
  __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_settings); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) {
    __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_8 = 0;
    __pyx_t_9 = NULL;
  } else {
    __pyx_t_8 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 933, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_9 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 933, __pyx_L1_error)
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  for (;;) {
    if (likely(!__pyx_t_9)) {
      if (likely(PyList_CheckExact(__pyx_t_2))) {
        if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_1); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 933, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 933, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      } else {
        if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_2)) break;
        #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
        __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_8); __Pyx_INCREF(__pyx_t_1); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(0, 933, __pyx_L1_error)
        #else
        __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 933, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_1);
        #endif
      }
    } else {
      __pyx_t_1 = __pyx_t_9(__pyx_t_2);
      if (unlikely(!__pyx_t_1)) {
        PyObject* exc_type = PyErr_Occurred();
        if (exc_type) {
          if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear();
          else __PYX_ERR(0, 933, __pyx_L1_error)
        }
        break;
      }
      __Pyx_GOTREF(__pyx_t_1);
    }
    __Pyx_XDECREF_SET(__pyx_v_setting, __pyx_t_1);
    __pyx_t_1 = 0;

    /* "pyspades/networking/loaders.pyx":934
 * 
 *         for setting in settings:
 *             writer.write(i.get_bytes())             # <<<<<<<<<<<<<<
 */
    __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_i); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 934, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_get_bytes); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 934, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_3 = NULL;
    if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_5))) {
      __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
      if (likely(__pyx_t_3)) {
        PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5);
        __Pyx_INCREF(__pyx_t_3);
        __Pyx_INCREF(function);
        __Pyx_DECREF_SET(__pyx_t_5, function);
      }
    }
    if (__pyx_t_3) {
      __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 934, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    } else {
      __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 934, __pyx_L1_error)
    }
    __Pyx_GOTREF(__pyx_t_1);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __pyx_t_5 = ((struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer->__pyx_vtab)->write(__pyx_v_writer, __pyx_t_1, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 934, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;

    /* "pyspades/networking/loaders.pyx":933
 *         writer.writeByte(self.id, True)
 * 
 *         for setting in settings:             # <<<<<<<<<<<<<<
 *             writer.write(i.get_bytes())
 */
  }
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyspades/networking/loaders.pyx":930
 *         pass
 * 
 *     cpdef write(self, ByteWriter writer):             # <<<<<<<<<<<<<<
 *         writer.writeByte(self.id, True)
 * 
 */

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetClientSetting.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_v_setting);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_3write(PyObject *__pyx_v_self, PyObject *__pyx_v_writer) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("write (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_writer), __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter, 1, "writer", 0))) __PYX_ERR(0, 930, __pyx_L1_error)
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_2write(((struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *)__pyx_v_self), ((struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *)__pyx_v_writer));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_2write(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *__pyx_v_writer) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("write", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_8pyspades_10networking_7loaders_16SetClientSetting_write(__pyx_v_self, __pyx_v_writer, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetClientSetting.write", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "pyspades/networking/loaders.pyx":925
 * 
 *     cdef public:
 *         list settings             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */

/* Python wrapper */
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_8settings_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_8settings_1__get__(PyObject *__pyx_v_self) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_8settings___get__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_8settings___get__(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__get__", 0);
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(__pyx_v_self->settings);
  __pyx_r = __pyx_v_self->settings;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_8settings_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_8settings_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_8settings_2__set__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *)__pyx_v_self), ((PyObject *)__pyx_v_value));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_8settings_2__set__(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self, PyObject *__pyx_v_value) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("__set__", 0);
  if (!(likely(PyList_CheckExact(__pyx_v_value))||((__pyx_v_value) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "list", Py_TYPE(__pyx_v_value)->tp_name), 0))) __PYX_ERR(0, 925, __pyx_L1_error)
  __pyx_t_1 = __pyx_v_value;
  __Pyx_INCREF(__pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_GOTREF(__pyx_v_self->settings);
  __Pyx_DECREF(__pyx_v_self->settings);
  __pyx_v_self->settings = ((PyObject*)__pyx_t_1);
  __pyx_t_1 = 0;

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("pyspades.networking.loaders.SetClientSetting.settings.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static int __pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_8settings_5__del__(PyObject *__pyx_v_self); /*proto*/
static int __pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_8settings_5__del__(PyObject *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__ (wrapper)", 0);
  __pyx_r = __pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_8settings_4__del__(((struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *)__pyx_v_self));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_8pyspades_10networking_7loaders_16SetClientSetting_8settings_4__del__(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *__pyx_v_self) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__del__", 0);
  __Pyx_INCREF(Py_None);
  __Pyx_GIVEREF(Py_None);
  __Pyx_GOTREF(__pyx_v_self->settings);
  __Pyx_DECREF(__pyx_v_self->settings);
  __pyx_v_self->settings = ((PyObject*)Py_None);

  /* function exit code */
  __pyx_r = 0;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_PositionData __pyx_vtable_8pyspades_10networking_7loaders_PositionData;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_PositionData(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_PositionData *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_PositionData;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_PositionData(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_PositionData);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12PositionData_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12PositionData_1x_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12PositionData_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12PositionData_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12PositionData_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12PositionData_1y_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12PositionData_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12PositionData_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12PositionData_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12PositionData_1z_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12PositionData_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12PositionData_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_PositionData[] = {
  {"set", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12PositionData_1set, METH_O, 0},
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12PositionData_3read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12PositionData_5write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_PositionData[] = {
  {(char *)"x", __pyx_getprop_8pyspades_10networking_7loaders_12PositionData_x, __pyx_setprop_8pyspades_10networking_7loaders_12PositionData_x, (char *)0, 0},
  {(char *)"y", __pyx_getprop_8pyspades_10networking_7loaders_12PositionData_y, __pyx_setprop_8pyspades_10networking_7loaders_12PositionData_y, (char *)0, 0},
  {(char *)"z", __pyx_getprop_8pyspades_10networking_7loaders_12PositionData_z, __pyx_setprop_8pyspades_10networking_7loaders_12PositionData_z, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_PositionData = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.PositionData", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_PositionData), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_PositionData, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_PositionData, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_PositionData, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_PositionData, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_OrientationData __pyx_vtable_8pyspades_10networking_7loaders_OrientationData;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_OrientationData(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_OrientationData;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_OrientationData(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_OrientationData);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_15OrientationData_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1x_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_15OrientationData_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_15OrientationData_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1y_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_15OrientationData_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_15OrientationData_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1z_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_15OrientationData_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_OrientationData[] = {
  {"set", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_1set, METH_O, 0},
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_3read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15OrientationData_5write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_OrientationData[] = {
  {(char *)"x", __pyx_getprop_8pyspades_10networking_7loaders_15OrientationData_x, __pyx_setprop_8pyspades_10networking_7loaders_15OrientationData_x, (char *)0, 0},
  {(char *)"y", __pyx_getprop_8pyspades_10networking_7loaders_15OrientationData_y, __pyx_setprop_8pyspades_10networking_7loaders_15OrientationData_y, (char *)0, 0},
  {(char *)"z", __pyx_getprop_8pyspades_10networking_7loaders_15OrientationData_z, __pyx_setprop_8pyspades_10networking_7loaders_15OrientationData_z, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_OrientationData = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.OrientationData", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_OrientationData), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_OrientationData, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_OrientationData, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_OrientationData, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_OrientationData, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_WorldUpdate __pyx_vtable_8pyspades_10networking_7loaders_WorldUpdate;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_WorldUpdate(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_WorldUpdate;
  p->items = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_WorldUpdate(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *p = (struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->items);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_WorldUpdate);
}

static int __pyx_tp_traverse_8pyspades_10networking_7loaders_WorldUpdate(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *p = (struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *)o;
  e = ((likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) ? ((__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse) ? __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_8pyspades_10networking_7loaders_WorldUpdate)); if (e) return e;
  if (p->items) {
    e = (*v)(p->items, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_8pyspades_10networking_7loaders_WorldUpdate(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *p = (struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate *)o;
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) { if (__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_8pyspades_10networking_7loaders_WorldUpdate);
  tmp = ((PyObject*)p->items);
  p->items = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11WorldUpdate_items(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_5items_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11WorldUpdate_items(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_5items_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_5items_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_WorldUpdate[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11WorldUpdate_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_WorldUpdate[] = {
  {(char *)"items", __pyx_getprop_8pyspades_10networking_7loaders_11WorldUpdate_items, __pyx_setprop_8pyspades_10networking_7loaders_11WorldUpdate_items, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_WorldUpdate = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.WorldUpdate", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_WorldUpdate), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_WorldUpdate, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_8pyspades_10networking_7loaders_WorldUpdate, /*tp_traverse*/
  __pyx_tp_clear_8pyspades_10networking_7loaders_WorldUpdate, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_WorldUpdate, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_WorldUpdate, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_WorldUpdate, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_InputData __pyx_vtable_8pyspades_10networking_7loaders_InputData;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_InputData(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_InputData *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_InputData *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_InputData;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_InputData(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_InputData);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9InputData_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9InputData_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9InputData_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9InputData_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9InputData_up(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9InputData_2up_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9InputData_up(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9InputData_2up_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9InputData_down(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9InputData_4down_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9InputData_down(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9InputData_4down_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9InputData_left(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9InputData_4left_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9InputData_left(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9InputData_4left_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9InputData_right(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9InputData_5right_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9InputData_right(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9InputData_5right_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9InputData_jump(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9InputData_4jump_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9InputData_jump(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9InputData_4jump_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9InputData_crouch(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9InputData_6crouch_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9InputData_crouch(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9InputData_6crouch_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9InputData_sneak(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9InputData_5sneak_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9InputData_sneak(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9InputData_5sneak_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9InputData_sprint(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9InputData_6sprint_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9InputData_sprint(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9InputData_6sprint_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_InputData[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9InputData_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9InputData_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_InputData[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_9InputData_player_id, __pyx_setprop_8pyspades_10networking_7loaders_9InputData_player_id, (char *)0, 0},
  {(char *)"up", __pyx_getprop_8pyspades_10networking_7loaders_9InputData_up, __pyx_setprop_8pyspades_10networking_7loaders_9InputData_up, (char *)0, 0},
  {(char *)"down", __pyx_getprop_8pyspades_10networking_7loaders_9InputData_down, __pyx_setprop_8pyspades_10networking_7loaders_9InputData_down, (char *)0, 0},
  {(char *)"left", __pyx_getprop_8pyspades_10networking_7loaders_9InputData_left, __pyx_setprop_8pyspades_10networking_7loaders_9InputData_left, (char *)0, 0},
  {(char *)"right", __pyx_getprop_8pyspades_10networking_7loaders_9InputData_right, __pyx_setprop_8pyspades_10networking_7loaders_9InputData_right, (char *)0, 0},
  {(char *)"jump", __pyx_getprop_8pyspades_10networking_7loaders_9InputData_jump, __pyx_setprop_8pyspades_10networking_7loaders_9InputData_jump, (char *)0, 0},
  {(char *)"crouch", __pyx_getprop_8pyspades_10networking_7loaders_9InputData_crouch, __pyx_setprop_8pyspades_10networking_7loaders_9InputData_crouch, (char *)0, 0},
  {(char *)"sneak", __pyx_getprop_8pyspades_10networking_7loaders_9InputData_sneak, __pyx_setprop_8pyspades_10networking_7loaders_9InputData_sneak, (char *)0, 0},
  {(char *)"sprint", __pyx_getprop_8pyspades_10networking_7loaders_9InputData_sprint, __pyx_setprop_8pyspades_10networking_7loaders_9InputData_sprint, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_InputData = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.InputData", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_InputData), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_InputData, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_InputData, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_InputData, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_InputData, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_WeaponInput __pyx_vtable_8pyspades_10networking_7loaders_WeaponInput;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_WeaponInput(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_WeaponInput;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_WeaponInput(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_WeaponInput);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11WeaponInput_primary(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_7primary_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11WeaponInput_primary(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_7primary_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11WeaponInput_secondary(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_9secondary_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11WeaponInput_secondary(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_9secondary_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11WeaponInput_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11WeaponInput_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_WeaponInput[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11WeaponInput_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_WeaponInput[] = {
  {(char *)"primary", __pyx_getprop_8pyspades_10networking_7loaders_11WeaponInput_primary, __pyx_setprop_8pyspades_10networking_7loaders_11WeaponInput_primary, (char *)0, 0},
  {(char *)"secondary", __pyx_getprop_8pyspades_10networking_7loaders_11WeaponInput_secondary, __pyx_setprop_8pyspades_10networking_7loaders_11WeaponInput_secondary, (char *)0, 0},
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_11WeaponInput_player_id, __pyx_setprop_8pyspades_10networking_7loaders_11WeaponInput_player_id, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_WeaponInput = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.WeaponInput", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponInput), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_WeaponInput, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_WeaponInput, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_WeaponInput, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_WeaponInput, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_HitPacket __pyx_vtable_8pyspades_10networking_7loaders_HitPacket;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_HitPacket(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_HitPacket;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_HitPacket(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_HitPacket);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9HitPacket_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9HitPacket_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9HitPacket_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9HitPacket_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9HitPacket_value(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9HitPacket_5value_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9HitPacket_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9HitPacket_5value_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_HitPacket[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9HitPacket_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_HitPacket[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_9HitPacket_player_id, __pyx_setprop_8pyspades_10networking_7loaders_9HitPacket_player_id, (char *)0, 0},
  {(char *)"value", __pyx_getprop_8pyspades_10networking_7loaders_9HitPacket_value, __pyx_setprop_8pyspades_10networking_7loaders_9HitPacket_value, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_HitPacket = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.HitPacket", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_HitPacket), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_HitPacket, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_HitPacket, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_HitPacket, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_HitPacket, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_SetHP __pyx_vtable_8pyspades_10networking_7loaders_SetHP;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_SetHP(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_SetHP *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_SetHP;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_SetHP(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_SetHP);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_5SetHP_hp(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_5SetHP_2hp_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_5SetHP_hp(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_5SetHP_2hp_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_5SetHP_not_fall(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8not_fall_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_5SetHP_not_fall(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8not_fall_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_5SetHP_source_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_x_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_5SetHP_source_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_5SetHP_source_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_y_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_5SetHP_source_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_5SetHP_source_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_z_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_5SetHP_source_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_5SetHP_8source_z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_SetHP[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_5SetHP_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_5SetHP_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_SetHP[] = {
  {(char *)"hp", __pyx_getprop_8pyspades_10networking_7loaders_5SetHP_hp, __pyx_setprop_8pyspades_10networking_7loaders_5SetHP_hp, (char *)0, 0},
  {(char *)"not_fall", __pyx_getprop_8pyspades_10networking_7loaders_5SetHP_not_fall, __pyx_setprop_8pyspades_10networking_7loaders_5SetHP_not_fall, (char *)0, 0},
  {(char *)"source_x", __pyx_getprop_8pyspades_10networking_7loaders_5SetHP_source_x, __pyx_setprop_8pyspades_10networking_7loaders_5SetHP_source_x, (char *)0, 0},
  {(char *)"source_y", __pyx_getprop_8pyspades_10networking_7loaders_5SetHP_source_y, __pyx_setprop_8pyspades_10networking_7loaders_5SetHP_source_y, (char *)0, 0},
  {(char *)"source_z", __pyx_getprop_8pyspades_10networking_7loaders_5SetHP_source_z, __pyx_setprop_8pyspades_10networking_7loaders_5SetHP_source_z, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_SetHP = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.SetHP", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_SetHP), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_SetHP, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_SetHP, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_SetHP, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_SetHP, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_GrenadePacket __pyx_vtable_8pyspades_10networking_7loaders_GrenadePacket;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_GrenadePacket(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_GrenadePacket;
  p->position = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->velocity = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_GrenadePacket(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *p = (struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->position);
  Py_CLEAR(p->velocity);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_GrenadePacket);
}

static int __pyx_tp_traverse_8pyspades_10networking_7loaders_GrenadePacket(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *p = (struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)o;
  e = ((likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) ? ((__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse) ? __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_8pyspades_10networking_7loaders_GrenadePacket)); if (e) return e;
  if (p->position) {
    e = (*v)(p->position, a); if (e) return e;
  }
  if (p->velocity) {
    e = (*v)(p->velocity, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_8pyspades_10networking_7loaders_GrenadePacket(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *p = (struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket *)o;
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) { if (__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_8pyspades_10networking_7loaders_GrenadePacket);
  tmp = ((PyObject*)p->position);
  p->position = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->velocity);
  p->velocity = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_13GrenadePacket_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_13GrenadePacket_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_13GrenadePacket_value(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_5value_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_13GrenadePacket_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_5value_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_13GrenadePacket_position(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8position_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_13GrenadePacket_position(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8position_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8position_5__del__(o);
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_13GrenadePacket_velocity(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_13GrenadePacket_velocity(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_8velocity_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_GrenadePacket[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_13GrenadePacket_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_GrenadePacket[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_13GrenadePacket_player_id, __pyx_setprop_8pyspades_10networking_7loaders_13GrenadePacket_player_id, (char *)0, 0},
  {(char *)"value", __pyx_getprop_8pyspades_10networking_7loaders_13GrenadePacket_value, __pyx_setprop_8pyspades_10networking_7loaders_13GrenadePacket_value, (char *)0, 0},
  {(char *)"position", __pyx_getprop_8pyspades_10networking_7loaders_13GrenadePacket_position, __pyx_setprop_8pyspades_10networking_7loaders_13GrenadePacket_position, (char *)0, 0},
  {(char *)"velocity", __pyx_getprop_8pyspades_10networking_7loaders_13GrenadePacket_velocity, __pyx_setprop_8pyspades_10networking_7loaders_13GrenadePacket_velocity, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_GrenadePacket = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.GrenadePacket", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_GrenadePacket), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_GrenadePacket, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_8pyspades_10networking_7loaders_GrenadePacket, /*tp_traverse*/
  __pyx_tp_clear_8pyspades_10networking_7loaders_GrenadePacket, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_GrenadePacket, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_GrenadePacket, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_GrenadePacket, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_SetTool __pyx_vtable_8pyspades_10networking_7loaders_SetTool;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_SetTool(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_SetTool *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_SetTool;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_SetTool(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_SetTool);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_7SetTool_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_7SetTool_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_7SetTool_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_7SetTool_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_7SetTool_value(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_7SetTool_5value_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_7SetTool_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_7SetTool_5value_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_SetTool[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7SetTool_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7SetTool_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_SetTool[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_7SetTool_player_id, __pyx_setprop_8pyspades_10networking_7loaders_7SetTool_player_id, (char *)0, 0},
  {(char *)"value", __pyx_getprop_8pyspades_10networking_7loaders_7SetTool_value, __pyx_setprop_8pyspades_10networking_7loaders_7SetTool_value, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_SetTool = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.SetTool", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_SetTool), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_SetTool, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_SetTool, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_SetTool, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_SetTool, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_SetColor __pyx_vtable_8pyspades_10networking_7loaders_SetColor;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_SetColor(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_SetColor *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_SetColor;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_SetColor(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_SetColor);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8SetColor_value(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8SetColor_5value_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8SetColor_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8SetColor_5value_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8SetColor_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8SetColor_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8SetColor_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8SetColor_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_SetColor[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8SetColor_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8SetColor_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_SetColor[] = {
  {(char *)"value", __pyx_getprop_8pyspades_10networking_7loaders_8SetColor_value, __pyx_setprop_8pyspades_10networking_7loaders_8SetColor_value, (char *)0, 0},
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_8SetColor_player_id, __pyx_setprop_8pyspades_10networking_7loaders_8SetColor_player_id, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_SetColor = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.SetColor", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_SetColor), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_SetColor, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_SetColor, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_SetColor, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_SetColor, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ExistingPlayer __pyx_vtable_8pyspades_10networking_7loaders_ExistingPlayer;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ExistingPlayer(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_ExistingPlayer;
  p->name = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_ExistingPlayer(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *p = (struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->name);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_ExistingPlayer);
}

static int __pyx_tp_traverse_8pyspades_10networking_7loaders_ExistingPlayer(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *p = (struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)o;
  e = ((likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) ? ((__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse) ? __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_8pyspades_10networking_7loaders_ExistingPlayer)); if (e) return e;
  if (p->name) {
    e = (*v)(p->name, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_8pyspades_10networking_7loaders_ExistingPlayer(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *p = (struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer *)o;
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) { if (__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_8pyspades_10networking_7loaders_ExistingPlayer);
  tmp = ((PyObject*)p->name);
  p->name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_team(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4team_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_team(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4team_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_weapon(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_6weapon_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_weapon(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_6weapon_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_tool(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4tool_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_tool(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4tool_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_kills(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_5kills_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_kills(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_5kills_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_color(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_5color_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_color(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_5color_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4name_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4name_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_4name_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_ExistingPlayer[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_14ExistingPlayer_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_ExistingPlayer[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_player_id, __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_player_id, (char *)0, 0},
  {(char *)"team", __pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_team, __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_team, (char *)0, 0},
  {(char *)"weapon", __pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_weapon, __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_weapon, (char *)0, 0},
  {(char *)"tool", __pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_tool, __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_tool, (char *)0, 0},
  {(char *)"kills", __pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_kills, __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_kills, (char *)0, 0},
  {(char *)"color", __pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_color, __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_color, (char *)0, 0},
  {(char *)"name", __pyx_getprop_8pyspades_10networking_7loaders_14ExistingPlayer_name, __pyx_setprop_8pyspades_10networking_7loaders_14ExistingPlayer_name, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_ExistingPlayer = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.ExistingPlayer", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_ExistingPlayer), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_ExistingPlayer, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_8pyspades_10networking_7loaders_ExistingPlayer, /*tp_traverse*/
  __pyx_tp_clear_8pyspades_10networking_7loaders_ExistingPlayer, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_ExistingPlayer, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_ExistingPlayer, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_ExistingPlayer, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ShortPlayerData __pyx_vtable_8pyspades_10networking_7loaders_ShortPlayerData;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ShortPlayerData(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_ShortPlayerData;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_ShortPlayerData(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_ShortPlayerData);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_15ShortPlayerData_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_15ShortPlayerData_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_15ShortPlayerData_team(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_4team_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_15ShortPlayerData_team(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_4team_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_15ShortPlayerData_weapon(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_6weapon_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_15ShortPlayerData_weapon(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_6weapon_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_ShortPlayerData[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15ShortPlayerData_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_ShortPlayerData[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_15ShortPlayerData_player_id, __pyx_setprop_8pyspades_10networking_7loaders_15ShortPlayerData_player_id, (char *)0, 0},
  {(char *)"team", __pyx_getprop_8pyspades_10networking_7loaders_15ShortPlayerData_team, __pyx_setprop_8pyspades_10networking_7loaders_15ShortPlayerData_team, (char *)0, 0},
  {(char *)"weapon", __pyx_getprop_8pyspades_10networking_7loaders_15ShortPlayerData_weapon, __pyx_setprop_8pyspades_10networking_7loaders_15ShortPlayerData_weapon, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_ShortPlayerData = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.ShortPlayerData", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_ShortPlayerData), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_ShortPlayerData, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_ShortPlayerData, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_ShortPlayerData, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_ShortPlayerData, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_MoveObject __pyx_vtable_8pyspades_10networking_7loaders_MoveObject;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_MoveObject(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_MoveObject;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_MoveObject(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_MoveObject);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10MoveObject_object_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_11object_type_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10MoveObject_object_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_11object_type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10MoveObject_state(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_5state_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10MoveObject_state(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_5state_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10MoveObject_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1x_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10MoveObject_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10MoveObject_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1y_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10MoveObject_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10MoveObject_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1z_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10MoveObject_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_MoveObject[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10MoveObject_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_MoveObject[] = {
  {(char *)"object_type", __pyx_getprop_8pyspades_10networking_7loaders_10MoveObject_object_type, __pyx_setprop_8pyspades_10networking_7loaders_10MoveObject_object_type, (char *)0, 0},
  {(char *)"state", __pyx_getprop_8pyspades_10networking_7loaders_10MoveObject_state, __pyx_setprop_8pyspades_10networking_7loaders_10MoveObject_state, (char *)0, 0},
  {(char *)"x", __pyx_getprop_8pyspades_10networking_7loaders_10MoveObject_x, __pyx_setprop_8pyspades_10networking_7loaders_10MoveObject_x, (char *)0, 0},
  {(char *)"y", __pyx_getprop_8pyspades_10networking_7loaders_10MoveObject_y, __pyx_setprop_8pyspades_10networking_7loaders_10MoveObject_y, (char *)0, 0},
  {(char *)"z", __pyx_getprop_8pyspades_10networking_7loaders_10MoveObject_z, __pyx_setprop_8pyspades_10networking_7loaders_10MoveObject_z, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_MoveObject = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.MoveObject", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_MoveObject), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_MoveObject, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_MoveObject, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_MoveObject, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_MoveObject, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_CreatePlayer __pyx_vtable_8pyspades_10networking_7loaders_CreatePlayer;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_CreatePlayer(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_CreatePlayer;
  p->name = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_CreatePlayer(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *p = (struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->name);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_CreatePlayer);
}

static int __pyx_tp_traverse_8pyspades_10networking_7loaders_CreatePlayer(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *p = (struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)o;
  e = ((likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) ? ((__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse) ? __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_8pyspades_10networking_7loaders_CreatePlayer)); if (e) return e;
  if (p->name) {
    e = (*v)(p->name, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_8pyspades_10networking_7loaders_CreatePlayer(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *p = (struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer *)o;
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) { if (__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_8pyspades_10networking_7loaders_CreatePlayer);
  tmp = ((PyObject*)p->name);
  p->name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_weapon(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_6weapon_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_weapon(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_6weapon_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_team(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4team_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_team(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4team_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1x_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1y_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1z_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4name_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4name_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_4name_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_CreatePlayer[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12CreatePlayer_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_CreatePlayer[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_player_id, __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_player_id, (char *)0, 0},
  {(char *)"weapon", __pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_weapon, __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_weapon, (char *)0, 0},
  {(char *)"team", __pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_team, __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_team, (char *)0, 0},
  {(char *)"x", __pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_x, __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_x, (char *)0, 0},
  {(char *)"y", __pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_y, __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_y, (char *)0, 0},
  {(char *)"z", __pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_z, __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_z, (char *)0, 0},
  {(char *)"name", __pyx_getprop_8pyspades_10networking_7loaders_12CreatePlayer_name, __pyx_setprop_8pyspades_10networking_7loaders_12CreatePlayer_name, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_CreatePlayer = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.CreatePlayer", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_CreatePlayer), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_CreatePlayer, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_8pyspades_10networking_7loaders_CreatePlayer, /*tp_traverse*/
  __pyx_tp_clear_8pyspades_10networking_7loaders_CreatePlayer, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_CreatePlayer, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_CreatePlayer, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_CreatePlayer, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_BlockAction __pyx_vtable_8pyspades_10networking_7loaders_BlockAction;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_BlockAction(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_BlockAction;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_BlockAction(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_BlockAction);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11BlockAction_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1x_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11BlockAction_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11BlockAction_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1y_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11BlockAction_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11BlockAction_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1z_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11BlockAction_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11BlockAction_value(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_5value_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11BlockAction_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_5value_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11BlockAction_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11BlockAction_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11BlockAction_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_BlockAction[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11BlockAction_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_BlockAction[] = {
  {(char *)"x", __pyx_getprop_8pyspades_10networking_7loaders_11BlockAction_x, __pyx_setprop_8pyspades_10networking_7loaders_11BlockAction_x, (char *)0, 0},
  {(char *)"y", __pyx_getprop_8pyspades_10networking_7loaders_11BlockAction_y, __pyx_setprop_8pyspades_10networking_7loaders_11BlockAction_y, (char *)0, 0},
  {(char *)"z", __pyx_getprop_8pyspades_10networking_7loaders_11BlockAction_z, __pyx_setprop_8pyspades_10networking_7loaders_11BlockAction_z, (char *)0, 0},
  {(char *)"value", __pyx_getprop_8pyspades_10networking_7loaders_11BlockAction_value, __pyx_setprop_8pyspades_10networking_7loaders_11BlockAction_value, (char *)0, 0},
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_11BlockAction_player_id, __pyx_setprop_8pyspades_10networking_7loaders_11BlockAction_player_id, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_BlockAction = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.BlockAction", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_BlockAction), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_BlockAction, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_BlockAction, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_BlockAction, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_BlockAction, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_BlockLine __pyx_vtable_8pyspades_10networking_7loaders_BlockLine;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_BlockLine(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_BlockLine;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_BlockLine(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_BlockLine);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_x1(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2x1_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_x1(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2x1_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_y1(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2y1_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_y1(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2y1_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_z1(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2z1_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_z1(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2z1_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_x2(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2x2_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_x2(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2x2_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_y2(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2y2_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_y2(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2y2_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_z2(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2z2_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_z2(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9BlockLine_2z2_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_BlockLine[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9BlockLine_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_BlockLine[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_player_id, __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_player_id, (char *)0, 0},
  {(char *)"x1", __pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_x1, __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_x1, (char *)0, 0},
  {(char *)"y1", __pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_y1, __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_y1, (char *)0, 0},
  {(char *)"z1", __pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_z1, __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_z1, (char *)0, 0},
  {(char *)"x2", __pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_x2, __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_x2, (char *)0, 0},
  {(char *)"y2", __pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_y2, __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_y2, (char *)0, 0},
  {(char *)"z2", __pyx_getprop_8pyspades_10networking_7loaders_9BlockLine_z2, __pyx_setprop_8pyspades_10networking_7loaders_9BlockLine_z2, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_BlockLine = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.BlockLine", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_BlockLine), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_BlockLine, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_BlockLine, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_BlockLine, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_BlockLine, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_CTFState __pyx_vtable_8pyspades_10networking_7loaders_CTFState;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_CTFState(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_CTFState *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_CTFState;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_CTFState(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_CTFState);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_score(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_11team1_score_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_score(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_11team1_score_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_score(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_11team2_score_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_score(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_11team2_score_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_cap_limit(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_9cap_limit_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_cap_limit(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_9cap_limit_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_has_intel(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_15team1_has_intel_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_has_intel(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_15team1_has_intel_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_has_intel(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_15team2_has_intel_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_has_intel(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_15team2_has_intel_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_carrier(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_13team1_carrier_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_carrier(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_13team1_carrier_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_carrier(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_13team2_carrier_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_carrier(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_13team2_carrier_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_flag_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_x_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_flag_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_flag_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_y_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_flag_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_flag_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_z_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_flag_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_flag_z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_flag_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_x_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_flag_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_flag_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_y_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_flag_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_flag_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_z_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_flag_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_flag_z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_base_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_x_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_base_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_base_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_y_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_base_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_base_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_z_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_base_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team1_base_z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_base_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_x_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_base_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_base_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_y_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_base_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_base_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_z_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_base_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8CTFState_12team2_base_z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_CTFState[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8CTFState_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8CTFState_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_CTFState[] = {
  {(char *)"team1_score", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_score, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_score, (char *)0, 0},
  {(char *)"team2_score", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_score, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_score, (char *)0, 0},
  {(char *)"cap_limit", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_cap_limit, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_cap_limit, (char *)0, 0},
  {(char *)"team1_has_intel", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_has_intel, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_has_intel, (char *)0, 0},
  {(char *)"team2_has_intel", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_has_intel, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_has_intel, (char *)0, 0},
  {(char *)"team1_carrier", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_carrier, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_carrier, (char *)0, 0},
  {(char *)"team2_carrier", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_carrier, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_carrier, (char *)0, 0},
  {(char *)"team1_flag_x", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_flag_x, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_flag_x, (char *)0, 0},
  {(char *)"team1_flag_y", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_flag_y, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_flag_y, (char *)0, 0},
  {(char *)"team1_flag_z", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_flag_z, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_flag_z, (char *)0, 0},
  {(char *)"team2_flag_x", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_flag_x, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_flag_x, (char *)0, 0},
  {(char *)"team2_flag_y", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_flag_y, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_flag_y, (char *)0, 0},
  {(char *)"team2_flag_z", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_flag_z, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_flag_z, (char *)0, 0},
  {(char *)"team1_base_x", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_base_x, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_base_x, (char *)0, 0},
  {(char *)"team1_base_y", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_base_y, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_base_y, (char *)0, 0},
  {(char *)"team1_base_z", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team1_base_z, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team1_base_z, (char *)0, 0},
  {(char *)"team2_base_x", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_base_x, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_base_x, (char *)0, 0},
  {(char *)"team2_base_y", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_base_y, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_base_y, (char *)0, 0},
  {(char *)"team2_base_z", __pyx_getprop_8pyspades_10networking_7loaders_8CTFState_team2_base_z, __pyx_setprop_8pyspades_10networking_7loaders_8CTFState_team2_base_z, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_CTFState = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.CTFState", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_CTFState), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_CTFState, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_CTFState, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_CTFState, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_CTFState, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_Territory __pyx_vtable_8pyspades_10networking_7loaders_Territory;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_Territory(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_Territory *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_Territory *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_Territory;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_Territory(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_Territory);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9Territory_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9Territory_1x_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9Territory_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9Territory_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9Territory_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9Territory_1y_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9Territory_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9Territory_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9Territory_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9Territory_1z_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9Territory_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9Territory_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9Territory_state(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9Territory_5state_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9Territory_state(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9Territory_5state_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_Territory[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9Territory_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9Territory_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_Territory[] = {
  {(char *)"x", __pyx_getprop_8pyspades_10networking_7loaders_9Territory_x, __pyx_setprop_8pyspades_10networking_7loaders_9Territory_x, (char *)0, 0},
  {(char *)"y", __pyx_getprop_8pyspades_10networking_7loaders_9Territory_y, __pyx_setprop_8pyspades_10networking_7loaders_9Territory_y, (char *)0, 0},
  {(char *)"z", __pyx_getprop_8pyspades_10networking_7loaders_9Territory_z, __pyx_setprop_8pyspades_10networking_7loaders_9Territory_z, (char *)0, 0},
  {(char *)"state", __pyx_getprop_8pyspades_10networking_7loaders_9Territory_state, __pyx_setprop_8pyspades_10networking_7loaders_9Territory_state, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_Territory = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.Territory", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_Territory), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_Territory, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_Territory, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_Territory, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_Territory, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ObjectTerritory __pyx_vtable_8pyspades_10networking_7loaders_ObjectTerritory;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ObjectTerritory(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_ObjectTerritory;
  p->item = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_ObjectTerritory(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *p = (struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->item);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_ObjectTerritory);
}

static int __pyx_tp_traverse_8pyspades_10networking_7loaders_ObjectTerritory(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *p = (struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *)o;
  e = ((likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) ? ((__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse) ? __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_8pyspades_10networking_7loaders_ObjectTerritory)); if (e) return e;
  if (p->item) {
    e = (*v)(p->item, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_8pyspades_10networking_7loaders_ObjectTerritory(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *p = (struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory *)o;
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) { if (__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_8pyspades_10networking_7loaders_ObjectTerritory);
  tmp = ((PyObject*)p->item);
  p->item = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_15ObjectTerritory_item(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_4item_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_15ObjectTerritory_item(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_4item_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_4item_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_ObjectTerritory[] = {
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15ObjectTerritory_1write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_ObjectTerritory[] = {
  {(char *)"item", __pyx_getprop_8pyspades_10networking_7loaders_15ObjectTerritory_item, __pyx_setprop_8pyspades_10networking_7loaders_15ObjectTerritory_item, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_ObjectTerritory = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.ObjectTerritory", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_ObjectTerritory), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_ObjectTerritory, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_8pyspades_10networking_7loaders_ObjectTerritory, /*tp_traverse*/
  __pyx_tp_clear_8pyspades_10networking_7loaders_ObjectTerritory, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_ObjectTerritory, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_ObjectTerritory, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_ObjectTerritory, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_TCState __pyx_vtable_8pyspades_10networking_7loaders_TCState;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_TCState(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_TCState *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_TCState *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_TCState;
  p->territories = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_TCState(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_TCState *p = (struct __pyx_obj_8pyspades_10networking_7loaders_TCState *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->territories);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_TCState);
}

static int __pyx_tp_traverse_8pyspades_10networking_7loaders_TCState(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_8pyspades_10networking_7loaders_TCState *p = (struct __pyx_obj_8pyspades_10networking_7loaders_TCState *)o;
  e = ((likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) ? ((__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse) ? __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_8pyspades_10networking_7loaders_TCState)); if (e) return e;
  if (p->territories) {
    e = (*v)(p->territories, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_8pyspades_10networking_7loaders_TCState(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_8pyspades_10networking_7loaders_TCState *p = (struct __pyx_obj_8pyspades_10networking_7loaders_TCState *)o;
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) { if (__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_8pyspades_10networking_7loaders_TCState);
  tmp = ((PyObject*)p->territories);
  p->territories = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_7TCState_territories(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_7TCState_11territories_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_7TCState_territories(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_7TCState_11territories_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_7TCState_11territories_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_TCState[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7TCState_1read, METH_O, 0},
  {"set_entities", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7TCState_3set_entities, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7TCState_5write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_TCState[] = {
  {(char *)"territories", __pyx_getprop_8pyspades_10networking_7loaders_7TCState_territories, __pyx_setprop_8pyspades_10networking_7loaders_7TCState_territories, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_TCState = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.TCState", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_TCState), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_TCState, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_8pyspades_10networking_7loaders_TCState, /*tp_traverse*/
  __pyx_tp_clear_8pyspades_10networking_7loaders_TCState, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_TCState, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_TCState, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_TCState, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_StateData __pyx_vtable_8pyspades_10networking_7loaders_StateData;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_StateData(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_StateData *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_StateData;
  p->fog_color = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->team1_color = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->team2_color = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->state = ((struct __pyx_obj_8pyspades_10networking_6loader_Loader *)Py_None); Py_INCREF(Py_None);
  p->team1_name = Py_None; Py_INCREF(Py_None);
  p->team2_name = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_StateData(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_StateData *p = (struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->fog_color);
  Py_CLEAR(p->team1_color);
  Py_CLEAR(p->team2_color);
  Py_CLEAR(p->state);
  Py_CLEAR(p->team1_name);
  Py_CLEAR(p->team2_name);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_StateData);
}

static int __pyx_tp_traverse_8pyspades_10networking_7loaders_StateData(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_8pyspades_10networking_7loaders_StateData *p = (struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)o;
  e = ((likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) ? ((__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse) ? __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_8pyspades_10networking_7loaders_StateData)); if (e) return e;
  if (p->fog_color) {
    e = (*v)(p->fog_color, a); if (e) return e;
  }
  if (p->team1_color) {
    e = (*v)(p->team1_color, a); if (e) return e;
  }
  if (p->team2_color) {
    e = (*v)(p->team2_color, a); if (e) return e;
  }
  if (p->state) {
    e = (*v)(((PyObject*)p->state), a); if (e) return e;
  }
  if (p->team1_name) {
    e = (*v)(p->team1_name, a); if (e) return e;
  }
  if (p->team2_name) {
    e = (*v)(p->team2_name, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_8pyspades_10networking_7loaders_StateData(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_8pyspades_10networking_7loaders_StateData *p = (struct __pyx_obj_8pyspades_10networking_7loaders_StateData *)o;
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) { if (__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_8pyspades_10networking_7loaders_StateData);
  tmp = ((PyObject*)p->fog_color);
  p->fog_color = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->team1_color);
  p->team1_color = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->team2_color);
  p->team2_color = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->state);
  p->state = ((struct __pyx_obj_8pyspades_10networking_6loader_Loader *)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->team1_name);
  p->team1_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  tmp = ((PyObject*)p->team2_name);
  p->team2_name = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9StateData_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9StateData_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9StateData_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9StateData_fog_color(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9StateData_9fog_color_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9StateData_fog_color(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_9fog_color_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_9fog_color_5__del__(o);
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9StateData_team1_color(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team1_color_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9StateData_team1_color(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team1_color_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team1_color_5__del__(o);
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9StateData_team2_color(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team2_color_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9StateData_team2_color(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team2_color_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_11team2_color_5__del__(o);
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9StateData_state(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9StateData_5state_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9StateData_state(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_5state_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_5state_5__del__(o);
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9StateData_team1_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team1_name_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9StateData_team1_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team1_name_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team1_name_5__del__(o);
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9StateData_team2_name(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team2_name_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9StateData_team2_name(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team2_name_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_9StateData_10team2_name_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_StateData[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9StateData_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9StateData_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_StateData[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_9StateData_player_id, __pyx_setprop_8pyspades_10networking_7loaders_9StateData_player_id, (char *)0, 0},
  {(char *)"fog_color", __pyx_getprop_8pyspades_10networking_7loaders_9StateData_fog_color, __pyx_setprop_8pyspades_10networking_7loaders_9StateData_fog_color, (char *)0, 0},
  {(char *)"team1_color", __pyx_getprop_8pyspades_10networking_7loaders_9StateData_team1_color, __pyx_setprop_8pyspades_10networking_7loaders_9StateData_team1_color, (char *)0, 0},
  {(char *)"team2_color", __pyx_getprop_8pyspades_10networking_7loaders_9StateData_team2_color, __pyx_setprop_8pyspades_10networking_7loaders_9StateData_team2_color, (char *)0, 0},
  {(char *)"state", __pyx_getprop_8pyspades_10networking_7loaders_9StateData_state, __pyx_setprop_8pyspades_10networking_7loaders_9StateData_state, (char *)0, 0},
  {(char *)"team1_name", __pyx_getprop_8pyspades_10networking_7loaders_9StateData_team1_name, __pyx_setprop_8pyspades_10networking_7loaders_9StateData_team1_name, (char *)0, 0},
  {(char *)"team2_name", __pyx_getprop_8pyspades_10networking_7loaders_9StateData_team2_name, __pyx_setprop_8pyspades_10networking_7loaders_9StateData_team2_name, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_StateData = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.StateData", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_StateData), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_StateData, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_8pyspades_10networking_7loaders_StateData, /*tp_traverse*/
  __pyx_tp_clear_8pyspades_10networking_7loaders_StateData, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_StateData, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_StateData, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_StateData, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_KillAction __pyx_vtable_8pyspades_10networking_7loaders_KillAction;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_KillAction(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_KillAction *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_KillAction;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_KillAction(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_KillAction);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10KillAction_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10KillAction_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10KillAction_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10KillAction_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10KillAction_killer_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10KillAction_9killer_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10KillAction_killer_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10KillAction_9killer_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10KillAction_kill_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10KillAction_9kill_type_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10KillAction_kill_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10KillAction_9kill_type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10KillAction_respawn_time(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10KillAction_12respawn_time_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10KillAction_respawn_time(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10KillAction_12respawn_time_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_KillAction[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10KillAction_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10KillAction_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_KillAction[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_10KillAction_player_id, __pyx_setprop_8pyspades_10networking_7loaders_10KillAction_player_id, (char *)0, 0},
  {(char *)"killer_id", __pyx_getprop_8pyspades_10networking_7loaders_10KillAction_killer_id, __pyx_setprop_8pyspades_10networking_7loaders_10KillAction_killer_id, (char *)0, 0},
  {(char *)"kill_type", __pyx_getprop_8pyspades_10networking_7loaders_10KillAction_kill_type, __pyx_setprop_8pyspades_10networking_7loaders_10KillAction_kill_type, (char *)0, 0},
  {(char *)"respawn_time", __pyx_getprop_8pyspades_10networking_7loaders_10KillAction_respawn_time, __pyx_setprop_8pyspades_10networking_7loaders_10KillAction_respawn_time, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_KillAction = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.KillAction", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_KillAction), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_KillAction, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_KillAction, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_KillAction, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_KillAction, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ChatMessage __pyx_vtable_8pyspades_10networking_7loaders_ChatMessage;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ChatMessage(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_ChatMessage;
  p->value = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_ChatMessage(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *p = (struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->value);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_ChatMessage);
}

static int __pyx_tp_traverse_8pyspades_10networking_7loaders_ChatMessage(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *p = (struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)o;
  e = ((likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) ? ((__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse) ? __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_8pyspades_10networking_7loaders_ChatMessage)); if (e) return e;
  if (p->value) {
    e = (*v)(p->value, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_8pyspades_10networking_7loaders_ChatMessage(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *p = (struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage *)o;
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) { if (__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_8pyspades_10networking_7loaders_ChatMessage);
  tmp = ((PyObject*)p->value);
  p->value = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11ChatMessage_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11ChatMessage_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11ChatMessage_chat_type(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_9chat_type_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11ChatMessage_chat_type(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_9chat_type_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11ChatMessage_value(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_5value_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11ChatMessage_value(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_5value_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_5value_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_ChatMessage[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11ChatMessage_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_ChatMessage[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_11ChatMessage_player_id, __pyx_setprop_8pyspades_10networking_7loaders_11ChatMessage_player_id, (char *)0, 0},
  {(char *)"chat_type", __pyx_getprop_8pyspades_10networking_7loaders_11ChatMessage_chat_type, __pyx_setprop_8pyspades_10networking_7loaders_11ChatMessage_chat_type, (char *)0, 0},
  {(char *)"value", __pyx_getprop_8pyspades_10networking_7loaders_11ChatMessage_value, __pyx_setprop_8pyspades_10networking_7loaders_11ChatMessage_value, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_ChatMessage = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.ChatMessage", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_ChatMessage), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_ChatMessage, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_8pyspades_10networking_7loaders_ChatMessage, /*tp_traverse*/
  __pyx_tp_clear_8pyspades_10networking_7loaders_ChatMessage, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_ChatMessage, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_ChatMessage, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_ChatMessage, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_MapStart __pyx_vtable_8pyspades_10networking_7loaders_MapStart;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_MapStart(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_MapStart *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_MapStart;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_MapStart(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_MapStart);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8MapStart_size(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8MapStart_4size_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8MapStart_size(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8MapStart_4size_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_MapStart[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8MapStart_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8MapStart_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_MapStart[] = {
  {(char *)"size", __pyx_getprop_8pyspades_10networking_7loaders_8MapStart_size, __pyx_setprop_8pyspades_10networking_7loaders_8MapStart_size, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_MapStart = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.MapStart", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_MapStart), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_MapStart, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_MapStart, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_MapStart, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_MapStart, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_MapChunk __pyx_vtable_8pyspades_10networking_7loaders_MapChunk;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_MapChunk(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_MapChunk;
  p->data = Py_None; Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_MapChunk(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *p = (struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->data);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_MapChunk);
}

static int __pyx_tp_traverse_8pyspades_10networking_7loaders_MapChunk(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *p = (struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *)o;
  e = ((likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) ? ((__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse) ? __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_8pyspades_10networking_7loaders_MapChunk)); if (e) return e;
  if (p->data) {
    e = (*v)(p->data, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_8pyspades_10networking_7loaders_MapChunk(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *p = (struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk *)o;
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) { if (__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_8pyspades_10networking_7loaders_MapChunk);
  tmp = ((PyObject*)p->data);
  p->data = Py_None; Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8MapChunk_data(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8MapChunk_4data_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8MapChunk_data(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8MapChunk_4data_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_8MapChunk_4data_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_MapChunk[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8MapChunk_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8MapChunk_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_MapChunk[] = {
  {(char *)"data", __pyx_getprop_8pyspades_10networking_7loaders_8MapChunk_data, __pyx_setprop_8pyspades_10networking_7loaders_8MapChunk_data, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_MapChunk = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.MapChunk", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_MapChunk), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_MapChunk, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_8pyspades_10networking_7loaders_MapChunk, /*tp_traverse*/
  __pyx_tp_clear_8pyspades_10networking_7loaders_MapChunk, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_MapChunk, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_MapChunk, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_MapChunk, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_PlayerLeft __pyx_vtable_8pyspades_10networking_7loaders_PlayerLeft;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_PlayerLeft(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_PlayerLeft;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_PlayerLeft(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_PlayerLeft);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10PlayerLeft_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10PlayerLeft_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_PlayerLeft[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10PlayerLeft_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_PlayerLeft[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_10PlayerLeft_player_id, __pyx_setprop_8pyspades_10networking_7loaders_10PlayerLeft_player_id, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_PlayerLeft = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.PlayerLeft", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_PlayerLeft), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_PlayerLeft, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_PlayerLeft, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_PlayerLeft, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_PlayerLeft, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_TerritoryCapture __pyx_vtable_8pyspades_10networking_7loaders_TerritoryCapture;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_TerritoryCapture(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_TerritoryCapture;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_TerritoryCapture(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_TerritoryCapture);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_16TerritoryCapture_object_index(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_12object_index_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_16TerritoryCapture_object_index(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_12object_index_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_16TerritoryCapture_winning(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_7winning_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_16TerritoryCapture_winning(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_7winning_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_16TerritoryCapture_state(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_5state_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_16TerritoryCapture_state(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_5state_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_TerritoryCapture[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_16TerritoryCapture_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_TerritoryCapture[] = {
  {(char *)"object_index", __pyx_getprop_8pyspades_10networking_7loaders_16TerritoryCapture_object_index, __pyx_setprop_8pyspades_10networking_7loaders_16TerritoryCapture_object_index, (char *)0, 0},
  {(char *)"winning", __pyx_getprop_8pyspades_10networking_7loaders_16TerritoryCapture_winning, __pyx_setprop_8pyspades_10networking_7loaders_16TerritoryCapture_winning, (char *)0, 0},
  {(char *)"state", __pyx_getprop_8pyspades_10networking_7loaders_16TerritoryCapture_state, __pyx_setprop_8pyspades_10networking_7loaders_16TerritoryCapture_state, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_TerritoryCapture = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.TerritoryCapture", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_TerritoryCapture), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_TerritoryCapture, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_TerritoryCapture, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_TerritoryCapture, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_TerritoryCapture, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ProgressBar __pyx_vtable_8pyspades_10networking_7loaders_ProgressBar;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ProgressBar(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_ProgressBar;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_ProgressBar(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_ProgressBar);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11ProgressBar_object_index(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_12object_index_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11ProgressBar_object_index(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_12object_index_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11ProgressBar_capturing_team(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_14capturing_team_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11ProgressBar_capturing_team(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_14capturing_team_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11ProgressBar_rate(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_4rate_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11ProgressBar_rate(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_4rate_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11ProgressBar_progress(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_8progress_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11ProgressBar_progress(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_8progress_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_ProgressBar[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11ProgressBar_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_ProgressBar[] = {
  {(char *)"object_index", __pyx_getprop_8pyspades_10networking_7loaders_11ProgressBar_object_index, __pyx_setprop_8pyspades_10networking_7loaders_11ProgressBar_object_index, (char *)0, 0},
  {(char *)"capturing_team", __pyx_getprop_8pyspades_10networking_7loaders_11ProgressBar_capturing_team, __pyx_setprop_8pyspades_10networking_7loaders_11ProgressBar_capturing_team, (char *)0, 0},
  {(char *)"rate", __pyx_getprop_8pyspades_10networking_7loaders_11ProgressBar_rate, __pyx_setprop_8pyspades_10networking_7loaders_11ProgressBar_rate, (char *)0, 0},
  {(char *)"progress", __pyx_getprop_8pyspades_10networking_7loaders_11ProgressBar_progress, __pyx_setprop_8pyspades_10networking_7loaders_11ProgressBar_progress, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_ProgressBar = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.ProgressBar", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_ProgressBar), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_ProgressBar, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_ProgressBar, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_ProgressBar, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_ProgressBar, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_IntelCapture __pyx_vtable_8pyspades_10networking_7loaders_IntelCapture;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_IntelCapture(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_IntelCapture;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_IntelCapture(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_IntelCapture);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12IntelCapture_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12IntelCapture_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12IntelCapture_winning(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_7winning_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12IntelCapture_winning(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_7winning_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_IntelCapture[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12IntelCapture_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_IntelCapture[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_12IntelCapture_player_id, __pyx_setprop_8pyspades_10networking_7loaders_12IntelCapture_player_id, (char *)0, 0},
  {(char *)"winning", __pyx_getprop_8pyspades_10networking_7loaders_12IntelCapture_winning, __pyx_setprop_8pyspades_10networking_7loaders_12IntelCapture_winning, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_IntelCapture = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.IntelCapture", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_IntelCapture), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_IntelCapture, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_IntelCapture, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_IntelCapture, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_IntelCapture, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_IntelPickup __pyx_vtable_8pyspades_10networking_7loaders_IntelPickup;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_IntelPickup(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_IntelPickup;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_IntelPickup(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_IntelPickup);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_11IntelPickup_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_11IntelPickup_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_IntelPickup[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_11IntelPickup_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_IntelPickup[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_11IntelPickup_player_id, __pyx_setprop_8pyspades_10networking_7loaders_11IntelPickup_player_id, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_IntelPickup = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.IntelPickup", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_IntelPickup), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_IntelPickup, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_IntelPickup, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_IntelPickup, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_IntelPickup, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_IntelDrop __pyx_vtable_8pyspades_10networking_7loaders_IntelDrop;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_IntelDrop(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_IntelDrop;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_IntelDrop(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_IntelDrop);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9IntelDrop_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9IntelDrop_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9IntelDrop_x(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1x_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9IntelDrop_x(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1x_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9IntelDrop_y(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1y_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9IntelDrop_y(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1y_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_9IntelDrop_z(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1z_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_9IntelDrop_z(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1z_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_IntelDrop[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_9IntelDrop_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_IntelDrop[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_9IntelDrop_player_id, __pyx_setprop_8pyspades_10networking_7loaders_9IntelDrop_player_id, (char *)0, 0},
  {(char *)"x", __pyx_getprop_8pyspades_10networking_7loaders_9IntelDrop_x, __pyx_setprop_8pyspades_10networking_7loaders_9IntelDrop_x, (char *)0, 0},
  {(char *)"y", __pyx_getprop_8pyspades_10networking_7loaders_9IntelDrop_y, __pyx_setprop_8pyspades_10networking_7loaders_9IntelDrop_y, (char *)0, 0},
  {(char *)"z", __pyx_getprop_8pyspades_10networking_7loaders_9IntelDrop_z, __pyx_setprop_8pyspades_10networking_7loaders_9IntelDrop_z, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_IntelDrop = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.IntelDrop", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_IntelDrop), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_IntelDrop, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_IntelDrop, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_IntelDrop, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_IntelDrop, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_Restock __pyx_vtable_8pyspades_10networking_7loaders_Restock;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_Restock(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_Restock *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_Restock *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_Restock;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_Restock(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_Restock);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_7Restock_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_7Restock_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_7Restock_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_7Restock_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_Restock[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7Restock_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_7Restock_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_Restock[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_7Restock_player_id, __pyx_setprop_8pyspades_10networking_7loaders_7Restock_player_id, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_Restock = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.Restock", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_Restock), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_Restock, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_Restock, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_Restock, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_Restock, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_FogColor __pyx_vtable_8pyspades_10networking_7loaders_FogColor;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_FogColor(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_FogColor *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_FogColor;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_FogColor(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_FogColor);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_8FogColor_color(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_8FogColor_5color_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_8FogColor_color(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_8FogColor_5color_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_FogColor[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8FogColor_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_8FogColor_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_FogColor[] = {
  {(char *)"color", __pyx_getprop_8pyspades_10networking_7loaders_8FogColor_color, __pyx_setprop_8pyspades_10networking_7loaders_8FogColor_color, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_FogColor = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.FogColor", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_FogColor), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_FogColor, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_FogColor, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_FogColor, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_FogColor, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_WeaponReload __pyx_vtable_8pyspades_10networking_7loaders_WeaponReload;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_WeaponReload(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_WeaponReload;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_WeaponReload(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_WeaponReload);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12WeaponReload_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12WeaponReload_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12WeaponReload_clip_ammo(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_9clip_ammo_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12WeaponReload_clip_ammo(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_9clip_ammo_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12WeaponReload_reserve_ammo(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_12reserve_ammo_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12WeaponReload_reserve_ammo(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_12reserve_ammo_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_WeaponReload[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12WeaponReload_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_WeaponReload[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_12WeaponReload_player_id, __pyx_setprop_8pyspades_10networking_7loaders_12WeaponReload_player_id, (char *)0, 0},
  {(char *)"clip_ammo", __pyx_getprop_8pyspades_10networking_7loaders_12WeaponReload_clip_ammo, __pyx_setprop_8pyspades_10networking_7loaders_12WeaponReload_clip_ammo, (char *)0, 0},
  {(char *)"reserve_ammo", __pyx_getprop_8pyspades_10networking_7loaders_12WeaponReload_reserve_ammo, __pyx_setprop_8pyspades_10networking_7loaders_12WeaponReload_reserve_ammo, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_WeaponReload = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.WeaponReload", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_WeaponReload), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_WeaponReload, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_WeaponReload, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_WeaponReload, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_WeaponReload, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ChangeTeam __pyx_vtable_8pyspades_10networking_7loaders_ChangeTeam;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ChangeTeam(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_ChangeTeam;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_ChangeTeam(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_ChangeTeam);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10ChangeTeam_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10ChangeTeam_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10ChangeTeam_team(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_4team_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10ChangeTeam_team(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_4team_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_ChangeTeam[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10ChangeTeam_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_ChangeTeam[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_10ChangeTeam_player_id, __pyx_setprop_8pyspades_10networking_7loaders_10ChangeTeam_player_id, (char *)0, 0},
  {(char *)"team", __pyx_getprop_8pyspades_10networking_7loaders_10ChangeTeam_team, __pyx_setprop_8pyspades_10networking_7loaders_10ChangeTeam_team, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_ChangeTeam = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.ChangeTeam", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeTeam), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_ChangeTeam, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_ChangeTeam, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_ChangeTeam, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_ChangeTeam, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ChangeWeapon __pyx_vtable_8pyspades_10networking_7loaders_ChangeWeapon;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ChangeWeapon(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_ChangeWeapon;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_ChangeWeapon(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_ChangeWeapon);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12ChangeWeapon_player_id(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_9player_id_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12ChangeWeapon_player_id(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_9player_id_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_12ChangeWeapon_weapon(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_6weapon_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_12ChangeWeapon_weapon(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_6weapon_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_ChangeWeapon[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_12ChangeWeapon_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_ChangeWeapon[] = {
  {(char *)"player_id", __pyx_getprop_8pyspades_10networking_7loaders_12ChangeWeapon_player_id, __pyx_setprop_8pyspades_10networking_7loaders_12ChangeWeapon_player_id, (char *)0, 0},
  {(char *)"weapon", __pyx_getprop_8pyspades_10networking_7loaders_12ChangeWeapon_weapon, __pyx_setprop_8pyspades_10networking_7loaders_12ChangeWeapon_weapon, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_ChangeWeapon = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.ChangeWeapon", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_ChangeWeapon), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_ChangeWeapon, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_ChangeWeapon, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_ChangeWeapon, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_ChangeWeapon, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_HandShakeInit __pyx_vtable_8pyspades_10networking_7loaders_HandShakeInit;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_HandShakeInit(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_HandShakeInit;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_HandShakeInit(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_HandShakeInit);
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_HandShakeInit[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_13HandShakeInit_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_13HandShakeInit_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_HandShakeInit = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.HandShakeInit", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeInit), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_HandShakeInit, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_HandShakeInit, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_HandShakeInit, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_HandShakeReturn __pyx_vtable_8pyspades_10networking_7loaders_HandShakeReturn;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_HandShakeReturn(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_HandShakeReturn;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_HandShakeReturn(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_HandShakeReturn);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_15HandShakeReturn_success(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_7success_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_15HandShakeReturn_success(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_7success_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_HandShakeReturn[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15HandShakeReturn_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_HandShakeReturn[] = {
  {(char *)"success", __pyx_getprop_8pyspades_10networking_7loaders_15HandShakeReturn_success, __pyx_setprop_8pyspades_10networking_7loaders_15HandShakeReturn_success, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_HandShakeReturn = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.HandShakeReturn", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_HandShakeReturn), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_HandShakeReturn, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_HandShakeReturn, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_HandShakeReturn, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_HandShakeReturn, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_VersionRequest __pyx_vtable_8pyspades_10networking_7loaders_VersionRequest;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_VersionRequest(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_VersionRequest;
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_VersionRequest(PyObject *o) {
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_VersionRequest);
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_VersionRequest[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_14VersionRequest_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_14VersionRequest_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_VersionRequest = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.VersionRequest", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_VersionRequest), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_VersionRequest, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_VersionRequest, /*tp_methods*/
  0, /*tp_members*/
  0, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_VersionRequest, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_VersionResponse __pyx_vtable_8pyspades_10networking_7loaders_VersionResponse;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_VersionResponse(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_VersionResponse;
  p->client = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->version = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->os_info = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_VersionResponse(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *p = (struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->client);
  Py_CLEAR(p->version);
  Py_CLEAR(p->os_info);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_VersionResponse);
}

static int __pyx_tp_traverse_8pyspades_10networking_7loaders_VersionResponse(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *p = (struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)o;
  e = ((likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) ? ((__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse) ? __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_8pyspades_10networking_7loaders_VersionResponse)); if (e) return e;
  if (p->version) {
    e = (*v)(p->version, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_8pyspades_10networking_7loaders_VersionResponse(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *p = (struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse *)o;
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) { if (__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_8pyspades_10networking_7loaders_VersionResponse);
  tmp = ((PyObject*)p->version);
  p->version = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_15VersionResponse_client(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_6client_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_15VersionResponse_client(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_6client_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_6client_5__del__(o);
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_15VersionResponse_version(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7version_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_15VersionResponse_version(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7version_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7version_5__del__(o);
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_15VersionResponse_os_info(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7os_info_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_15VersionResponse_os_info(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7os_info_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_7os_info_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_VersionResponse[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_15VersionResponse_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_VersionResponse[] = {
  {(char *)"client", __pyx_getprop_8pyspades_10networking_7loaders_15VersionResponse_client, __pyx_setprop_8pyspades_10networking_7loaders_15VersionResponse_client, (char *)0, 0},
  {(char *)"version", __pyx_getprop_8pyspades_10networking_7loaders_15VersionResponse_version, __pyx_setprop_8pyspades_10networking_7loaders_15VersionResponse_version, (char *)0, 0},
  {(char *)"os_info", __pyx_getprop_8pyspades_10networking_7loaders_15VersionResponse_os_info, __pyx_setprop_8pyspades_10networking_7loaders_15VersionResponse_os_info, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_VersionResponse = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.VersionResponse", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_VersionResponse), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_VersionResponse, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_8pyspades_10networking_7loaders_VersionResponse, /*tp_traverse*/
  __pyx_tp_clear_8pyspades_10networking_7loaders_VersionResponse, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_VersionResponse, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_VersionResponse, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_VersionResponse, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ServerInfo __pyx_vtable_8pyspades_10networking_7loaders_ServerInfo;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ServerInfo(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_ServerInfo;
  p->servername = ((PyObject*)Py_None); Py_INCREF(Py_None);
  p->mapname = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_ServerInfo(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *p = (struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  Py_CLEAR(p->servername);
  Py_CLEAR(p->mapname);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_ServerInfo);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10ServerInfo_protocol_version(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_16protocol_version_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10ServerInfo_protocol_version(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_16protocol_version_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10ServerInfo_players(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7players_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10ServerInfo_players(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7players_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10ServerInfo_maxplayers(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10maxplayers_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10ServerInfo_maxplayers(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10maxplayers_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10ServerInfo_servername(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10servername_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10ServerInfo_servername(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10servername_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_10servername_5__del__(o);
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10ServerInfo_mapname(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7mapname_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10ServerInfo_mapname(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7mapname_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_7mapname_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_ServerInfo[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10ServerInfo_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_ServerInfo[] = {
  {(char *)"protocol_version", __pyx_getprop_8pyspades_10networking_7loaders_10ServerInfo_protocol_version, __pyx_setprop_8pyspades_10networking_7loaders_10ServerInfo_protocol_version, (char *)0, 0},
  {(char *)"players", __pyx_getprop_8pyspades_10networking_7loaders_10ServerInfo_players, __pyx_setprop_8pyspades_10networking_7loaders_10ServerInfo_players, (char *)0, 0},
  {(char *)"maxplayers", __pyx_getprop_8pyspades_10networking_7loaders_10ServerInfo_maxplayers, __pyx_setprop_8pyspades_10networking_7loaders_10ServerInfo_maxplayers, (char *)0, 0},
  {(char *)"servername", __pyx_getprop_8pyspades_10networking_7loaders_10ServerInfo_servername, __pyx_setprop_8pyspades_10networking_7loaders_10ServerInfo_servername, (char *)0, 0},
  {(char *)"mapname", __pyx_getprop_8pyspades_10networking_7loaders_10ServerInfo_mapname, __pyx_setprop_8pyspades_10networking_7loaders_10ServerInfo_mapname, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_ServerInfo = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.ServerInfo", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_ServerInfo), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_ServerInfo, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_ServerInfo, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_ServerInfo, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_ServerInfo, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_ApiRequest __pyx_vtable_8pyspades_10networking_7loaders_ApiRequest;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_ApiRequest(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_ApiRequest;
  p->json_request = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_ApiRequest(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *p = (struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  Py_CLEAR(p->json_request);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_ApiRequest);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10ApiRequest_requestID(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_9requestID_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10ApiRequest_requestID(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_9requestID_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_10ApiRequest_json_request(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_12json_request_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_10ApiRequest_json_request(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_12json_request_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_12json_request_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_ApiRequest[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_10ApiRequest_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_ApiRequest[] = {
  {(char *)"requestID", __pyx_getprop_8pyspades_10networking_7loaders_10ApiRequest_requestID, __pyx_setprop_8pyspades_10networking_7loaders_10ApiRequest_requestID, (char *)0, 0},
  {(char *)"json_request", __pyx_getprop_8pyspades_10networking_7loaders_10ApiRequest_json_request, __pyx_setprop_8pyspades_10networking_7loaders_10ApiRequest_json_request, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_ApiRequest = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.ApiRequest", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_ApiRequest), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_ApiRequest, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_ApiRequest, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_ApiRequest, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_ApiRequest, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_AuthenticationRequest __pyx_vtable_8pyspades_10networking_7loaders_AuthenticationRequest;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_AuthenticationRequest(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_AuthenticationRequest;
  p->token = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_AuthenticationRequest(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *p = (struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  Py_CLEAR(p->token);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_AuthenticationRequest);
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_21AuthenticationRequest_token(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_21AuthenticationRequest_token(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_5token_5__del__(o);
  }
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_21AuthenticationRequest_response_code(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_13response_code_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_21AuthenticationRequest_response_code(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_13response_code_3__set__(o, v);
  }
  else {
    PyErr_SetString(PyExc_NotImplementedError, "__del__");
    return -1;
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_AuthenticationRequest[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_21AuthenticationRequest_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_AuthenticationRequest[] = {
  {(char *)"token", __pyx_getprop_8pyspades_10networking_7loaders_21AuthenticationRequest_token, __pyx_setprop_8pyspades_10networking_7loaders_21AuthenticationRequest_token, (char *)0, 0},
  {(char *)"response_code", __pyx_getprop_8pyspades_10networking_7loaders_21AuthenticationRequest_response_code, __pyx_setprop_8pyspades_10networking_7loaders_21AuthenticationRequest_response_code, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_AuthenticationRequest = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.AuthenticationRequest", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_AuthenticationRequest), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_AuthenticationRequest, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE, /*tp_flags*/
  0, /*tp_doc*/
  0, /*tp_traverse*/
  0, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_AuthenticationRequest, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_AuthenticationRequest, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_AuthenticationRequest, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};
static struct __pyx_vtabstruct_8pyspades_10networking_7loaders_SetClientSetting __pyx_vtable_8pyspades_10networking_7loaders_SetClientSetting;

static PyObject *__pyx_tp_new_8pyspades_10networking_7loaders_SetClientSetting(PyTypeObject *t, PyObject *a, PyObject *k) {
  struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *p;
  PyObject *o = __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_new(t, a, k);
  if (unlikely(!o)) return 0;
  p = ((struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *)o);
  p->__pyx_base.__pyx_vtab = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__pyx_vtabptr_8pyspades_10networking_7loaders_SetClientSetting;
  p->settings = ((PyObject*)Py_None); Py_INCREF(Py_None);
  return o;
}

static void __pyx_tp_dealloc_8pyspades_10networking_7loaders_SetClientSetting(PyObject *o) {
  struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *p = (struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *)o;
  #if PY_VERSION_HEX >= 0x030400a1
  if (unlikely(Py_TYPE(o)->tp_finalize) && !_PyGC_FINALIZED(o)) {
    if (PyObject_CallFinalizerFromDealloc(o)) return;
  }
  #endif
  PyObject_GC_UnTrack(o);
  Py_CLEAR(p->settings);
  #if CYTHON_USE_TYPE_SLOTS
  if (PyType_IS_GC(Py_TYPE(o)->tp_base))
  #endif
  PyObject_GC_Track(o);
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dealloc(o); else __Pyx_call_next_tp_dealloc(o, __pyx_tp_dealloc_8pyspades_10networking_7loaders_SetClientSetting);
}

static int __pyx_tp_traverse_8pyspades_10networking_7loaders_SetClientSetting(PyObject *o, visitproc v, void *a) {
  int e;
  struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *p = (struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *)o;
  e = ((likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) ? ((__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse) ? __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_traverse(o, v, a) : 0) : __Pyx_call_next_tp_traverse(o, v, a, __pyx_tp_traverse_8pyspades_10networking_7loaders_SetClientSetting)); if (e) return e;
  if (p->settings) {
    e = (*v)(p->settings, a); if (e) return e;
  }
  return 0;
}

static int __pyx_tp_clear_8pyspades_10networking_7loaders_SetClientSetting(PyObject *o) {
  PyObject* tmp;
  struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *p = (struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting *)o;
  if (likely(__pyx_ptype_8pyspades_10networking_6loader_Loader)) { if (__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear) __pyx_ptype_8pyspades_10networking_6loader_Loader->tp_clear(o); } else __Pyx_call_next_tp_clear(o, __pyx_tp_clear_8pyspades_10networking_7loaders_SetClientSetting);
  tmp = ((PyObject*)p->settings);
  p->settings = ((PyObject*)Py_None); Py_INCREF(Py_None);
  Py_XDECREF(tmp);
  return 0;
}

static PyObject *__pyx_getprop_8pyspades_10networking_7loaders_16SetClientSetting_settings(PyObject *o, CYTHON_UNUSED void *x) {
  return __pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_8settings_1__get__(o);
}

static int __pyx_setprop_8pyspades_10networking_7loaders_16SetClientSetting_settings(PyObject *o, PyObject *v, CYTHON_UNUSED void *x) {
  if (v) {
    return __pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_8settings_3__set__(o, v);
  }
  else {
    return __pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_8settings_5__del__(o);
  }
}

static PyMethodDef __pyx_methods_8pyspades_10networking_7loaders_SetClientSetting[] = {
  {"read", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_1read, METH_O, 0},
  {"write", (PyCFunction)__pyx_pw_8pyspades_10networking_7loaders_16SetClientSetting_3write, METH_O, 0},
  {0, 0, 0, 0}
};

static struct PyGetSetDef __pyx_getsets_8pyspades_10networking_7loaders_SetClientSetting[] = {
  {(char *)"settings", __pyx_getprop_8pyspades_10networking_7loaders_16SetClientSetting_settings, __pyx_setprop_8pyspades_10networking_7loaders_16SetClientSetting_settings, (char *)0, 0},
  {0, 0, 0, 0, 0}
};

static PyTypeObject __pyx_type_8pyspades_10networking_7loaders_SetClientSetting = {
  PyVarObject_HEAD_INIT(0, 0)
  "pyspades.networking.loaders.SetClientSetting", /*tp_name*/
  sizeof(struct __pyx_obj_8pyspades_10networking_7loaders_SetClientSetting), /*tp_basicsize*/
  0, /*tp_itemsize*/
  __pyx_tp_dealloc_8pyspades_10networking_7loaders_SetClientSetting, /*tp_dealloc*/
  0, /*tp_print*/
  0, /*tp_getattr*/
  0, /*tp_setattr*/
  #if PY_MAJOR_VERSION < 3
  0, /*tp_compare*/
  #endif
  #if PY_MAJOR_VERSION >= 3
  0, /*tp_as_async*/
  #endif
  0, /*tp_repr*/
  0, /*tp_as_number*/
  0, /*tp_as_sequence*/
  0, /*tp_as_mapping*/
  0, /*tp_hash*/
  0, /*tp_call*/
  0, /*tp_str*/
  0, /*tp_getattro*/
  0, /*tp_setattro*/
  0, /*tp_as_buffer*/
  Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_VERSION_TAG|Py_TPFLAGS_CHECKTYPES|Py_TPFLAGS_HAVE_NEWBUFFER|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
  0, /*tp_doc*/
  __pyx_tp_traverse_8pyspades_10networking_7loaders_SetClientSetting, /*tp_traverse*/
  __pyx_tp_clear_8pyspades_10networking_7loaders_SetClientSetting, /*tp_clear*/
  0, /*tp_richcompare*/
  0, /*tp_weaklistoffset*/
  0, /*tp_iter*/
  0, /*tp_iternext*/
  __pyx_methods_8pyspades_10networking_7loaders_SetClientSetting, /*tp_methods*/
  0, /*tp_members*/
  __pyx_getsets_8pyspades_10networking_7loaders_SetClientSetting, /*tp_getset*/
  0, /*tp_base*/
  0, /*tp_dict*/
  0, /*tp_descr_get*/
  0, /*tp_descr_set*/
  0, /*tp_dictoffset*/
  0, /*tp_init*/
  0, /*tp_alloc*/
  __pyx_tp_new_8pyspades_10networking_7loaders_SetClientSetting, /*tp_new*/
  0, /*tp_free*/
  0, /*tp_is_gc*/
  0, /*tp_bases*/
  0, /*tp_mro*/
  0, /*tp_cache*/
  0, /*tp_subclasses*/
  0, /*tp_weaklist*/
  0, /*tp_del*/
  0, /*tp_version_tag*/
  #if PY_VERSION_HEX >= 0x030400a1
  0, /*tp_finalize*/
  #endif
};

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};

static int __pyx_import_star_set(PyObject *o, PyObject* py_name, char *name) {
  static const char* internal_type_names[] = {
    "ApiRequest",
    "AuthenticationRequest",
    "BlockAction",
    "BlockLine",
    "ByteReader",
    "ByteWriter",
    "CTFState",
    "ChangeTeam",
    "ChangeWeapon",
    "ChatMessage",
    "CreatePlayer",
    "ExistingPlayer",
    "FogColor",
    "GrenadePacket",
    "HandShakeInit",
    "HandShakeReturn",
    "HitPacket",
    "InputData",
    "IntelCapture",
    "IntelDrop",
    "IntelPickup",
    "KillAction",
    "Loader",
    "MapChunk",
    "MapStart",
    "MoveObject",
    "ObjectTerritory",
    "OrientationData",
    "PlayerLeft",
    "PositionData",
    "ProgressBar",
    "Restock",
    "ServerInfo",
    "SetClientSetting",
    "SetColor",
    "SetHP",
    "SetTool",
    "ShortPlayerData",
    "StateData",
    "TCState",
    "Territory",
    "TerritoryCapture",
    "VersionRequest",
    "VersionResponse",
    "WeaponInput",
    "WeaponReload",
    "WorldUpdate",
    "__pyx_ctuple_float__and_float__and_float",
    "__pyx_ctuple_float__and_float__and_float_struct",
    "__pyx_ctuple_int",
    "__pyx_ctuple_int__and_int__and_int",
    "__pyx_ctuple_int__and_int__and_int_struct",
    "__pyx_ctuple_int_struct",
    "__pyx_ctuple_long",
    "__pyx_ctuple_long_struct",
    "__pyx_ctuple_unsigned__space_int",
    "__pyx_ctuple_unsigned__space_int_struct",
    0
  };
  const char** type_name = internal_type_names;
  while (*type_name) {
    if (__Pyx_StrEq(name, *type_name)) {
      PyErr_Format(PyExc_TypeError, "Cannot overwrite C type %s", name);
      goto bad;
    }
    type_name++;
  }
  if (0);
  else {
    if (PyObject_SetAttr(__pyx_m, py_name, o) < 0) goto bad;
  }
  return 0;
  bad:
  return -1;
}

























































































































static int
__Pyx_import_all_from(PyObject *locals, PyObject *v)
{
    PyObject *all = PyObject_GetAttrString(v, "__all__");
    PyObject *dict, *name, *value;
    int skip_leading_underscores = 0;
    int pos, err;

    if (all == NULL) {
        if (!PyErr_ExceptionMatches(PyExc_AttributeError))
            return -1;
        PyErr_Clear();
        dict = PyObject_GetAttrString(v, "__dict__");
        if (dict == NULL) {
            if (!PyErr_ExceptionMatches(PyExc_AttributeError))
                return -1;
            PyErr_SetString(PyExc_ImportError,
            "from-import-* object has no __dict__ and no __all__");
            return -1;
        }
#if PY_MAJOR_VERSION < 3
        all = PyObject_CallMethod(dict, (char *)"keys", NULL);
#else
        all = PyMapping_Keys(dict);
#endif
        Py_DECREF(dict);
        if (all == NULL)
            return -1;
        skip_leading_underscores = 1;
    }

    for (pos = 0, err = 0; ; pos++) {
        name = PySequence_GetItem(all, pos);
        if (name == NULL) {
            if (!PyErr_ExceptionMatches(PyExc_IndexError))
                err = -1;
            else
                PyErr_Clear();
            break;
        }
        if (skip_leading_underscores &&
#if PY_MAJOR_VERSION < 3
            PyString_Check(name) &&
            PyString_AS_STRING(name)[0] == '_')
#else
            PyUnicode_Check(name) &&
            PyUnicode_AS_UNICODE(name)[0] == '_')
#endif
        {
            Py_DECREF(name);
            continue;
        }
        value = PyObject_GetAttr(v, name);
        if (value == NULL)
            err = -1;
        else if (PyDict_CheckExact(locals))
            err = PyDict_SetItem(locals, name, value);
        else
            err = PyObject_SetItem(locals, name, value);
        Py_DECREF(name);
        Py_XDECREF(value);
        if (err != 0)
            break;
    }
    Py_DECREF(all);
    return err;
}


static int __pyx_import_star(PyObject* m) {

    int i;
    int ret = -1;
    char* s;
    PyObject *locals = 0;
    PyObject *list = 0;
#if PY_MAJOR_VERSION >= 3
    PyObject *utf8_name = 0;
#endif
    PyObject *name;
    PyObject *item;

    locals = PyDict_New();              if (!locals) goto bad;
    if (__Pyx_import_all_from(locals, m) < 0) goto bad;
    list = PyDict_Items(locals);        if (!list) goto bad;

    for(i=0; i<PyList_GET_SIZE(list); i++) {
        name = PyTuple_GET_ITEM(PyList_GET_ITEM(list, i), 0);
        item = PyTuple_GET_ITEM(PyList_GET_ITEM(list, i), 1);
#if PY_MAJOR_VERSION >= 3
        utf8_name = PyUnicode_AsUTF8String(name);
        if (!utf8_name) goto bad;
        s = PyBytes_AS_STRING(utf8_name);
        if (__pyx_import_star_set(item, name, s) < 0) goto bad;
        Py_DECREF(utf8_name); utf8_name = 0;
#else
        s = PyString_AsString(name);
        if (!s) goto bad;
        if (__pyx_import_star_set(item, name, s) < 0) goto bad;
#endif
    }
    ret = 0;

bad:
    Py_XDECREF(locals);
    Py_XDECREF(list);
#if PY_MAJOR_VERSION >= 3
    Py_XDECREF(utf8_name);
#endif
    return ret;
}



#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef __pyx_moduledef = {
  #if PY_VERSION_HEX < 0x03020000
    { PyObject_HEAD_INIT(NULL) NULL, 0, NULL },
  #else
    PyModuleDef_HEAD_INIT,
  #endif
    "loaders",
    0, /* m_doc */
    -1, /* m_size */
    __pyx_methods /* m_methods */,
    NULL, /* m_reload */
    NULL, /* m_traverse */
    NULL, /* m_clear */
    NULL /* m_free */
};
#endif

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  {&__pyx_n_s_, __pyx_k_, sizeof(__pyx_k_), 0, 0, 1, 1},
  {&__pyx_n_s_CTF_MODE, __pyx_k_CTF_MODE, sizeof(__pyx_k_CTF_MODE), 0, 0, 1, 1},
  {&__pyx_n_s_NEUTRAL_TEAM, __pyx_k_NEUTRAL_TEAM, sizeof(__pyx_k_NEUTRAL_TEAM), 0, 0, 1, 1},
  {&__pyx_n_s_OpenSpades, __pyx_k_OpenSpades, sizeof(__pyx_k_OpenSpades), 0, 0, 1, 1},
  {&__pyx_n_s_TC_MODE, __pyx_k_TC_MODE, sizeof(__pyx_k_TC_MODE), 0, 0, 1, 1},
  {&__pyx_n_s_Tr, __pyx_k_Tr, sizeof(__pyx_k_Tr), 0, 0, 1, 1},
  {&__pyx_n_s_count, __pyx_k_count, sizeof(__pyx_k_count), 0, 0, 1, 1},
  {&__pyx_n_s_decode, __pyx_k_decode, sizeof(__pyx_k_decode), 0, 0, 1, 1},
  {&__pyx_n_s_encode, __pyx_k_encode, sizeof(__pyx_k_encode), 0, 0, 1, 1},
  {&__pyx_n_s_get_bytes, __pyx_k_get_bytes, sizeof(__pyx_k_get_bytes), 0, 0, 1, 1},
  {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1},
  {&__pyx_n_s_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 0, 1, 1},
  {&__pyx_n_s_id_iter, __pyx_k_id_iter, sizeof(__pyx_k_id_iter), 0, 0, 1, 1},
  {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
  {&__pyx_n_s_itertools, __pyx_k_itertools, sizeof(__pyx_k_itertools), 0, 0, 1, 1},
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
  {&__pyx_n_s_maxplayers, __pyx_k_maxplayers, sizeof(__pyx_k_maxplayers), 0, 0, 1, 1},
  {&__pyx_n_s_modes, __pyx_k_modes, sizeof(__pyx_k_modes), 0, 0, 1, 1},
  {&__pyx_n_s_players, __pyx_k_players, sizeof(__pyx_k_players), 0, 0, 1, 1},
  {&__pyx_n_s_protocolversion, __pyx_k_protocolversion, sizeof(__pyx_k_protocolversion), 0, 0, 1, 1},
  {&__pyx_n_s_pyspades_common, __pyx_k_pyspades_common, sizeof(__pyx_k_pyspades_common), 0, 0, 1, 1},
  {&__pyx_n_s_pyspades_constants, __pyx_k_pyspades_constants, sizeof(__pyx_k_pyspades_constants), 0, 0, 1, 1},
  {&__pyx_n_s_pyx_vtable, __pyx_k_pyx_vtable, sizeof(__pyx_k_pyx_vtable), 0, 0, 1, 1},
  {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1},
  {&__pyx_n_s_read, __pyx_k_read, sizeof(__pyx_k_read), 0, 0, 1, 1},
  {&__pyx_n_s_settings, __pyx_k_settings, sizeof(__pyx_k_settings), 0, 0, 1, 1},
  {&__pyx_n_s_team, __pyx_k_team, sizeof(__pyx_k_team), 0, 0, 1, 1},
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
  {&__pyx_n_s_write, __pyx_k_write, sizeof(__pyx_k_write), 0, 0, 1, 1},
  {&__pyx_n_s_x, __pyx_k_x, sizeof(__pyx_k_x), 0, 0, 1, 1},
  {&__pyx_n_s_xrange, __pyx_k_xrange, sizeof(__pyx_k_xrange), 0, 0, 1, 1},
  {&__pyx_n_s_y, __pyx_k_y, sizeof(__pyx_k_y), 0, 0, 1, 1},
  {&__pyx_n_s_z, __pyx_k_z, sizeof(__pyx_k_z), 0, 0, 1, 1},
  {0, 0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 109, __pyx_L1_error)
  #if PY_MAJOR_VERSION >= 3
  __pyx_builtin_xrange = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_xrange) __PYX_ERR(0, 518, __pyx_L1_error)
  #else
  __pyx_builtin_xrange = __Pyx_GetBuiltinName(__pyx_n_s_xrange); if (!__pyx_builtin_xrange) __PYX_ERR(0, 518, __pyx_L1_error)
  #endif
  return 0;
  __pyx_L1_error:;
  return -1;
}

static int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_InitGlobals(void) {
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_3 = PyInt_FromLong(3); if (unlikely(!__pyx_int_3)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_6 = PyInt_FromLong(6); if (unlikely(!__pyx_int_6)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_7 = PyInt_FromLong(7); if (unlikely(!__pyx_int_7)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_8 = PyInt_FromLong(8); if (unlikely(!__pyx_int_8)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_9 = PyInt_FromLong(9); if (unlikely(!__pyx_int_9)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_10 = PyInt_FromLong(10); if (unlikely(!__pyx_int_10)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_11 = PyInt_FromLong(11); if (unlikely(!__pyx_int_11)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_12 = PyInt_FromLong(12); if (unlikely(!__pyx_int_12)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_13 = PyInt_FromLong(13); if (unlikely(!__pyx_int_13)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_14 = PyInt_FromLong(14); if (unlikely(!__pyx_int_14)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_15 = PyInt_FromLong(15); if (unlikely(!__pyx_int_15)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_16 = PyInt_FromLong(16); if (unlikely(!__pyx_int_16)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_17 = PyInt_FromLong(17); if (unlikely(!__pyx_int_17)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_18 = PyInt_FromLong(18); if (unlikely(!__pyx_int_18)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_19 = PyInt_FromLong(19); if (unlikely(!__pyx_int_19)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_20 = PyInt_FromLong(20); if (unlikely(!__pyx_int_20)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_21 = PyInt_FromLong(21); if (unlikely(!__pyx_int_21)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_22 = PyInt_FromLong(22); if (unlikely(!__pyx_int_22)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_23 = PyInt_FromLong(23); if (unlikely(!__pyx_int_23)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_24 = PyInt_FromLong(24); if (unlikely(!__pyx_int_24)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_25 = PyInt_FromLong(25); if (unlikely(!__pyx_int_25)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_26 = PyInt_FromLong(26); if (unlikely(!__pyx_int_26)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_27 = PyInt_FromLong(27); if (unlikely(!__pyx_int_27)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_28 = PyInt_FromLong(28); if (unlikely(!__pyx_int_28)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_29 = PyInt_FromLong(29); if (unlikely(!__pyx_int_29)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_30 = PyInt_FromLong(30); if (unlikely(!__pyx_int_30)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_31 = PyInt_FromLong(31); if (unlikely(!__pyx_int_31)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_32 = PyInt_FromLong(32); if (unlikely(!__pyx_int_32)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_33 = PyInt_FromLong(33); if (unlikely(!__pyx_int_33)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_34 = PyInt_FromLong(34); if (unlikely(!__pyx_int_34)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_50 = PyInt_FromLong(50); if (unlikely(!__pyx_int_50)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_51 = PyInt_FromLong(51); if (unlikely(!__pyx_int_51)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_53 = PyInt_FromLong(53); if (unlikely(!__pyx_int_53)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_int_54 = PyInt_FromLong(54); if (unlikely(!__pyx_int_54)) __PYX_ERR(0, 1, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

#if PY_MAJOR_VERSION < 3
PyMODINIT_FUNC initloaders(void); /*proto*/
PyMODINIT_FUNC initloaders(void)
#else
PyMODINIT_FUNC PyInit_loaders(void); /*proto*/
PyMODINIT_FUNC PyInit_loaders(void)
#endif
{
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  __Pyx_RefNannyDeclarations
  #if CYTHON_REFNANNY
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
  if (!__Pyx_RefNanny) {
      PyErr_Clear();
      __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
      if (!__Pyx_RefNanny)
          Py_FatalError("failed to import 'refnanny' module");
  }
  #endif
  __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_loaders(void)", 0);
  if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pyx_CyFunction_USED
  if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_FusedFunction_USED
  if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Coroutine_USED
  if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Generator_USED
  if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_StopAsyncIteration_USED
  if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  /*--- Library function declarations ---*/
  /*--- Threads initialization code ---*/
  #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  #ifdef WITH_THREAD /* Python build with threading support? */
  PyEval_InitThreads();
  #endif
  #endif
  /*--- Module creation code ---*/
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4("loaders", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_d);
  __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_COMPILING_IN_PYPY
  Py_INCREF(__pyx_b);
  #endif
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
  if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  if (__pyx_module_is_main_pyspades__networking__loaders) {
    if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  #if PY_MAJOR_VERSION >= 3
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "pyspades.networking.loaders")) {
      if (unlikely(PyDict_SetItemString(modules, "pyspades.networking.loaders", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #endif
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global init code ---*/
  /*--- Variable export code ---*/
  /*--- Function export code ---*/
  /*--- Type init code ---*/
  __pyx_ptype_8pyspades_10networking_6loader_Loader = __Pyx_ImportType("pyspades.networking.loader", "Loader", sizeof(struct __pyx_obj_8pyspades_10networking_6loader_Loader), 1); if (unlikely(!__pyx_ptype_8pyspades_10networking_6loader_Loader)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_vtabptr_8pyspades_10networking_6loader_Loader = (struct __pyx_vtabstruct_8pyspades_10networking_6loader_Loader*)__Pyx_GetVtable(__pyx_ptype_8pyspades_10networking_6loader_Loader->tp_dict); if (unlikely(!__pyx_vtabptr_8pyspades_10networking_6loader_Loader)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_vtabptr_8pyspades_10networking_7loaders_PositionData = &__pyx_vtable_8pyspades_10networking_7loaders_PositionData;
  __pyx_vtable_8pyspades_10networking_7loaders_PositionData.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_PositionData.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_12PositionData_read;
  __pyx_vtable_8pyspades_10networking_7loaders_PositionData.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_12PositionData_write;
  __pyx_type_8pyspades_10networking_7loaders_PositionData.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_PositionData) < 0) __PYX_ERR(0, 56, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_PositionData.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_PositionData.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_PositionData) < 0) __PYX_ERR(0, 56, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "PositionData", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_PositionData) < 0) __PYX_ERR(0, 56, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_PositionData = &__pyx_type_8pyspades_10networking_7loaders_PositionData;
  __pyx_vtabptr_8pyspades_10networking_7loaders_OrientationData = &__pyx_vtable_8pyspades_10networking_7loaders_OrientationData;
  __pyx_vtable_8pyspades_10networking_7loaders_OrientationData.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_OrientationData.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_15OrientationData_read;
  __pyx_vtable_8pyspades_10networking_7loaders_OrientationData.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_15OrientationData_write;
  __pyx_type_8pyspades_10networking_7loaders_OrientationData.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_OrientationData) < 0) __PYX_ERR(0, 76, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_OrientationData.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_OrientationData.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_OrientationData) < 0) __PYX_ERR(0, 76, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "OrientationData", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_OrientationData) < 0) __PYX_ERR(0, 76, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_OrientationData = &__pyx_type_8pyspades_10networking_7loaders_OrientationData;
  __pyx_vtabptr_8pyspades_10networking_7loaders_WorldUpdate = &__pyx_vtable_8pyspades_10networking_7loaders_WorldUpdate;
  __pyx_vtable_8pyspades_10networking_7loaders_WorldUpdate.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_WorldUpdate.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_11WorldUpdate_read;
  __pyx_vtable_8pyspades_10networking_7loaders_WorldUpdate.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_11WorldUpdate_write;
  __pyx_type_8pyspades_10networking_7loaders_WorldUpdate.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_WorldUpdate) < 0) __PYX_ERR(0, 100, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_WorldUpdate.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_WorldUpdate.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_WorldUpdate) < 0) __PYX_ERR(0, 100, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "WorldUpdate", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_WorldUpdate) < 0) __PYX_ERR(0, 100, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_WorldUpdate = &__pyx_type_8pyspades_10networking_7loaders_WorldUpdate;
  __pyx_vtabptr_8pyspades_10networking_7loaders_InputData = &__pyx_vtable_8pyspades_10networking_7loaders_InputData;
  __pyx_vtable_8pyspades_10networking_7loaders_InputData.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_InputData.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_9InputData_read;
  __pyx_vtable_8pyspades_10networking_7loaders_InputData.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_9InputData_write;
  __pyx_type_8pyspades_10networking_7loaders_InputData.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_InputData) < 0) __PYX_ERR(0, 130, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_InputData.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_InputData.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_InputData) < 0) __PYX_ERR(0, 130, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "InputData", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_InputData) < 0) __PYX_ERR(0, 130, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_InputData = &__pyx_type_8pyspades_10networking_7loaders_InputData;
  __pyx_vtabptr_8pyspades_10networking_7loaders_WeaponInput = &__pyx_vtable_8pyspades_10networking_7loaders_WeaponInput;
  __pyx_vtable_8pyspades_10networking_7loaders_WeaponInput.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_WeaponInput.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_11WeaponInput_read;
  __pyx_vtable_8pyspades_10networking_7loaders_WeaponInput.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_11WeaponInput_write;
  __pyx_type_8pyspades_10networking_7loaders_WeaponInput.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_WeaponInput) < 0) __PYX_ERR(0, 157, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_WeaponInput.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_WeaponInput.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_WeaponInput) < 0) __PYX_ERR(0, 157, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "WeaponInput", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_WeaponInput) < 0) __PYX_ERR(0, 157, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_WeaponInput = &__pyx_type_8pyspades_10networking_7loaders_WeaponInput;
  __pyx_vtabptr_8pyspades_10networking_7loaders_HitPacket = &__pyx_vtable_8pyspades_10networking_7loaders_HitPacket;
  __pyx_vtable_8pyspades_10networking_7loaders_HitPacket.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_HitPacket.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_9HitPacket_read;
  __pyx_vtable_8pyspades_10networking_7loaders_HitPacket.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_9HitPacket_write;
  __pyx_type_8pyspades_10networking_7loaders_HitPacket.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_HitPacket) < 0) __PYX_ERR(0, 177, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_HitPacket.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_HitPacket.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_HitPacket) < 0) __PYX_ERR(0, 177, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "HitPacket", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_HitPacket) < 0) __PYX_ERR(0, 177, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_HitPacket = &__pyx_type_8pyspades_10networking_7loaders_HitPacket;
  __pyx_vtabptr_8pyspades_10networking_7loaders_SetHP = &__pyx_vtable_8pyspades_10networking_7loaders_SetHP;
  __pyx_vtable_8pyspades_10networking_7loaders_SetHP.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_SetHP.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_5SetHP_read;
  __pyx_vtable_8pyspades_10networking_7loaders_SetHP.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_5SetHP_write;
  __pyx_type_8pyspades_10networking_7loaders_SetHP.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_SetHP) < 0) __PYX_ERR(0, 192, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_SetHP.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_SetHP.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_SetHP) < 0) __PYX_ERR(0, 192, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "SetHP", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_SetHP) < 0) __PYX_ERR(0, 192, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_SetHP = &__pyx_type_8pyspades_10networking_7loaders_SetHP;
  __pyx_vtabptr_8pyspades_10networking_7loaders_GrenadePacket = &__pyx_vtable_8pyspades_10networking_7loaders_GrenadePacket;
  __pyx_vtable_8pyspades_10networking_7loaders_GrenadePacket.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_GrenadePacket.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_13GrenadePacket_read;
  __pyx_vtable_8pyspades_10networking_7loaders_GrenadePacket.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_13GrenadePacket_write;
  __pyx_type_8pyspades_10networking_7loaders_GrenadePacket.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_GrenadePacket) < 0) __PYX_ERR(0, 215, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_GrenadePacket.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_GrenadePacket.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_GrenadePacket) < 0) __PYX_ERR(0, 215, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "GrenadePacket", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_GrenadePacket) < 0) __PYX_ERR(0, 215, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_GrenadePacket = &__pyx_type_8pyspades_10networking_7loaders_GrenadePacket;
  __pyx_vtabptr_8pyspades_10networking_7loaders_SetTool = &__pyx_vtable_8pyspades_10networking_7loaders_SetTool;
  __pyx_vtable_8pyspades_10networking_7loaders_SetTool.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_SetTool.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_7SetTool_read;
  __pyx_vtable_8pyspades_10networking_7loaders_SetTool.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_7SetTool_write;
  __pyx_type_8pyspades_10networking_7loaders_SetTool.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_SetTool) < 0) __PYX_ERR(0, 240, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_SetTool.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_SetTool.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_SetTool) < 0) __PYX_ERR(0, 240, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "SetTool", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_SetTool) < 0) __PYX_ERR(0, 240, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_SetTool = &__pyx_type_8pyspades_10networking_7loaders_SetTool;
  __pyx_vtabptr_8pyspades_10networking_7loaders_SetColor = &__pyx_vtable_8pyspades_10networking_7loaders_SetColor;
  __pyx_vtable_8pyspades_10networking_7loaders_SetColor.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_SetColor.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_8SetColor_read;
  __pyx_vtable_8pyspades_10networking_7loaders_SetColor.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_8SetColor_write;
  __pyx_type_8pyspades_10networking_7loaders_SetColor.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_SetColor) < 0) __PYX_ERR(0, 255, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_SetColor.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_SetColor.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_SetColor) < 0) __PYX_ERR(0, 255, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "SetColor", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_SetColor) < 0) __PYX_ERR(0, 255, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_SetColor = &__pyx_type_8pyspades_10networking_7loaders_SetColor;
  __pyx_vtabptr_8pyspades_10networking_7loaders_ExistingPlayer = &__pyx_vtable_8pyspades_10networking_7loaders_ExistingPlayer;
  __pyx_vtable_8pyspades_10networking_7loaders_ExistingPlayer.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_ExistingPlayer.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_14ExistingPlayer_read;
  __pyx_vtable_8pyspades_10networking_7loaders_ExistingPlayer.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_14ExistingPlayer_write;
  __pyx_type_8pyspades_10networking_7loaders_ExistingPlayer.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_ExistingPlayer) < 0) __PYX_ERR(0, 270, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_ExistingPlayer.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_ExistingPlayer.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_ExistingPlayer) < 0) __PYX_ERR(0, 270, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "ExistingPlayer", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_ExistingPlayer) < 0) __PYX_ERR(0, 270, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_ExistingPlayer = &__pyx_type_8pyspades_10networking_7loaders_ExistingPlayer;
  __pyx_vtabptr_8pyspades_10networking_7loaders_ShortPlayerData = &__pyx_vtable_8pyspades_10networking_7loaders_ShortPlayerData;
  __pyx_vtable_8pyspades_10networking_7loaders_ShortPlayerData.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_ShortPlayerData.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_15ShortPlayerData_read;
  __pyx_vtable_8pyspades_10networking_7loaders_ShortPlayerData.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_15ShortPlayerData_write;
  __pyx_type_8pyspades_10networking_7loaders_ShortPlayerData.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_ShortPlayerData) < 0) __PYX_ERR(0, 297, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_ShortPlayerData.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_ShortPlayerData.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_ShortPlayerData) < 0) __PYX_ERR(0, 297, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "ShortPlayerData", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_ShortPlayerData) < 0) __PYX_ERR(0, 297, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_ShortPlayerData = &__pyx_type_8pyspades_10networking_7loaders_ShortPlayerData;
  __pyx_vtabptr_8pyspades_10networking_7loaders_MoveObject = &__pyx_vtable_8pyspades_10networking_7loaders_MoveObject;
  __pyx_vtable_8pyspades_10networking_7loaders_MoveObject.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_MoveObject.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_10MoveObject_read;
  __pyx_vtable_8pyspades_10networking_7loaders_MoveObject.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_10MoveObject_write;
  __pyx_type_8pyspades_10networking_7loaders_MoveObject.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_MoveObject) < 0) __PYX_ERR(0, 314, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_MoveObject.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_MoveObject.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_MoveObject) < 0) __PYX_ERR(0, 314, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "MoveObject", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_MoveObject) < 0) __PYX_ERR(0, 314, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_MoveObject = &__pyx_type_8pyspades_10networking_7loaders_MoveObject;
  __pyx_vtabptr_8pyspades_10networking_7loaders_CreatePlayer = &__pyx_vtable_8pyspades_10networking_7loaders_CreatePlayer;
  __pyx_vtable_8pyspades_10networking_7loaders_CreatePlayer.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_CreatePlayer.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_12CreatePlayer_read;
  __pyx_vtable_8pyspades_10networking_7loaders_CreatePlayer.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_12CreatePlayer_write;
  __pyx_type_8pyspades_10networking_7loaders_CreatePlayer.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_CreatePlayer) < 0) __PYX_ERR(0, 336, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_CreatePlayer.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_CreatePlayer.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_CreatePlayer) < 0) __PYX_ERR(0, 336, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "CreatePlayer", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_CreatePlayer) < 0) __PYX_ERR(0, 336, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_CreatePlayer = &__pyx_type_8pyspades_10networking_7loaders_CreatePlayer;
  __pyx_vtabptr_8pyspades_10networking_7loaders_BlockAction = &__pyx_vtable_8pyspades_10networking_7loaders_BlockAction;
  __pyx_vtable_8pyspades_10networking_7loaders_BlockAction.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_BlockAction.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_11BlockAction_read;
  __pyx_vtable_8pyspades_10networking_7loaders_BlockAction.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_11BlockAction_write;
  __pyx_type_8pyspades_10networking_7loaders_BlockAction.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_BlockAction) < 0) __PYX_ERR(0, 360, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_BlockAction.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_BlockAction.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_BlockAction) < 0) __PYX_ERR(0, 360, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "BlockAction", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_BlockAction) < 0) __PYX_ERR(0, 360, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_BlockAction = &__pyx_type_8pyspades_10networking_7loaders_BlockAction;
  __pyx_vtabptr_8pyspades_10networking_7loaders_BlockLine = &__pyx_vtable_8pyspades_10networking_7loaders_BlockLine;
  __pyx_vtable_8pyspades_10networking_7loaders_BlockLine.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_BlockLine.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_9BlockLine_read;
  __pyx_vtable_8pyspades_10networking_7loaders_BlockLine.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_9BlockLine_write;
  __pyx_type_8pyspades_10networking_7loaders_BlockLine.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_BlockLine) < 0) __PYX_ERR(0, 381, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_BlockLine.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_BlockLine.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_BlockLine) < 0) __PYX_ERR(0, 381, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "BlockLine", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_BlockLine) < 0) __PYX_ERR(0, 381, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_BlockLine = &__pyx_type_8pyspades_10networking_7loaders_BlockLine;
  __pyx_vtabptr_8pyspades_10networking_7loaders_CTFState = &__pyx_vtable_8pyspades_10networking_7loaders_CTFState;
  __pyx_vtable_8pyspades_10networking_7loaders_CTFState.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_CTFState.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_8CTFState_read;
  __pyx_vtable_8pyspades_10networking_7loaders_CTFState.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_8CTFState_write;
  __pyx_type_8pyspades_10networking_7loaders_CTFState.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_CTFState) < 0) __PYX_ERR(0, 408, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_CTFState.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_CTFState.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_CTFState) < 0) __PYX_ERR(0, 408, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "CTFState", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_CTFState) < 0) __PYX_ERR(0, 408, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_CTFState = &__pyx_type_8pyspades_10networking_7loaders_CTFState;
  __pyx_vtabptr_8pyspades_10networking_7loaders_Territory = &__pyx_vtable_8pyspades_10networking_7loaders_Territory;
  __pyx_vtable_8pyspades_10networking_7loaders_Territory.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_Territory.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_9Territory_read;
  __pyx_vtable_8pyspades_10networking_7loaders_Territory.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_9Territory_write;
  __pyx_type_8pyspades_10networking_7loaders_Territory.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_Territory) < 0) __PYX_ERR(0, 482, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_Territory.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_Territory.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_Territory) < 0) __PYX_ERR(0, 482, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "Territory", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_Territory) < 0) __PYX_ERR(0, 482, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_Territory = &__pyx_type_8pyspades_10networking_7loaders_Territory;
  __pyx_vtabptr_8pyspades_10networking_7loaders_ObjectTerritory = &__pyx_vtable_8pyspades_10networking_7loaders_ObjectTerritory;
  __pyx_vtable_8pyspades_10networking_7loaders_ObjectTerritory.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_ObjectTerritory.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_15ObjectTerritory_write;
  __pyx_type_8pyspades_10networking_7loaders_ObjectTerritory.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_ObjectTerritory) < 0) __PYX_ERR(0, 495, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_ObjectTerritory.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_ObjectTerritory.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_ObjectTerritory) < 0) __PYX_ERR(0, 495, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "ObjectTerritory", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_ObjectTerritory) < 0) __PYX_ERR(0, 495, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_ObjectTerritory = &__pyx_type_8pyspades_10networking_7loaders_ObjectTerritory;
  __pyx_vtabptr_8pyspades_10networking_7loaders_TCState = &__pyx_vtable_8pyspades_10networking_7loaders_TCState;
  __pyx_vtable_8pyspades_10networking_7loaders_TCState.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_TCState.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_7TCState_read;
  __pyx_vtable_8pyspades_10networking_7loaders_TCState.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_7TCState_write;
  __pyx_type_8pyspades_10networking_7loaders_TCState.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_TCState) < 0) __PYX_ERR(0, 509, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_TCState.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_TCState.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_TCState) < 0) __PYX_ERR(0, 509, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "TCState", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_TCState) < 0) __PYX_ERR(0, 509, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_TCState = &__pyx_type_8pyspades_10networking_7loaders_TCState;
  __pyx_vtabptr_8pyspades_10networking_7loaders_StateData = &__pyx_vtable_8pyspades_10networking_7loaders_StateData;
  __pyx_vtable_8pyspades_10networking_7loaders_StateData.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_StateData.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_9StateData_read;
  __pyx_vtable_8pyspades_10networking_7loaders_StateData.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_9StateData_write;
  __pyx_type_8pyspades_10networking_7loaders_StateData.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_StateData) < 0) __PYX_ERR(0, 552, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_StateData.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_StateData.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_StateData) < 0) __PYX_ERR(0, 552, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "StateData", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_StateData) < 0) __PYX_ERR(0, 552, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_StateData = &__pyx_type_8pyspades_10networking_7loaders_StateData;
  __pyx_vtabptr_8pyspades_10networking_7loaders_KillAction = &__pyx_vtable_8pyspades_10networking_7loaders_KillAction;
  __pyx_vtable_8pyspades_10networking_7loaders_KillAction.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_KillAction.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_10KillAction_read;
  __pyx_vtable_8pyspades_10networking_7loaders_KillAction.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_10KillAction_write;
  __pyx_type_8pyspades_10networking_7loaders_KillAction.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_KillAction) < 0) __PYX_ERR(0, 584, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_KillAction.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_KillAction.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_KillAction) < 0) __PYX_ERR(0, 584, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "KillAction", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_KillAction) < 0) __PYX_ERR(0, 584, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_KillAction = &__pyx_type_8pyspades_10networking_7loaders_KillAction;
  __pyx_vtabptr_8pyspades_10networking_7loaders_ChatMessage = &__pyx_vtable_8pyspades_10networking_7loaders_ChatMessage;
  __pyx_vtable_8pyspades_10networking_7loaders_ChatMessage.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_ChatMessage.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_11ChatMessage_read;
  __pyx_vtable_8pyspades_10networking_7loaders_ChatMessage.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_11ChatMessage_write;
  __pyx_type_8pyspades_10networking_7loaders_ChatMessage.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_ChatMessage) < 0) __PYX_ERR(0, 603, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_ChatMessage.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_ChatMessage.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_ChatMessage) < 0) __PYX_ERR(0, 603, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "ChatMessage", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_ChatMessage) < 0) __PYX_ERR(0, 603, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_ChatMessage = &__pyx_type_8pyspades_10networking_7loaders_ChatMessage;
  __pyx_vtabptr_8pyspades_10networking_7loaders_MapStart = &__pyx_vtable_8pyspades_10networking_7loaders_MapStart;
  __pyx_vtable_8pyspades_10networking_7loaders_MapStart.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_MapStart.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_8MapStart_read;
  __pyx_vtable_8pyspades_10networking_7loaders_MapStart.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_8MapStart_write;
  __pyx_type_8pyspades_10networking_7loaders_MapStart.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_MapStart) < 0) __PYX_ERR(0, 621, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_MapStart.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_MapStart.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_MapStart) < 0) __PYX_ERR(0, 621, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "MapStart", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_MapStart) < 0) __PYX_ERR(0, 621, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_MapStart = &__pyx_type_8pyspades_10networking_7loaders_MapStart;
  __pyx_vtabptr_8pyspades_10networking_7loaders_MapChunk = &__pyx_vtable_8pyspades_10networking_7loaders_MapChunk;
  __pyx_vtable_8pyspades_10networking_7loaders_MapChunk.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_MapChunk.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_8MapChunk_read;
  __pyx_vtable_8pyspades_10networking_7loaders_MapChunk.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_8MapChunk_write;
  __pyx_type_8pyspades_10networking_7loaders_MapChunk.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_MapChunk) < 0) __PYX_ERR(0, 634, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_MapChunk.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_MapChunk.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_MapChunk) < 0) __PYX_ERR(0, 634, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "MapChunk", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_MapChunk) < 0) __PYX_ERR(0, 634, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_MapChunk = &__pyx_type_8pyspades_10networking_7loaders_MapChunk;
  __pyx_vtabptr_8pyspades_10networking_7loaders_PlayerLeft = &__pyx_vtable_8pyspades_10networking_7loaders_PlayerLeft;
  __pyx_vtable_8pyspades_10networking_7loaders_PlayerLeft.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_PlayerLeft.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_10PlayerLeft_read;
  __pyx_vtable_8pyspades_10networking_7loaders_PlayerLeft.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_10PlayerLeft_write;
  __pyx_type_8pyspades_10networking_7loaders_PlayerLeft.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_PlayerLeft) < 0) __PYX_ERR(0, 647, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_PlayerLeft.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_PlayerLeft.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_PlayerLeft) < 0) __PYX_ERR(0, 647, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "PlayerLeft", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_PlayerLeft) < 0) __PYX_ERR(0, 647, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_PlayerLeft = &__pyx_type_8pyspades_10networking_7loaders_PlayerLeft;
  __pyx_vtabptr_8pyspades_10networking_7loaders_TerritoryCapture = &__pyx_vtable_8pyspades_10networking_7loaders_TerritoryCapture;
  __pyx_vtable_8pyspades_10networking_7loaders_TerritoryCapture.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_TerritoryCapture.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_16TerritoryCapture_read;
  __pyx_vtable_8pyspades_10networking_7loaders_TerritoryCapture.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_16TerritoryCapture_write;
  __pyx_type_8pyspades_10networking_7loaders_TerritoryCapture.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_TerritoryCapture) < 0) __PYX_ERR(0, 660, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_TerritoryCapture.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_TerritoryCapture.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_TerritoryCapture) < 0) __PYX_ERR(0, 660, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "TerritoryCapture", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_TerritoryCapture) < 0) __PYX_ERR(0, 660, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_TerritoryCapture = &__pyx_type_8pyspades_10networking_7loaders_TerritoryCapture;
  __pyx_vtabptr_8pyspades_10networking_7loaders_ProgressBar = &__pyx_vtable_8pyspades_10networking_7loaders_ProgressBar;
  __pyx_vtable_8pyspades_10networking_7loaders_ProgressBar.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_ProgressBar.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_11ProgressBar_read;
  __pyx_vtable_8pyspades_10networking_7loaders_ProgressBar.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_11ProgressBar_write;
  __pyx_type_8pyspades_10networking_7loaders_ProgressBar.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_ProgressBar) < 0) __PYX_ERR(0, 677, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_ProgressBar.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_ProgressBar.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_ProgressBar) < 0) __PYX_ERR(0, 677, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "ProgressBar", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_ProgressBar) < 0) __PYX_ERR(0, 677, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_ProgressBar = &__pyx_type_8pyspades_10networking_7loaders_ProgressBar;
  __pyx_vtabptr_8pyspades_10networking_7loaders_IntelCapture = &__pyx_vtable_8pyspades_10networking_7loaders_IntelCapture;
  __pyx_vtable_8pyspades_10networking_7loaders_IntelCapture.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_IntelCapture.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_12IntelCapture_read;
  __pyx_vtable_8pyspades_10networking_7loaders_IntelCapture.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_12IntelCapture_write;
  __pyx_type_8pyspades_10networking_7loaders_IntelCapture.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_IntelCapture) < 0) __PYX_ERR(0, 698, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_IntelCapture.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_IntelCapture.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_IntelCapture) < 0) __PYX_ERR(0, 698, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "IntelCapture", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_IntelCapture) < 0) __PYX_ERR(0, 698, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_IntelCapture = &__pyx_type_8pyspades_10networking_7loaders_IntelCapture;
  __pyx_vtabptr_8pyspades_10networking_7loaders_IntelPickup = &__pyx_vtable_8pyspades_10networking_7loaders_IntelPickup;
  __pyx_vtable_8pyspades_10networking_7loaders_IntelPickup.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_IntelPickup.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_11IntelPickup_read;
  __pyx_vtable_8pyspades_10networking_7loaders_IntelPickup.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_11IntelPickup_write;
  __pyx_type_8pyspades_10networking_7loaders_IntelPickup.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_IntelPickup) < 0) __PYX_ERR(0, 714, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_IntelPickup.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_IntelPickup.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_IntelPickup) < 0) __PYX_ERR(0, 714, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "IntelPickup", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_IntelPickup) < 0) __PYX_ERR(0, 714, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_IntelPickup = &__pyx_type_8pyspades_10networking_7loaders_IntelPickup;
  __pyx_vtabptr_8pyspades_10networking_7loaders_IntelDrop = &__pyx_vtable_8pyspades_10networking_7loaders_IntelDrop;
  __pyx_vtable_8pyspades_10networking_7loaders_IntelDrop.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_IntelDrop.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_9IntelDrop_read;
  __pyx_vtable_8pyspades_10networking_7loaders_IntelDrop.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_9IntelDrop_write;
  __pyx_type_8pyspades_10networking_7loaders_IntelDrop.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_IntelDrop) < 0) __PYX_ERR(0, 727, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_IntelDrop.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_IntelDrop.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_IntelDrop) < 0) __PYX_ERR(0, 727, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "IntelDrop", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_IntelDrop) < 0) __PYX_ERR(0, 727, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_IntelDrop = &__pyx_type_8pyspades_10networking_7loaders_IntelDrop;
  __pyx_vtabptr_8pyspades_10networking_7loaders_Restock = &__pyx_vtable_8pyspades_10networking_7loaders_Restock;
  __pyx_vtable_8pyspades_10networking_7loaders_Restock.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_Restock.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_7Restock_read;
  __pyx_vtable_8pyspades_10networking_7loaders_Restock.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_7Restock_write;
  __pyx_type_8pyspades_10networking_7loaders_Restock.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_Restock) < 0) __PYX_ERR(0, 743, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_Restock.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_Restock.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_Restock) < 0) __PYX_ERR(0, 743, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "Restock", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_Restock) < 0) __PYX_ERR(0, 743, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_Restock = &__pyx_type_8pyspades_10networking_7loaders_Restock;
  __pyx_vtabptr_8pyspades_10networking_7loaders_FogColor = &__pyx_vtable_8pyspades_10networking_7loaders_FogColor;
  __pyx_vtable_8pyspades_10networking_7loaders_FogColor.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_FogColor.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_8FogColor_read;
  __pyx_vtable_8pyspades_10networking_7loaders_FogColor.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_8FogColor_write;
  __pyx_type_8pyspades_10networking_7loaders_FogColor.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_FogColor) < 0) __PYX_ERR(0, 756, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_FogColor.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_FogColor.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_FogColor) < 0) __PYX_ERR(0, 756, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "FogColor", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_FogColor) < 0) __PYX_ERR(0, 756, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_FogColor = &__pyx_type_8pyspades_10networking_7loaders_FogColor;
  __pyx_vtabptr_8pyspades_10networking_7loaders_WeaponReload = &__pyx_vtable_8pyspades_10networking_7loaders_WeaponReload;
  __pyx_vtable_8pyspades_10networking_7loaders_WeaponReload.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_WeaponReload.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_12WeaponReload_read;
  __pyx_vtable_8pyspades_10networking_7loaders_WeaponReload.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_12WeaponReload_write;
  __pyx_type_8pyspades_10networking_7loaders_WeaponReload.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_WeaponReload) < 0) __PYX_ERR(0, 769, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_WeaponReload.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_WeaponReload.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_WeaponReload) < 0) __PYX_ERR(0, 769, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "WeaponReload", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_WeaponReload) < 0) __PYX_ERR(0, 769, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_WeaponReload = &__pyx_type_8pyspades_10networking_7loaders_WeaponReload;
  __pyx_vtabptr_8pyspades_10networking_7loaders_ChangeTeam = &__pyx_vtable_8pyspades_10networking_7loaders_ChangeTeam;
  __pyx_vtable_8pyspades_10networking_7loaders_ChangeTeam.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_ChangeTeam.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_10ChangeTeam_read;
  __pyx_vtable_8pyspades_10networking_7loaders_ChangeTeam.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_10ChangeTeam_write;
  __pyx_type_8pyspades_10networking_7loaders_ChangeTeam.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_ChangeTeam) < 0) __PYX_ERR(0, 786, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_ChangeTeam.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_ChangeTeam.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_ChangeTeam) < 0) __PYX_ERR(0, 786, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "ChangeTeam", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_ChangeTeam) < 0) __PYX_ERR(0, 786, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_ChangeTeam = &__pyx_type_8pyspades_10networking_7loaders_ChangeTeam;
  __pyx_vtabptr_8pyspades_10networking_7loaders_ChangeWeapon = &__pyx_vtable_8pyspades_10networking_7loaders_ChangeWeapon;
  __pyx_vtable_8pyspades_10networking_7loaders_ChangeWeapon.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_ChangeWeapon.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_12ChangeWeapon_read;
  __pyx_vtable_8pyspades_10networking_7loaders_ChangeWeapon.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_12ChangeWeapon_write;
  __pyx_type_8pyspades_10networking_7loaders_ChangeWeapon.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_ChangeWeapon) < 0) __PYX_ERR(0, 801, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_ChangeWeapon.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_ChangeWeapon.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_ChangeWeapon) < 0) __PYX_ERR(0, 801, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "ChangeWeapon", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_ChangeWeapon) < 0) __PYX_ERR(0, 801, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_ChangeWeapon = &__pyx_type_8pyspades_10networking_7loaders_ChangeWeapon;
  __pyx_vtabptr_8pyspades_10networking_7loaders_HandShakeInit = &__pyx_vtable_8pyspades_10networking_7loaders_HandShakeInit;
  __pyx_vtable_8pyspades_10networking_7loaders_HandShakeInit.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_HandShakeInit.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_13HandShakeInit_read;
  __pyx_vtable_8pyspades_10networking_7loaders_HandShakeInit.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_13HandShakeInit_write;
  __pyx_type_8pyspades_10networking_7loaders_HandShakeInit.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_HandShakeInit) < 0) __PYX_ERR(0, 816, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_HandShakeInit.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_HandShakeInit.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_HandShakeInit) < 0) __PYX_ERR(0, 816, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "HandShakeInit", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_HandShakeInit) < 0) __PYX_ERR(0, 816, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_HandShakeInit = &__pyx_type_8pyspades_10networking_7loaders_HandShakeInit;
  __pyx_vtabptr_8pyspades_10networking_7loaders_HandShakeReturn = &__pyx_vtable_8pyspades_10networking_7loaders_HandShakeReturn;
  __pyx_vtable_8pyspades_10networking_7loaders_HandShakeReturn.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_HandShakeReturn.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_15HandShakeReturn_read;
  __pyx_vtable_8pyspades_10networking_7loaders_HandShakeReturn.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_15HandShakeReturn_write;
  __pyx_type_8pyspades_10networking_7loaders_HandShakeReturn.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_HandShakeReturn) < 0) __PYX_ERR(0, 826, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_HandShakeReturn.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_HandShakeReturn.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_HandShakeReturn) < 0) __PYX_ERR(0, 826, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "HandShakeReturn", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_HandShakeReturn) < 0) __PYX_ERR(0, 826, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_HandShakeReturn = &__pyx_type_8pyspades_10networking_7loaders_HandShakeReturn;
  __pyx_vtabptr_8pyspades_10networking_7loaders_VersionRequest = &__pyx_vtable_8pyspades_10networking_7loaders_VersionRequest;
  __pyx_vtable_8pyspades_10networking_7loaders_VersionRequest.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_VersionRequest.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_14VersionRequest_read;
  __pyx_vtable_8pyspades_10networking_7loaders_VersionRequest.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_14VersionRequest_write;
  __pyx_type_8pyspades_10networking_7loaders_VersionRequest.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_VersionRequest) < 0) __PYX_ERR(0, 838, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_VersionRequest.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_VersionRequest.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_VersionRequest) < 0) __PYX_ERR(0, 838, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "VersionRequest", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_VersionRequest) < 0) __PYX_ERR(0, 838, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_VersionRequest = &__pyx_type_8pyspades_10networking_7loaders_VersionRequest;
  __pyx_vtabptr_8pyspades_10networking_7loaders_VersionResponse = &__pyx_vtable_8pyspades_10networking_7loaders_VersionResponse;
  __pyx_vtable_8pyspades_10networking_7loaders_VersionResponse.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_VersionResponse.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_15VersionResponse_read;
  __pyx_vtable_8pyspades_10networking_7loaders_VersionResponse.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_15VersionResponse_write;
  __pyx_type_8pyspades_10networking_7loaders_VersionResponse.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_VersionResponse) < 0) __PYX_ERR(0, 847, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_VersionResponse.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_VersionResponse.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_VersionResponse) < 0) __PYX_ERR(0, 847, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "VersionResponse", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_VersionResponse) < 0) __PYX_ERR(0, 847, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_VersionResponse = &__pyx_type_8pyspades_10networking_7loaders_VersionResponse;
  __pyx_vtabptr_8pyspades_10networking_7loaders_ServerInfo = &__pyx_vtable_8pyspades_10networking_7loaders_ServerInfo;
  __pyx_vtable_8pyspades_10networking_7loaders_ServerInfo.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_ServerInfo.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_10ServerInfo_read;
  __pyx_vtable_8pyspades_10networking_7loaders_ServerInfo.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_10ServerInfo_write;
  __pyx_type_8pyspades_10networking_7loaders_ServerInfo.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_ServerInfo) < 0) __PYX_ERR(0, 870, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_ServerInfo.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_ServerInfo.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_ServerInfo) < 0) __PYX_ERR(0, 870, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "ServerInfo", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_ServerInfo) < 0) __PYX_ERR(0, 870, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_ServerInfo = &__pyx_type_8pyspades_10networking_7loaders_ServerInfo;
  __pyx_vtabptr_8pyspades_10networking_7loaders_ApiRequest = &__pyx_vtable_8pyspades_10networking_7loaders_ApiRequest;
  __pyx_vtable_8pyspades_10networking_7loaders_ApiRequest.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_ApiRequest.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_10ApiRequest_read;
  __pyx_vtable_8pyspades_10networking_7loaders_ApiRequest.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_10ApiRequest_write;
  __pyx_type_8pyspades_10networking_7loaders_ApiRequest.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_ApiRequest) < 0) __PYX_ERR(0, 891, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_ApiRequest.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_ApiRequest.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_ApiRequest) < 0) __PYX_ERR(0, 891, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "ApiRequest", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_ApiRequest) < 0) __PYX_ERR(0, 891, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_ApiRequest = &__pyx_type_8pyspades_10networking_7loaders_ApiRequest;
  __pyx_vtabptr_8pyspades_10networking_7loaders_AuthenticationRequest = &__pyx_vtable_8pyspades_10networking_7loaders_AuthenticationRequest;
  __pyx_vtable_8pyspades_10networking_7loaders_AuthenticationRequest.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_AuthenticationRequest.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_21AuthenticationRequest_read;
  __pyx_vtable_8pyspades_10networking_7loaders_AuthenticationRequest.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_21AuthenticationRequest_write;
  __pyx_type_8pyspades_10networking_7loaders_AuthenticationRequest.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_AuthenticationRequest) < 0) __PYX_ERR(0, 907, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_AuthenticationRequest.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_AuthenticationRequest.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_AuthenticationRequest) < 0) __PYX_ERR(0, 907, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "AuthenticationRequest", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_AuthenticationRequest) < 0) __PYX_ERR(0, 907, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_AuthenticationRequest = &__pyx_type_8pyspades_10networking_7loaders_AuthenticationRequest;
  __pyx_vtabptr_8pyspades_10networking_7loaders_SetClientSetting = &__pyx_vtable_8pyspades_10networking_7loaders_SetClientSetting;
  __pyx_vtable_8pyspades_10networking_7loaders_SetClientSetting.__pyx_base = *__pyx_vtabptr_8pyspades_10networking_6loader_Loader;
  __pyx_vtable_8pyspades_10networking_7loaders_SetClientSetting.__pyx_base.read = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_16SetClientSetting_read;
  __pyx_vtable_8pyspades_10networking_7loaders_SetClientSetting.__pyx_base.write = (PyObject *(*)(struct __pyx_obj_8pyspades_10networking_6loader_Loader *, struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter *, int __pyx_skip_dispatch))__pyx_f_8pyspades_10networking_7loaders_16SetClientSetting_write;
  __pyx_type_8pyspades_10networking_7loaders_SetClientSetting.tp_base = __pyx_ptype_8pyspades_10networking_6loader_Loader;
  if (PyType_Ready(&__pyx_type_8pyspades_10networking_7loaders_SetClientSetting) < 0) __PYX_ERR(0, 921, __pyx_L1_error)
  __pyx_type_8pyspades_10networking_7loaders_SetClientSetting.tp_print = 0;
  if (__Pyx_SetVtable(__pyx_type_8pyspades_10networking_7loaders_SetClientSetting.tp_dict, __pyx_vtabptr_8pyspades_10networking_7loaders_SetClientSetting) < 0) __PYX_ERR(0, 921, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "SetClientSetting", (PyObject *)&__pyx_type_8pyspades_10networking_7loaders_SetClientSetting) < 0) __PYX_ERR(0, 921, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_7loaders_SetClientSetting = &__pyx_type_8pyspades_10networking_7loaders_SetClientSetting;
  /*--- Type import code ---*/
  __pyx_ptype_8pyspades_10networking_5bytes_ByteReader = __Pyx_ImportType("pyspades.networking.bytes", "ByteReader", sizeof(struct __pyx_obj_8pyspades_10networking_5bytes_ByteReader), 1); if (unlikely(!__pyx_ptype_8pyspades_10networking_5bytes_ByteReader)) __PYX_ERR(1, 5, __pyx_L1_error)
  __pyx_vtabptr_8pyspades_10networking_5bytes_ByteReader = (struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteReader*)__Pyx_GetVtable(__pyx_ptype_8pyspades_10networking_5bytes_ByteReader->tp_dict); if (unlikely(!__pyx_vtabptr_8pyspades_10networking_5bytes_ByteReader)) __PYX_ERR(1, 5, __pyx_L1_error)
  __pyx_ptype_8pyspades_10networking_5bytes_ByteWriter = __Pyx_ImportType("pyspades.networking.bytes", "ByteWriter", sizeof(struct __pyx_obj_8pyspades_10networking_5bytes_ByteWriter), 1); if (unlikely(!__pyx_ptype_8pyspades_10networking_5bytes_ByteWriter)) __PYX_ERR(1, 29, __pyx_L1_error)
  __pyx_vtabptr_8pyspades_10networking_5bytes_ByteWriter = (struct __pyx_vtabstruct_8pyspades_10networking_5bytes_ByteWriter*)__Pyx_GetVtable(__pyx_ptype_8pyspades_10networking_5bytes_ByteWriter->tp_dict); if (unlikely(!__pyx_vtabptr_8pyspades_10networking_5bytes_ByteWriter)) __PYX_ERR(1, 29, __pyx_L1_error)
  /*--- Variable import code ---*/
  /*--- Function import code ---*/
  /*--- Execution code ---*/
  #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
  if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif

  /* "pyspades/networking/loaders.pyx":18
 * # along with pyspades.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * from pyspades.common import *             # <<<<<<<<<<<<<<
 * from pyspades.constants import *
 * from pyspades.networking.loader cimport Loader
 */
  __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_INCREF(__pyx_n_s_);
  __Pyx_GIVEREF(__pyx_n_s_);
  PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_);
  __pyx_t_2 = __Pyx_Import(__pyx_n_s_pyspades_common, __pyx_t_1, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 18, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  if (__pyx_import_star(__pyx_t_2) < 0) __PYX_ERR(0, 18, __pyx_L1_error);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "pyspades/networking/loaders.pyx":19
 * 
 * from pyspades.common import *
 * from pyspades.constants import *             # <<<<<<<<<<<<<<
 * from pyspades.networking.loader cimport Loader
 * from pyspades.networking.bytes cimport ByteReader, ByteWriter
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_);
  __Pyx_GIVEREF(__pyx_n_s_);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_);
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_pyspades_constants, __pyx_t_2, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 19, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  if (__pyx_import_star(__pyx_t_1) < 0) __PYX_ERR(0, 19, __pyx_L1_error);
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":53
 *     reader.writeByte((value >> 16) & 0xFF)
 * 
 * import itertools             # <<<<<<<<<<<<<<
 * id_iter = itertools.count()
 * 
 */
  __pyx_t_1 = __Pyx_Import(__pyx_n_s_itertools, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_itertools, __pyx_t_1) < 0) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":54
 * 
 * import itertools
 * id_iter = itertools.count()             # <<<<<<<<<<<<<<
 * 
 * cdef class PositionData(Loader):
 */
  __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_itertools); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_count); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = NULL;
  if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    if (likely(__pyx_t_2)) {
      PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_2);
      __Pyx_INCREF(function);
      __Pyx_DECREF_SET(__pyx_t_3, function);
    }
  }
  if (__pyx_t_2) {
    __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  } else {
    __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error)
  }
  __Pyx_GOTREF(__pyx_t_1);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_id_iter, __pyx_t_1) < 0) __PYX_ERR(0, 54, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":57
 * 
 * cdef class PositionData(Loader):
 *     id = 0             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_PositionData->tp_dict, __pyx_n_s_id, __pyx_int_0) < 0) __PYX_ERR(0, 57, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_PositionData);

  /* "pyspades/networking/loaders.pyx":77
 * 
 * cdef class OrientationData(Loader):
 *     id = 1             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_OrientationData->tp_dict, __pyx_n_s_id, __pyx_int_1) < 0) __PYX_ERR(0, 77, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_OrientationData);

  /* "pyspades/networking/loaders.pyx":101
 * 
 * cdef class WorldUpdate(Loader):
 *     id = 2             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_WorldUpdate->tp_dict, __pyx_n_s_id, __pyx_int_2) < 0) __PYX_ERR(0, 101, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_WorldUpdate);

  /* "pyspades/networking/loaders.pyx":131
 * 
 * cdef class InputData(Loader):
 *     id = 3             # <<<<<<<<<<<<<<
 *     cdef public:
 *         int player_id
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_InputData->tp_dict, __pyx_n_s_id, __pyx_int_3) < 0) __PYX_ERR(0, 131, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_InputData);

  /* "pyspades/networking/loaders.pyx":158
 * 
 * cdef class WeaponInput(Loader):
 *     id = 4             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_WeaponInput->tp_dict, __pyx_n_s_id, __pyx_int_4) < 0) __PYX_ERR(0, 158, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_WeaponInput);

  /* "pyspades/networking/loaders.pyx":178
 * 
 * cdef class HitPacket(Loader):
 *     id = 5             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_HitPacket->tp_dict, __pyx_n_s_id, __pyx_int_5) < 0) __PYX_ERR(0, 178, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_HitPacket);

  /* "pyspades/networking/loaders.pyx":193
 * 
 * cdef class SetHP(Loader):
 *     id = 5             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_SetHP->tp_dict, __pyx_n_s_id, __pyx_int_5) < 0) __PYX_ERR(0, 193, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_SetHP);

  /* "pyspades/networking/loaders.pyx":216
 * 
 * cdef class GrenadePacket(Loader):
 *     id = 6             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_GrenadePacket->tp_dict, __pyx_n_s_id, __pyx_int_6) < 0) __PYX_ERR(0, 216, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_GrenadePacket);

  /* "pyspades/networking/loaders.pyx":241
 * 
 * cdef class SetTool(Loader):
 *     id = 7             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_SetTool->tp_dict, __pyx_n_s_id, __pyx_int_7) < 0) __PYX_ERR(0, 241, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_SetTool);

  /* "pyspades/networking/loaders.pyx":256
 * 
 * cdef class SetColor(Loader):
 *     id = 8             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_SetColor->tp_dict, __pyx_n_s_id, __pyx_int_8) < 0) __PYX_ERR(0, 256, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_SetColor);

  /* "pyspades/networking/loaders.pyx":271
 * 
 * cdef class ExistingPlayer(Loader):
 *     id = 9             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_ExistingPlayer->tp_dict, __pyx_n_s_id, __pyx_int_9) < 0) __PYX_ERR(0, 271, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_ExistingPlayer);

  /* "pyspades/networking/loaders.pyx":298
 * 
 * cdef class ShortPlayerData(Loader):
 *     id = 10             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_ShortPlayerData->tp_dict, __pyx_n_s_id, __pyx_int_10) < 0) __PYX_ERR(0, 298, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_ShortPlayerData);

  /* "pyspades/networking/loaders.pyx":315
 * 
 * cdef class MoveObject(Loader):
 *     id = 11             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_MoveObject->tp_dict, __pyx_n_s_id, __pyx_int_11) < 0) __PYX_ERR(0, 315, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_MoveObject);

  /* "pyspades/networking/loaders.pyx":337
 * 
 * cdef class CreatePlayer(Loader):
 *     id = 12             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_CreatePlayer->tp_dict, __pyx_n_s_id, __pyx_int_12) < 0) __PYX_ERR(0, 337, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_CreatePlayer);

  /* "pyspades/networking/loaders.pyx":361
 * 
 * cdef class BlockAction(Loader):
 *     id = 13             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_BlockAction->tp_dict, __pyx_n_s_id, __pyx_int_13) < 0) __PYX_ERR(0, 361, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_BlockAction);

  /* "pyspades/networking/loaders.pyx":382
 * 
 * cdef class BlockLine(Loader):
 *     id = 14             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_BlockLine->tp_dict, __pyx_n_s_id, __pyx_int_14) < 0) __PYX_ERR(0, 382, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_BlockLine);

  /* "pyspades/networking/loaders.pyx":409
 * 
 * cdef class CTFState(Loader):
 *     id = 0             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_CTFState->tp_dict, __pyx_n_s_id, __pyx_int_0) < 0) __PYX_ERR(0, 409, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_CTFState);

  /* "pyspades/networking/loaders.pyx":510
 * 
 * cdef class TCState(Loader):
 *     id = 1             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_TCState->tp_dict, __pyx_n_s_id, __pyx_int_1) < 0) __PYX_ERR(0, 510, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_TCState);

  /* "pyspades/networking/loaders.pyx":536
 * 
 * modes = {
 *     CTF_MODE : CTFState,             # <<<<<<<<<<<<<<
 *     TC_MODE : TCState
 * }
 */
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_CTF_MODE); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, ((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_CTFState)) < 0) __PYX_ERR(0, 536, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "pyspades/networking/loaders.pyx":537
 * modes = {
 *     CTF_MODE : CTFState,
 *     TC_MODE : TCState             # <<<<<<<<<<<<<<
 * }
 * 
 */
  __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_TC_MODE); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);

  /* "pyspades/networking/loaders.pyx":538
 *     CTF_MODE : CTFState,
 *     TC_MODE : TCState
 * }             # <<<<<<<<<<<<<<
 * 
 * cdef inline tuple read_team_color(ByteReader reader):
 */
  if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, ((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_TCState)) < 0) __PYX_ERR(0, 536, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_modes, __pyx_t_1) < 0) __PYX_ERR(0, 535, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "pyspades/networking/loaders.pyx":553
 * 
 * cdef class StateData(Loader):
 *     id = 15             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_StateData->tp_dict, __pyx_n_s_id, __pyx_int_15) < 0) __PYX_ERR(0, 553, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_StateData);

  /* "pyspades/networking/loaders.pyx":585
 * 
 * cdef class KillAction(Loader):
 *     id = 16             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_KillAction->tp_dict, __pyx_n_s_id, __pyx_int_16) < 0) __PYX_ERR(0, 585, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_KillAction);

  /* "pyspades/networking/loaders.pyx":604
 * 
 * cdef class ChatMessage(Loader):
 *     id = 17             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_ChatMessage->tp_dict, __pyx_n_s_id, __pyx_int_17) < 0) __PYX_ERR(0, 604, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_ChatMessage);

  /* "pyspades/networking/loaders.pyx":622
 * 
 * cdef class MapStart(Loader):
 *     id = 18             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_MapStart->tp_dict, __pyx_n_s_id, __pyx_int_18) < 0) __PYX_ERR(0, 622, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_MapStart);

  /* "pyspades/networking/loaders.pyx":635
 * 
 * cdef class MapChunk(Loader):
 *     id = 19             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_MapChunk->tp_dict, __pyx_n_s_id, __pyx_int_19) < 0) __PYX_ERR(0, 635, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_MapChunk);

  /* "pyspades/networking/loaders.pyx":648
 * 
 * cdef class PlayerLeft(Loader):
 *     id = 20             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_PlayerLeft->tp_dict, __pyx_n_s_id, __pyx_int_20) < 0) __PYX_ERR(0, 648, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_PlayerLeft);

  /* "pyspades/networking/loaders.pyx":661
 * 
 * cdef class TerritoryCapture(Loader):
 *     id = 21             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_TerritoryCapture->tp_dict, __pyx_n_s_id, __pyx_int_21) < 0) __PYX_ERR(0, 661, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_TerritoryCapture);

  /* "pyspades/networking/loaders.pyx":678
 * 
 * cdef class ProgressBar(Loader):
 *     id = 22             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_ProgressBar->tp_dict, __pyx_n_s_id, __pyx_int_22) < 0) __PYX_ERR(0, 678, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_ProgressBar);

  /* "pyspades/networking/loaders.pyx":699
 * 
 * cdef class IntelCapture(Loader):
 *     id = 23             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_IntelCapture->tp_dict, __pyx_n_s_id, __pyx_int_23) < 0) __PYX_ERR(0, 699, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_IntelCapture);

  /* "pyspades/networking/loaders.pyx":715
 * 
 * cdef class IntelPickup(Loader):
 *     id = 24             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_IntelPickup->tp_dict, __pyx_n_s_id, __pyx_int_24) < 0) __PYX_ERR(0, 715, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_IntelPickup);

  /* "pyspades/networking/loaders.pyx":728
 * 
 * cdef class IntelDrop(Loader):
 *     id = 25             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_IntelDrop->tp_dict, __pyx_n_s_id, __pyx_int_25) < 0) __PYX_ERR(0, 728, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_IntelDrop);

  /* "pyspades/networking/loaders.pyx":744
 * 
 * cdef class Restock(Loader):
 *     id = 26             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_Restock->tp_dict, __pyx_n_s_id, __pyx_int_26) < 0) __PYX_ERR(0, 744, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_Restock);

  /* "pyspades/networking/loaders.pyx":757
 * 
 * cdef class FogColor(Loader):
 *     id = 27             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_FogColor->tp_dict, __pyx_n_s_id, __pyx_int_27) < 0) __PYX_ERR(0, 757, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_FogColor);

  /* "pyspades/networking/loaders.pyx":770
 * 
 * cdef class WeaponReload(Loader):
 *     id = 28             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_WeaponReload->tp_dict, __pyx_n_s_id, __pyx_int_28) < 0) __PYX_ERR(0, 770, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_WeaponReload);

  /* "pyspades/networking/loaders.pyx":787
 * 
 * cdef class ChangeTeam(Loader):
 *     id = 29             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_ChangeTeam->tp_dict, __pyx_n_s_id, __pyx_int_29) < 0) __PYX_ERR(0, 787, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_ChangeTeam);

  /* "pyspades/networking/loaders.pyx":802
 * 
 * cdef class ChangeWeapon(Loader):
 *     id = 30             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_ChangeWeapon->tp_dict, __pyx_n_s_id, __pyx_int_30) < 0) __PYX_ERR(0, 802, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_ChangeWeapon);

  /* "pyspades/networking/loaders.pyx":817
 * 
 * cdef class HandShakeInit(Loader):
 *     id = 31             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_HandShakeInit->tp_dict, __pyx_n_s_id, __pyx_int_31) < 0) __PYX_ERR(0, 817, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_HandShakeInit);

  /* "pyspades/networking/loaders.pyx":827
 * 
 * cdef class HandShakeReturn(Loader):
 *     id = 32             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_HandShakeReturn->tp_dict, __pyx_n_s_id, __pyx_int_32) < 0) __PYX_ERR(0, 827, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_HandShakeReturn);

  /* "pyspades/networking/loaders.pyx":839
 * 
 * cdef class VersionRequest(Loader):
 *     id = 33             # <<<<<<<<<<<<<<
 * 
 *     cpdef read(self, ByteReader reader):
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_VersionRequest->tp_dict, __pyx_n_s_id, __pyx_int_33) < 0) __PYX_ERR(0, 839, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_VersionRequest);

  /* "pyspades/networking/loaders.pyx":848
 * 
 * cdef class VersionResponse(Loader):
 *     id = 34             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_VersionResponse->tp_dict, __pyx_n_s_id, __pyx_int_34) < 0) __PYX_ERR(0, 848, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_VersionResponse);

  /* "pyspades/networking/loaders.pyx":871
 * 
 * cdef class ServerInfo(Loader):
 *     id = 50             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_ServerInfo->tp_dict, __pyx_n_s_id, __pyx_int_50) < 0) __PYX_ERR(0, 871, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_ServerInfo);

  /* "pyspades/networking/loaders.pyx":892
 * 
 * cdef class ApiRequest(Loader):
 *     id = 51             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_ApiRequest->tp_dict, __pyx_n_s_id, __pyx_int_51) < 0) __PYX_ERR(0, 892, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_ApiRequest);

  /* "pyspades/networking/loaders.pyx":908
 * 
 * cdef class AuthenticationRequest(Loader):
 *     id = 53             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_AuthenticationRequest->tp_dict, __pyx_n_s_id, __pyx_int_53) < 0) __PYX_ERR(0, 908, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_AuthenticationRequest);

  /* "pyspades/networking/loaders.pyx":922
 * 
 * cdef class SetClientSetting(Loader):
 *     id = 54             # <<<<<<<<<<<<<<
 * 
 *     cdef public:
 */
  if (PyDict_SetItem((PyObject *)__pyx_ptype_8pyspades_10networking_7loaders_SetClientSetting->tp_dict, __pyx_n_s_id, __pyx_int_54) < 0) __PYX_ERR(0, 922, __pyx_L1_error)
  PyType_Modified(__pyx_ptype_8pyspades_10networking_7loaders_SetClientSetting);

  /* "pyspades/networking/loaders.pyx":1
 * # Copyright (c) Mathias Kaerlev 2011-2012.             # <<<<<<<<<<<<<<
 * 
 * # This file is part of pyspades.
 */
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  if (__pyx_m) {
    if (__pyx_d) {
      __Pyx_AddTraceback("init pyspades.networking.loaders", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    Py_DECREF(__pyx_m); __pyx_m = 0;
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init pyspades.networking.loaders");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if PY_MAJOR_VERSION < 3
  return;
  #else
  return __pyx_m;
  #endif
}

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule((char *)modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, (char *)"RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
    if (unlikely(!result)) {
        PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
            "name '%U' is not defined", name);
#else
            "name '%.200s' is not defined", PyString_AS_STRING(name));
#endif
    }
    return result;
}

/* PyErrFetchRestore */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
}
#endif

/* WriteUnraisableException */
static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno,
                                  CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename,
                                  int full_traceback, CYTHON_UNUSED int nogil) {
    PyObject *old_exc, *old_val, *old_tb;
    PyObject *ctx;
    __Pyx_PyThreadState_declare
#ifdef WITH_THREAD
    PyGILState_STATE state;
    if (nogil)
        state = PyGILState_Ensure();
#ifdef _MSC_VER
    else state = (PyGILState_STATE)-1;
#endif
#endif
    __Pyx_PyThreadState_assign
    __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
    if (full_traceback) {
        Py_XINCREF(old_exc);
        Py_XINCREF(old_val);
        Py_XINCREF(old_tb);
        __Pyx_ErrRestore(old_exc, old_val, old_tb);
        PyErr_PrintEx(1);
    }
    #if PY_MAJOR_VERSION < 3
    ctx = PyString_FromString(name);
    #else
    ctx = PyUnicode_FromString(name);
    #endif
    __Pyx_ErrRestore(old_exc, old_val, old_tb);
    if (!ctx) {
        PyErr_WriteUnraisable(Py_None);
    } else {
        PyErr_WriteUnraisable(ctx);
        Py_DECREF(ctx);
    }
#ifdef WITH_THREAD
    if (nogil)
        PyGILState_Release(state);
#endif
}

/* RaiseTooManyValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
    PyErr_Format(PyExc_ValueError,
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
}

/* RaiseNeedMoreValuesToUnpack */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
    PyErr_Format(PyExc_ValueError,
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
                 index, (index == 1) ? "" : "s");
}

/* IterFinish */
static CYTHON_INLINE int __Pyx_IterFinish(void) {
#if CYTHON_FAST_THREAD_STATE
    PyThreadState *tstate = PyThreadState_GET();
    PyObject* exc_type = tstate->curexc_type;
    if (unlikely(exc_type)) {
        if (likely(exc_type == PyExc_StopIteration) || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)) {
            PyObject *exc_value, *exc_tb;
            exc_value = tstate->curexc_value;
            exc_tb = tstate->curexc_traceback;
            tstate->curexc_type = 0;
            tstate->curexc_value = 0;
            tstate->curexc_traceback = 0;
            Py_DECREF(exc_type);
            Py_XDECREF(exc_value);
            Py_XDECREF(exc_tb);
            return 0;
        } else {
            return -1;
        }
    }
    return 0;
#else
    if (unlikely(PyErr_Occurred())) {
        if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) {
            PyErr_Clear();
            return 0;
        } else {
            return -1;
        }
    }
    return 0;
#endif
}

/* UnpackItemEndCheck */
static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) {
    if (unlikely(retval)) {
        Py_DECREF(retval);
        __Pyx_RaiseTooManyValuesError(expected);
        return -1;
    } else {
        return __Pyx_IterFinish();
    }
    return 0;
}

/* PyCFunctionFastCall */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject * __Pyx_PyCFunction_FastCall(PyObject *func_obj, PyObject **args, Py_ssize_t nargs) {
    PyCFunctionObject *func = (PyCFunctionObject*)func_obj;
    PyCFunction meth = PyCFunction_GET_FUNCTION(func);
    PyObject *self = PyCFunction_GET_SELF(func);
    assert(PyCFunction_Check(func));
    assert(METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST)));
    assert(nargs >= 0);
    assert(nargs == 0 || args != NULL);
    /* _PyCFunction_FastCallDict() must not be called with an exception set,
       because it may clear it (directly or indirectly) and so the
       caller loses its exception */
    assert(!PyErr_Occurred());
    return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
}
#endif  // CYTHON_FAST_PYCCALL

/* PyFunctionFastCall */
#if CYTHON_FAST_PYCALL
#include "frameobject.h"
static PyObject* __Pyx_PyFunction_FastCallNoKw(PyCodeObject *co, PyObject **args, Py_ssize_t na,
                                               PyObject *globals) {
    PyFrameObject *f;
    PyThreadState *tstate = PyThreadState_GET();
    PyObject **fastlocals;
    Py_ssize_t i;
    PyObject *result;
    assert(globals != NULL);
    /* XXX Perhaps we should create a specialized
       PyFrame_New() that doesn't take locals, but does
       take builtins without sanity checking them.
       */
    assert(tstate != NULL);
    f = PyFrame_New(tstate, co, globals, NULL);
    if (f == NULL) {
        return NULL;
    }
    fastlocals = f->f_localsplus;
    for (i = 0; i < na; i++) {
        Py_INCREF(*args);
        fastlocals[i] = *args++;
    }
    result = PyEval_EvalFrameEx(f,0);
    ++tstate->recursion_depth;
    Py_DECREF(f);
    --tstate->recursion_depth;
    return result;
}
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, int nargs, PyObject *kwargs) {
    PyCodeObject *co = (PyCodeObject *)PyFunction_GET_CODE(func);
    PyObject *globals = PyFunction_GET_GLOBALS(func);
    PyObject *argdefs = PyFunction_GET_DEFAULTS(func);
    PyObject *closure;
#if PY_MAJOR_VERSION >= 3
    PyObject *kwdefs;
#endif
    PyObject *kwtuple, **k;
    PyObject **d;
    Py_ssize_t nd;
    Py_ssize_t nk;
    PyObject *result;
    assert(kwargs == NULL || PyDict_Check(kwargs));
    nk = kwargs ? PyDict_Size(kwargs) : 0;
    if (Py_EnterRecursiveCall((char*)" while calling a Python object")) {
        return NULL;
    }
    if (
#if PY_MAJOR_VERSION >= 3
            co->co_kwonlyargcount == 0 &&
#endif
            likely(kwargs == NULL || nk == 0) &&
            co->co_flags == (CO_OPTIMIZED | CO_NEWLOCALS | CO_NOFREE)) {
        if (argdefs == NULL && co->co_argcount == nargs) {
            result = __Pyx_PyFunction_FastCallNoKw(co, args, nargs, globals);
            goto done;
        }
        else if (nargs == 0 && argdefs != NULL
                 && co->co_argcount == Py_SIZE(argdefs)) {
            /* function called with no arguments, but all parameters have
               a default value: use default values as arguments .*/
            args = &PyTuple_GET_ITEM(argdefs, 0);
            result =__Pyx_PyFunction_FastCallNoKw(co, args, Py_SIZE(argdefs), globals);
            goto done;
        }
    }
    if (kwargs != NULL) {
        Py_ssize_t pos, i;
        kwtuple = PyTuple_New(2 * nk);
        if (kwtuple == NULL) {
            result = NULL;
            goto done;
        }
        k = &PyTuple_GET_ITEM(kwtuple, 0);
        pos = i = 0;
        while (PyDict_Next(kwargs, &pos, &k[i], &k[i+1])) {
            Py_INCREF(k[i]);
            Py_INCREF(k[i+1]);
            i += 2;
        }
        nk = i / 2;
    }
    else {
        kwtuple = NULL;
        k = NULL;
    }
    closure = PyFunction_GET_CLOSURE(func);
#if PY_MAJOR_VERSION >= 3
    kwdefs = PyFunction_GET_KW_DEFAULTS(func);
#endif
    if (argdefs != NULL) {
        d = &PyTuple_GET_ITEM(argdefs, 0);
        nd = Py_SIZE(argdefs);
    }
    else {
        d = NULL;
        nd = 0;
    }
#if PY_MAJOR_VERSION >= 3
    result = PyEval_EvalCodeEx((PyObject*)co, globals, (PyObject *)NULL,
                               args, nargs,
                               k, (int)nk,
                               d, (int)nd, kwdefs, closure);
#else
    result = PyEval_EvalCodeEx(co, globals, (PyObject *)NULL,
                               args, nargs,
                               k, (int)nk,
                               d, (int)nd, closure);
#endif
    Py_XDECREF(kwtuple);
done:
    Py_LeaveRecursiveCall();
    return result;
}
#endif  // CPython < 3.6
#endif  // CYTHON_FAST_PYCALL

/* PyObjectCall */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = func->ob_type->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallMethO */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = PyCFunction_GET_FUNCTION(func);
    self = PyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallOneArg */
#if CYTHON_COMPILING_IN_CPYTHON
static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_New(1);
    if (unlikely(!args)) return NULL;
    Py_INCREF(arg);
    PyTuple_SET_ITEM(args, 0, arg);
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, &arg, 1);
    }
#endif
#ifdef __Pyx_CyFunction_USED
    if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) {
#else
    if (likely(PyCFunction_Check(func))) {
#endif
        if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) {
            return __Pyx_PyObject_CallMethO(func, arg);
#if CYTHON_FAST_PYCCALL
        } else if (PyCFunction_GET_FLAGS(func) & METH_FASTCALL) {
            return __Pyx_PyCFunction_FastCall(func, &arg, 1);
#endif
        }
    }
    return __Pyx__PyObject_CallOneArg(func, arg);
}
#else
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *result;
    PyObject *args = PyTuple_Pack(1, arg);
    if (unlikely(!args)) return NULL;
    result = __Pyx_PyObject_Call(func, args, NULL);
    Py_DECREF(args);
    return result;
}
#endif

/* ArgTypeTest */
  static void __Pyx_RaiseArgumentTypeInvalid(const char* name, PyObject *obj, PyTypeObject *type) {
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
        name, type->tp_name, Py_TYPE(obj)->tp_name);
}
static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
    const char *name, int exact)
{
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (none_allowed && obj == Py_None) return 1;
    else if (exact) {
        if (likely(Py_TYPE(obj) == type)) return 1;
        #if PY_MAJOR_VERSION == 2
        else if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1;
        #endif
    }
    else {
        if (likely(PyObject_TypeCheck(obj, type))) return 1;
    }
    __Pyx_RaiseArgumentTypeInvalid(name, obj, type);
    return 0;
}

/* RaiseNoneIterError */
  static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* GetModuleGlobalName */
  static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) {
    PyObject *result;
#if !CYTHON_AVOID_BORROWED_REFS
    result = PyDict_GetItem(__pyx_d, name);
    if (likely(result)) {
        Py_INCREF(result);
    } else {
#else
    result = PyObject_GetItem(__pyx_d, name);
    if (!result) {
        PyErr_Clear();
#endif
        result = __Pyx_GetBuiltinName(name);
    }
    return result;
}

/* ExtTypeTest */
    static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (likely(PyObject_TypeCheck(obj, type)))
        return 1;
    PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s",
                 Py_TYPE(obj)->tp_name, type->tp_name);
    return 0;
}

/* GetItemInt */
    static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) {
    PyObject *r;
    if (!j) return NULL;
    r = PyObject_GetItem(o, j);
    Py_DECREF(j);
    return r;
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (wraparound & unlikely(i < 0)) i += PyList_GET_SIZE(o);
    if ((!boundscheck) || likely((0 <= i) & (i < PyList_GET_SIZE(o)))) {
        PyObject *r = PyList_GET_ITEM(o, i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
                                                              CYTHON_NCP_UNUSED int wraparound,
                                                              CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    if (wraparound & unlikely(i < 0)) i += PyTuple_GET_SIZE(o);
    if ((!boundscheck) || likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) {
        PyObject *r = PyTuple_GET_ITEM(o, i);
        Py_INCREF(r);
        return r;
    }
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
#else
    return PySequence_GetItem(o, i);
#endif
}
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list,
                                                     CYTHON_NCP_UNUSED int wraparound,
                                                     CYTHON_NCP_UNUSED int boundscheck) {
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS && CYTHON_USE_TYPE_SLOTS
    if (is_list || PyList_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o);
        if ((!boundscheck) || (likely((n >= 0) & (n < PyList_GET_SIZE(o))))) {
            PyObject *r = PyList_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    }
    else if (PyTuple_CheckExact(o)) {
        Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o);
        if ((!boundscheck) || likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))) {
            PyObject *r = PyTuple_GET_ITEM(o, n);
            Py_INCREF(r);
            return r;
        }
    } else {
        PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence;
        if (likely(m && m->sq_item)) {
            if (wraparound && unlikely(i < 0) && likely(m->sq_length)) {
                Py_ssize_t l = m->sq_length(o);
                if (likely(l >= 0)) {
                    i += l;
                } else {
                    if (!PyErr_ExceptionMatches(PyExc_OverflowError))
                        return NULL;
                    PyErr_Clear();
                }
            }
            return m->sq_item(o, i);
        }
    }
#else
    if (is_list || PySequence_Check(o)) {
        return PySequence_GetItem(o, i);
    }
#endif
    return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i));
}

/* PyObjectCallNoArg */
    #if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) {
#if CYTHON_FAST_PYCALL
    if (PyFunction_Check(func)) {
        return __Pyx_PyFunction_FastCall(func, NULL, 0);
    }
#endif
#ifdef __Pyx_CyFunction_USED
    if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) {
#else
    if (likely(PyCFunction_Check(func))) {
#endif
        if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) {
            return __Pyx_PyObject_CallMethO(func, NULL);
        }
    }
    return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL);
}
#endif

/* CallNextTpDealloc */
      static void __Pyx_call_next_tp_dealloc(PyObject* obj, destructor current_tp_dealloc) {
    PyTypeObject* type = Py_TYPE(obj);
    while (type && type->tp_dealloc != current_tp_dealloc)
        type = type->tp_base;
    while (type && type->tp_dealloc == current_tp_dealloc)
        type = type->tp_base;
    if (type)
        type->tp_dealloc(obj);
}

/* CallNextTpTraverse */
      static int __Pyx_call_next_tp_traverse(PyObject* obj, visitproc v, void *a, traverseproc current_tp_traverse) {
    PyTypeObject* type = Py_TYPE(obj);
    while (type && type->tp_traverse != current_tp_traverse)
        type = type->tp_base;
    while (type && type->tp_traverse == current_tp_traverse)
        type = type->tp_base;
    if (type && type->tp_traverse)
        return type->tp_traverse(obj, v, a);
    return 0;
}

/* CallNextTpClear */
      static void __Pyx_call_next_tp_clear(PyObject* obj, inquiry current_tp_clear) {
    PyTypeObject* type = Py_TYPE(obj);
    while (type && type->tp_clear != current_tp_clear)
        type = type->tp_base;
    while (type && type->tp_clear == current_tp_clear)
        type = type->tp_base;
    if (type && type->tp_clear)
        type->tp_clear(obj);
}

/* GetVTable */
      static void* __Pyx_GetVtable(PyObject *dict) {
    void* ptr;
    PyObject *ob = PyObject_GetItem(dict, __pyx_n_s_pyx_vtable);
    if (!ob)
        goto bad;
#if PY_VERSION_HEX >= 0x02070000
    ptr = PyCapsule_GetPointer(ob, 0);
#else
    ptr = PyCObject_AsVoidPtr(ob);
#endif
    if (!ptr && !PyErr_Occurred())
        PyErr_SetString(PyExc_RuntimeError, "invalid vtable found for imported type");
    Py_DECREF(ob);
    return ptr;
bad:
    Py_XDECREF(ob);
    return NULL;
}

/* SetVTable */
      static int __Pyx_SetVtable(PyObject *dict, void *vtable) {
#if PY_VERSION_HEX >= 0x02070000
    PyObject *ob = PyCapsule_New(vtable, 0, 0);
#else
    PyObject *ob = PyCObject_FromVoidPtr(vtable, 0);
#endif
    if (!ob)
        goto bad;
    if (PyDict_SetItem(dict, __pyx_n_s_pyx_vtable, ob) < 0)
        goto bad;
    Py_DECREF(ob);
    return 0;
bad:
    Py_XDECREF(ob);
    return -1;
}

/* Import */
      static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
    PyObject *empty_list = 0;
    PyObject *module = 0;
    PyObject *global_dict = 0;
    PyObject *empty_dict = 0;
    PyObject *list;
    #if PY_VERSION_HEX < 0x03030000
    PyObject *py_import;
    py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
    if (!py_import)
        goto bad;
    #endif
    if (from_list)
        list = from_list;
    else {
        empty_list = PyList_New(0);
        if (!empty_list)
            goto bad;
        list = empty_list;
    }
    global_dict = PyModule_GetDict(__pyx_m);
    if (!global_dict)
        goto bad;
    empty_dict = PyDict_New();
    if (!empty_dict)
        goto bad;
    {
        #if PY_MAJOR_VERSION >= 3
        if (level == -1) {
            if (strchr(__Pyx_MODULE_NAME, '.')) {
                #if PY_VERSION_HEX < 0x03030000
                PyObject *py_level = PyInt_FromLong(1);
                if (!py_level)
                    goto bad;
                module = PyObject_CallFunctionObjArgs(py_import,
                    name, global_dict, empty_dict, list, py_level, NULL);
                Py_DECREF(py_level);
                #else
                module = PyImport_ImportModuleLevelObject(
                    name, global_dict, empty_dict, list, 1);
                #endif
                if (!module) {
                    if (!PyErr_ExceptionMatches(PyExc_ImportError))
                        goto bad;
                    PyErr_Clear();
                }
            }
            level = 0;
        }
        #endif
        if (!module) {
            #if PY_VERSION_HEX < 0x03030000
            PyObject *py_level = PyInt_FromLong(level);
            if (!py_level)
                goto bad;
            module = PyObject_CallFunctionObjArgs(py_import,
                name, global_dict, empty_dict, list, py_level, NULL);
            Py_DECREF(py_level);
            #else
            module = PyImport_ImportModuleLevelObject(
                name, global_dict, empty_dict, list, level);
            #endif
        }
    }
bad:
    #if PY_VERSION_HEX < 0x03030000
    Py_XDECREF(py_import);
    #endif
    Py_XDECREF(empty_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* CodeObjectCache */
      static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static PyCodeObject *__pyx_find_code_object(int code_line) {
    PyCodeObject* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = __pyx_code_cache.entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            __pyx_code_cache.entries = entries;
            __pyx_code_cache.max_count = 64;
            __pyx_code_cache.count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
        PyCodeObject* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_DECREF(tmp);
        return;
    }
    if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
        int new_max = __pyx_code_cache.max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        __pyx_code_cache.entries = entries;
        __pyx_code_cache.max_count = new_max;
    }
    for (i=__pyx_code_cache.count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    __pyx_code_cache.count++;
    Py_INCREF(code_object);
}

/* AddTraceback */
      #include "compile.h"
#include "frameobject.h"
#include "traceback.h"
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    #if PY_MAJOR_VERSION < 3
    py_srcfile = PyString_FromString(filename);
    #else
    py_srcfile = PyUnicode_FromString(filename);
    #endif
    if (!py_srcfile) goto bad;
    if (c_line) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        #else
        py_funcname = PyUnicode_FromString(funcname);
        #endif
    }
    if (!py_funcname) goto bad;
    py_code = __Pyx_PyCode_New(
        0,
        0,
        0,
        0,
        0,
        __pyx_empty_bytes, /*PyObject *code,*/
        __pyx_empty_tuple, /*PyObject *consts,*/
        __pyx_empty_tuple, /*PyObject *names,*/
        __pyx_empty_tuple, /*PyObject *varnames,*/
        __pyx_empty_tuple, /*PyObject *freevars,*/
        __pyx_empty_tuple, /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        py_line,
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    Py_DECREF(py_srcfile);
    Py_DECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    py_code = __pyx_find_code_object(c_line ? c_line : py_line);
    if (!py_code) {
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) goto bad;
        __pyx_insert_code_object(c_line ? c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        PyThreadState_GET(), /*PyThreadState *tstate,*/
        py_code,             /*PyCodeObject *code,*/
        __pyx_d,      /*PyObject *globals,*/
        0                    /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}

/* CIntFromPyVerify */
      #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
    const int neg_one = (int) -1, const_zero = (int) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(int),
                                     little, !is_unsigned);
    }
}

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) {
    const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(unsigned int) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(unsigned int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(unsigned int) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(unsigned int),
                                     little, !is_unsigned);
    }
}

/* CIntFromPy */
      static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
    const int neg_one = (int) -1, const_zero = (int) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(int) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case  1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0])
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(int) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(int,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(int) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (int) -1;
        }
    } else {
        int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyInt_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
    const long neg_one = (long) -1, const_zero = (long) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(long) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (long) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case  1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0])
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (long) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(long) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(long,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(long) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            long val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (long) -1;
        }
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyInt_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *x) {
    const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(unsigned int) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(unsigned int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (unsigned int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (unsigned int) 0;
                case  1: __PYX_VERIFY_RETURN_INT(unsigned int, digit, digits[0])
                case 2:
                    if (8 * sizeof(unsigned int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) >= 2 * PyLong_SHIFT) {
                            return (unsigned int) (((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(unsigned int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) >= 3 * PyLong_SHIFT) {
                            return (unsigned int) (((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(unsigned int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) >= 4 * PyLong_SHIFT) {
                            return (unsigned int) (((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (unsigned int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(unsigned int) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (unsigned int) 0;
                case -1: __PYX_VERIFY_RETURN_INT(unsigned int, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(unsigned int,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(unsigned int) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) {
                            return (unsigned int) (((unsigned int)-1)*(((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(unsigned int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) {
                            return (unsigned int) ((((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) {
                            return (unsigned int) (((unsigned int)-1)*(((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(unsigned int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) {
                            return (unsigned int) ((((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) - 1 > 4 * PyLong_SHIFT) {
                            return (unsigned int) (((unsigned int)-1)*(((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(unsigned int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(unsigned int) - 1 > 4 * PyLong_SHIFT) {
                            return (unsigned int) ((((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(unsigned int) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(unsigned int, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            unsigned int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (unsigned int) -1;
        }
    } else {
        unsigned int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (unsigned int) -1;
        val = __Pyx_PyInt_As_unsigned_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to unsigned int");
    return (unsigned int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to unsigned int");
    return (unsigned int) -1;
}

/* CIntFromPy */
      static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_As_PY_LONG_LONG(PyObject *x) {
    const PY_LONG_LONG neg_one = (PY_LONG_LONG) -1, const_zero = (PY_LONG_LONG) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(PY_LONG_LONG) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (PY_LONG_LONG) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (PY_LONG_LONG) 0;
                case  1: __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, digit, digits[0])
                case 2:
                    if (8 * sizeof(PY_LONG_LONG) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PY_LONG_LONG) >= 2 * PyLong_SHIFT) {
                            return (PY_LONG_LONG) (((((PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(PY_LONG_LONG) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PY_LONG_LONG) >= 3 * PyLong_SHIFT) {
                            return (PY_LONG_LONG) (((((((PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(PY_LONG_LONG) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PY_LONG_LONG) >= 4 * PyLong_SHIFT) {
                            return (PY_LONG_LONG) (((((((((PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (PY_LONG_LONG) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(PY_LONG_LONG) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, unsigned long, PyLong_AsUnsignedLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(PY_LONG_LONG) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
#endif
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (PY_LONG_LONG) 0;
                case -1: __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(PY_LONG_LONG,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(PY_LONG_LONG) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                            return (PY_LONG_LONG) (((PY_LONG_LONG)-1)*(((((PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(PY_LONG_LONG) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                            return (PY_LONG_LONG) ((((((PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                            return (PY_LONG_LONG) (((PY_LONG_LONG)-1)*(((((((PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(PY_LONG_LONG) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                            return (PY_LONG_LONG) ((((((((PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                            return (PY_LONG_LONG) (((PY_LONG_LONG)-1)*(((((((((PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(PY_LONG_LONG) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(PY_LONG_LONG, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) {
                            return (PY_LONG_LONG) ((((((((((PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (PY_LONG_LONG)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(PY_LONG_LONG) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, long, PyLong_AsLong(x))
#ifdef HAVE_LONG_LONG
            } else if (sizeof(PY_LONG_LONG) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(PY_LONG_LONG, PY_LONG_LONG, PyLong_AsLongLong(x))
#endif
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            PY_LONG_LONG val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (PY_LONG_LONG) -1;
        }
    } else {
        PY_LONG_LONG val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (PY_LONG_LONG) -1;
        val = __Pyx_PyInt_As_PY_LONG_LONG(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to PY_LONG_LONG");
    return (PY_LONG_LONG) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to PY_LONG_LONG");
    return (PY_LONG_LONG) -1;
}

/* CIntToPy */
      static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
    const long neg_one = (long) -1, const_zero = (long) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
#ifdef HAVE_LONG_LONG
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
#endif
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
    }
}

/* CStringEquals */
      static CYTHON_INLINE int __Pyx_StrEq(const char *s1, const char *s2) {
    while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
    return *s1 == *s2;
}

/* CheckBinaryVersion */
      static int __Pyx_check_binary_version(void) {
    char ctversion[4], rtversion[4];
    PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
    PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
    if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compiletime version %s of module '%.100s' "
                      "does not match runtime version %s",
                      ctversion, __Pyx_MODULE_NAME, rtversion);
        return PyErr_WarnEx(NULL, message, 1);
    }
    return 0;
}

/* ModuleImport */
      #ifndef __PYX_HAVE_RT_ImportModule
#define __PYX_HAVE_RT_ImportModule
static PyObject *__Pyx_ImportModule(const char *name) {
    PyObject *py_name = 0;
    PyObject *py_module = 0;
    py_name = __Pyx_PyIdentifier_FromString(name);
    if (!py_name)
        goto bad;
    py_module = PyImport_Import(py_name);
    Py_DECREF(py_name);
    return py_module;
bad:
    Py_XDECREF(py_name);
    return 0;
}
#endif

/* TypeImport */
      #ifndef __PYX_HAVE_RT_ImportType
#define __PYX_HAVE_RT_ImportType
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name,
    size_t size, int strict)
{
    PyObject *py_module = 0;
    PyObject *result = 0;
    PyObject *py_name = 0;
    char warning[200];
    Py_ssize_t basicsize;
#ifdef Py_LIMITED_API
    PyObject *py_basicsize;
#endif
    py_module = __Pyx_ImportModule(module_name);
    if (!py_module)
        goto bad;
    py_name = __Pyx_PyIdentifier_FromString(class_name);
    if (!py_name)
        goto bad;
    result = PyObject_GetAttr(py_module, py_name);
    Py_DECREF(py_name);
    py_name = 0;
    Py_DECREF(py_module);
    py_module = 0;
    if (!result)
        goto bad;
    if (!PyType_Check(result)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s.%.200s is not a type object",
            module_name, class_name);
        goto bad;
    }
#ifndef Py_LIMITED_API
    basicsize = ((PyTypeObject *)result)->tp_basicsize;
#else
    py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
    if (!py_basicsize)
        goto bad;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = 0;
    if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
#endif
    if (!strict && (size_t)basicsize > size) {
        PyOS_snprintf(warning, sizeof(warning),
            "%s.%s size changed, may indicate binary incompatibility. Expected %zd, got %zd",
            module_name, class_name, basicsize, size);
        if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
    }
    else if ((size_t)basicsize != size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s has the wrong size, try recompiling. Expected %zd, got %zd",
            module_name, class_name, basicsize, size);
        goto bad;
    }
    return (PyTypeObject *)result;
bad:
    Py_XDECREF(py_module);
    Py_XDECREF(result);
    return NULL;
}
#endif

/* InitStrings */
      static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION < 3
        if (t->is_unicode) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        #else
        if (t->is_unicode | t->is_str) {
            if (t->intern) {
                *t->p = PyUnicode_InternFromString(t->s);
            } else if (t->encoding) {
                *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
            } else {
                *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
            }
        } else {
            *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
        }
        #endif
        if (!*t->p)
            return -1;
        ++t;
    }
    return 0;
}

static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
}
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
    if (
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
            __Pyx_sys_getdefaultencoding_not_ascii &&
#endif
            PyUnicode_Check(o)) {
#if PY_VERSION_HEX < 0x03030000
        char* defenc_c;
        PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
        if (!defenc) return NULL;
        defenc_c = PyBytes_AS_STRING(defenc);
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        {
            char* end = defenc_c + PyBytes_GET_SIZE(defenc);
            char* c;
            for (c = defenc_c; c < end; c++) {
                if ((unsigned char) (*c) >= 128) {
                    PyUnicode_AsASCIIString(o);
                    return NULL;
                }
            }
        }
#endif
        *length = PyBytes_GET_SIZE(defenc);
        return defenc_c;
#else
        if (__Pyx_PyUnicode_READY(o) == -1) return NULL;
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        if (PyUnicode_IS_ASCII(o)) {
            *length = PyUnicode_GET_LENGTH(o);
            return PyUnicode_AsUTF8(o);
        } else {
            PyUnicode_AsASCIIString(o);
            return NULL;
        }
#else
        return PyUnicode_AsUTF8AndSize(o, length);
#endif
#endif
    } else
#endif
#if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
    if (PyByteArray_Check(o)) {
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
    } else
#endif
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_MAJOR_VERSION < 3
  if (PyInt_Check(x) || PyLong_Check(x))
#else
  if (PyLong_Check(x))
#endif
    return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  #if PY_MAJOR_VERSION < 3
  if (m && m->nb_int) {
    name = "int";
    res = PyNumber_Int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = PyNumber_Long(x);
  }
  #else
  if (m && m->nb_int) {
    name = "int";
    res = PyNumber_Long(x);
  }
  #endif
#else
  res = PyNumber_Int(x);
#endif
  if (res) {
#if PY_MAJOR_VERSION < 3
    if (!PyInt_Check(res) && !PyLong_Check(res)) {
#else
    if (!PyLong_Check(res)) {
#endif
      PyErr_Format(PyExc_TypeError,
                   "__%.4s__ returned non-%.4s (type %.200s)",
                   name, name, Py_TYPE(res)->tp_name);
      Py_DECREF(res);
      return NULL;
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_CheckExact(b))) {
    if (sizeof(Py_ssize_t) >= sizeof(long))
        return PyInt_AS_LONG(b);
    else
        return PyInt_AsSsize_t(x);
  }
#endif
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    const digit* digits = ((PyLongObject*)b)->ob_digit;
    const Py_ssize_t size = Py_SIZE(b);
    if (likely(__Pyx_sst_abs(size) <= 1)) {
        ival = likely(size) ? digits[0] : 0;
        if (size == -1) ival = -ival;
        return ival;
    } else {
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
    return PyInt_FromSize_t(ival);
}


#endif /* Py_PYTHON_H */
