Browse Source

Add Module::getNum*().

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
3f1b1535e3
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      include/engine/Module.hpp

+ 12
- 0
include/engine/Module.hpp View File

@@ -238,15 +238,27 @@ struct Module {
int64_t getId() {
return id;
}
int getNumParams() {
return params.size();
}
Param& getParam(int index) {
return params[index];
}
int getNumInputs() {
return inputs.size();
}
Input& getInput(int index) {
return inputs[index];
}
int getNumOutputs() {
return outputs.size();
}
Output& getOutput(int index) {
return outputs[index];
}
int getNumLights() {
return lights.size();
}
Light& getLight(int index) {
return lights[index];
}


Loading…
Cancel
Save