GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


A Paste by Anonymous
1
 
#ifndef SUBSYSTEM_H
#define SUBSYSTEM_H

// Base class for core subsystems
class Subsystem {
    bool loaded;

protected:
    void Loaded() { loaded = true; }

public:
    Subsystem() : loaded(false) {}    
    bool IsGood() { return loaded; }
};

#endif