Skip to content

Commit

Permalink
fix for the previous changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anosatsuk124 committed Aug 1, 2024
1 parent 593f615 commit efbf251
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Sources/ClassGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ namespace GodotUIXml;

class ClassGenerator
{
public string className { get; }
public XElement root { get; }

private ClassGenerator(string _className, XElement _root)
{
className = _className;
root = _root;
}

private string className { get; }
private XElement root { get; }

const string IDAttribute = "id";
const string ProtoSceneAttribute = "proto_scene";
protected const string IDAttribute = "id";
protected const string ProtoSceneAttribute = "proto_scene";

private int rootIndex = 0;
private int sceneIndex = 0;
Expand Down Expand Up @@ -143,6 +143,7 @@ private void SetProperty(string target, string property, string value)
source.AppendLine($"{target}.{property} = \"{value}\";");
}

// TODO: Refactor this with splitting the code into multiple methods.
private void GenerateInstantiationBlock(XElement element)
{
var type = element.Name.LocalName;
Expand Down

0 comments on commit efbf251

Please sign in to comment.