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


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


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


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


Loading…
Cancel
Save