Fix bug of generating extra class instead of struct(Copy paste problem)

This commit is contained in:
OmidID 2018-05-21 02:26:37 -07:00
Родитель 5b7970fe69
Коммит 8fcfc02ef8
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1,4 +1,4 @@
//
//
// CURRENTLY
// Generate base classes without a call to base
// Generate the standard idioms/patterns for init, dispose
@ -247,10 +247,10 @@ namespace SharpieBinder
// but for now, this will do
var classesNotStructs = new[] {"String", "Skeleton", "XMLElement", "GPUObject", "Frustum", "Polyhedron"};
if (classesNotStructs.Contains(decl.Name))
if (!extraClasses.Contains(decl.Name))
return false;
if (decl.TagKind == TagDeclKind.Struct || !(decl.IsDerivedFrom(ScanBaseTypes.UrhoRefCounted) || decl == ScanBaseTypes.UrhoRefCounted))
if (!extraClasses.Contains(decl.Name))
return true;
return false;