Advertisement
Guest User

AddOnSystem.h

a guest
Sep 25th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.10 KB | None | 0 0
  1.  
  2. //| Terms && Perms |\\
  3.  
  4. /*
  5. Copyright holder is and was 0x00000539@UC
  6. Contact: https://www.unknowncheats.me/forum/members/1641196.html
  7.  
  8. If you want to use this snippet please ask me.
  9. */
  10.  
  11. //|    Includes    |\\
  12.  
  13. #include <vector>
  14.  
  15. //|      Code      |\\
  16.  
  17. namespace AddOnSystem
  18. {
  19.     struct AddOnGlobalStruct
  20.     {
  21.         std::string   identifier;
  22.         long float    numeric_value;
  23.         void        * undefines_value;
  24.         AddOnGlobalStruct ( std::string , long float );
  25.         AddOnGlobalStruct ( std::string , void* );
  26.     };
  27.     class AddOnGlobals
  28.     {
  29.     private:
  30.         std::vector < AddOnGlobalStruct* > Globals;
  31.     public:
  32.         AddOnGlobals ( );
  33.         int        AddValue ( std::string , long float );
  34.         int        AddValue ( std::string , void* );
  35.         long float GetNumeric ( int );
  36.         long float GetNumeric ( std::string );
  37.         void*      GetUndefined ( int );
  38.         void*      GetUndefined ( std::string );
  39.         void       OverwriteNumeric ( int , long float );
  40.         void       OverwriteNumeric ( std::string , long float );
  41.         void       OverwriteUndefined ( int , void* );
  42.         void       OverwriteUndefined ( std::string , void* );
  43.     };
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement