Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <string>
- #include "SpriteHandler.h"
- //-- Masks for each component type --//
- enum COMP_MASKS
- {
- COMP_NONE = 0,
- COMP_ACTIVE = 1,
- COMP_INFO = 1 << 1,
- COMP_POSITION = 1 << 2,
- COMP_SPEED = 1 << 3,
- COMP_SPRITE = 1 << 4,
- };
- //-- Component Definitions --//
- struct CompGeneric
- {
- };
- struct CompInfo : CompGeneric
- {
- int OwnerId = -1;
- std::string Name = "MrBlank";
- std::string Flavour = "I'm Blank.";
- };
- struct CompPosition : CompGeneric
- {
- int OwnerId = -1;
- int X;
- int Y;
- };
- struct CompSpeed : CompGeneric
- {
- int OwnerId = -1;
- float Xspeed = 0;
- float Yspeed = 0;
- };
- struct CompSprite : CompGeneric
- {
- int OwnerId = -1;
- Sprite* Sprite;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement