Browse Source

Use singular "Id" for component enums in helper script.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
fdc29cf9e9
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      helper.py

+ 4
- 4
helper.py View File

@@ -353,7 +353,7 @@ struct {identifier} : Module {{"""

# Params
source += """
enum ParamIds {"""
enum ParamId {"""
for c in components['params']:
source += f"""
{c['name']}_PARAM,"""
@@ -363,7 +363,7 @@ struct {identifier} : Module {{"""

# Inputs
source += """
enum InputIds {"""
enum InputId {"""
for c in components['inputs']:
source += f"""
{c['name']}_INPUT,"""
@@ -373,7 +373,7 @@ struct {identifier} : Module {{"""

# Outputs
source += """
enum OutputIds {"""
enum OutputId {"""
for c in components['outputs']:
source += f"""
{c['name']}_OUTPUT,"""
@@ -383,7 +383,7 @@ struct {identifier} : Module {{"""

# Lights
source += """
enum LightIds {"""
enum LightId {"""
for c in components['lights']:
source += f"""
{c['name']}_LIGHT,"""


Loading…
Cancel
Save