Skip to content

Commit

Permalink
Node related changes (#13)
Browse files Browse the repository at this point in the history
Making changes to support dynamically creating enums for configured
nodes

All the manually extracted enums has been moved to json file 

Note: trigger.model.load() and trigger.model.setblock() command still
having static enums , will be handled separately, because of its odd
command structure.
  • Loading branch information
jharajeev55 authored Dec 4, 2024
1 parent 490da75 commit 11e3e9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Json_parser/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ static void parse_commands_josn(string base_lib_dir, string json_file_path)

var triggerModelLoadCommands = cmdList.Where(cmd => cmd.name.Contains("trigger.model.load()")).ToList(); // get trigger.model.load() commands

var triggerBlockConstenets = cmdList.Where(cmd => cmd.name.Contains("trigger.BLOCK_")).ToList();
cmdList = cmdList.Except(triggerBlockConstenets).ToList();
var triggerBlockConstants = cmdList.Where(cmd => cmd.name.Contains("trigger.BLOCK_")).ToList();
cmdList = cmdList.Except(triggerBlockConstants).ToList();


cmdList = cmdList.Except(directFunctioncommands).ToList(); // remove all directFunctioncommands commands and handle it speratley
Expand Down

0 comments on commit 11e3e9c

Please sign in to comment.