zengine/game/zworld/editor/test_refl.h

25 lines
490 B
C
Raw Normal View History

2024-10-25 09:45:49 +08:00
#include "refl/pch.h"
#include <iostream>
using namespace refl;
using namespace std;
namespace api {
struct Guid {
UPROPERTY()
int a;
UPROPERTY()
float b;
UPROPERTY()
string view;
USING_OVERLOAD_CTOR(Guid, int , float)
UFUNCTION({}, ref = USING_CTOR_NAME)
Guid(int aa, float bb) :a(aa), b(bb), view("default") {
cout << view << endl;
}
UFUNCTION({})
int Multy(int c)const {
int d = a * b;
return d * c;
}
};
}
#include ".zworld-editor/test_refl_gen.inl"