This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pch.h" // #include <gtest/gtest.h> | |
#include "TestGameManager.h" | |
namespace SnapshotTests { | |
class SnapshotTests : public ::testing::Test { | |
protected: | |
entt::registry registry; | |
TestGameManager toTest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Macro workaround to having to define code for every single component | |
// Just need to remember to define all Component classes here as well as in Components.h | |
// References: | |
// https://stackoverflow.com/questions/25428144/iterate-a-preprocessor-macro-on-a-list-of-class-names | |
// https://stackoverflow.com/questions/6635851/real-world-use-of-x-macros | |
// https://en.wikibooks.org/wiki/C_Programming/Preprocessor_directives_and_macros#X-Macros | |
// Also yes, file name + type is arbitrary | |
// Note that yes, macros should be a last resort. If there's a better way to arbitrarily define list of classes in one place |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Use pathogen to easily modify the runtime path to include all | |
" plugins under the ~/.vim/bundle directory | |
call pathogen#helptags() | |
call pathogen#infect() | |
" change the mapleader from \ to , | |
let mapleader="," | |
" Quickly edit/reload the vimrc file | |
nmap <silent> <leader>ev :e $MYVIMRC<CR> |