-
Notifications
You must be signed in to change notification settings - Fork 0
/
RegComponent.cpp
41 lines (35 loc) · 1015 Bytes
/
RegComponent.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <iostream>
#include <ctime>
#include <sstream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include "SOIL.h"
#include "skilLib.h"
#include "systems.h"
#include "components.h"
#include "messages.h"
/*
This IS NOT a typical component!!! This is merely the registry
wrapper for a component, its name, and its signatures.
*/
RegComponent::RegComponent(){
name = "null";
signatures.push_back("ERR");
seed = new NullComponent();
}
RegComponent::RegComponent(std::string gName, std::vector<std::string> gSignatures){
name = gName;
signatures = gSignatures;
seed = new NullComponent(); // Registry needs components to register, seed will be replaced.
}
void RegComponent::consoleDump(){
std::cout<<"Component. Name: " << name << " Address: " <<this<< "\n";
std::cout<<"Sources: ";
for(int x = 0; x < signatures.size(); x++){
std::cout<<signatures[x]<<" ";
}
std::cout<<"\n===================================================\n";
}