Skip to content

Commit

Permalink
Top down values are no longer (currently) generated in derived Type t…
Browse files Browse the repository at this point in the history
…ypes.
  • Loading branch information
vchelaru committed Dec 31, 2023
1 parent 2bcd554 commit 1025b8a
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,21 @@ private void CreateVariableFields(IElement element, ICodeBlock classBlock)

bool ShouldSkip(CustomVariable customVariable)
{
switch(customVariable.Type)
var type = customVariable.Type;
switch (type)
{
// Don't want to handle variables of certain types so we don't get unintentional loads:
case "FlatRedBall.TileGraphics.LayeredTileMap":
return true;

}

if(type.EndsWith("DataTypes.TopDownValues"))
{
// This requires the content to have been loaded as well. We'll skip this for now, and come back to it later...
return true;
}

return false;
}

Expand Down

0 comments on commit 1025b8a

Please sign in to comment.