Coding the GameObjectBlueprint class
Create a new header file in the Header Files/FileIO
filter called GameObjectBlueprint.h
and add the following code:
#pragma once #include<vector> #include<string> #include<map> using namespace std; class GameObjectBlueprint { private: Â Â Â Â string m_Name = ""; Â Â Â Â vector<string> m_ComponentList; Â Â Â Â string m_BitmapName = ""; Â Â Â Â float m_Width; Â Â Â Â float m_Height; Â Â Â Â float m_LocationX; Â Â Â Â float m_LocationY; Â Â Â Â float m_Speed; Â Â Â Â bool m_EncompassingRectCollider = false; Â Â Â Â string m_EncompassingRectColliderLabel = ""; Â Â Â public: Â Â Â Â float getWidth(); Â Â Â Â void setWidth(float width); Â Â Â Â float getHeight(); Â Â Â ...