Ejemplo n.º 1
0
 public LuaPropertyNode(string propertyName, LuaMemberType memberType,
                        LuaBaseStatementNode initStatementNode = null)
 {
     this.propertyName      = propertyName;
     this.initStatementNode = initStatementNode;
     this.memberType        = memberType;
 }
Ejemplo n.º 2
0
 public override void Parse(string context)
 {
     context    = context.Trim();
     memberType = context.StartsWith("local") ? LuaMemberType.Local : LuaMemberType.Global;
     context    = context.RemoveString("local");
     if (!context.Contains("="))
     {
         fieldName = context.Trim();
     }
     else
     {
         fieldName         = context.Split('=')[0].Trim();
         initStatementNode = new LuaScriptStatementNode(context.Split('=')[1].Trim());
     }
 }
Ejemplo n.º 3
0
 public LuaFieldNode(string fieldName, LuaMemberType memberType, LuaBaseStatementNode initStatementNode = null)
 {
     this.fieldName         = fieldName;
     this.memberType        = memberType;
     this.initStatementNode = initStatementNode;
 }