git repos / blockattack-game

blame: source/code/ModInfo.hpp

normal view · raw

3affd2d6 Poul Sander 2020-12-27 15:56 1
/*
3affd2d6 Poul Sander 2020-12-27 15:56 2
===========================================================================
3affd2d6 Poul Sander 2020-12-27 15:56 3
blockattack - Block Attack - Rise of the Blocks
3affd2d6 Poul Sander 2020-12-27 15:56 4
Copyright (C) 2005-2020 Poul Sander
3affd2d6 Poul Sander 2020-12-27 15:56 5
3affd2d6 Poul Sander 2020-12-27 15:56 6
This program is free software: you can redistribute it and/or modify
3affd2d6 Poul Sander 2020-12-27 15:56 7
it under the terms of the GNU General Public License as published by
3affd2d6 Poul Sander 2020-12-27 15:56 8
the Free Software Foundation, either version 2 of the License, or
3affd2d6 Poul Sander 2020-12-27 15:56 9
(at your option) any later version.
3affd2d6 Poul Sander 2020-12-27 15:56 10
3affd2d6 Poul Sander 2020-12-27 15:56 11
This program is distributed in the hope that it will be useful,
3affd2d6 Poul Sander 2020-12-27 15:56 12
but WITHOUT ANY WARRANTY; without even the implied warranty of
3affd2d6 Poul Sander 2020-12-27 15:56 13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3affd2d6 Poul Sander 2020-12-27 15:56 14
GNU General Public License for more details.
3affd2d6 Poul Sander 2020-12-27 15:56 15
3affd2d6 Poul Sander 2020-12-27 15:56 16
You should have received a copy of the GNU General Public License
3affd2d6 Poul Sander 2020-12-27 15:56 17
along with this program.  If not, see http://www.gnu.org/licenses/
3affd2d6 Poul Sander 2020-12-27 15:56 18
3affd2d6 Poul Sander 2020-12-27 15:56 19
Source information and contacts persons can be found at
3affd2d6 Poul Sander 2020-12-27 15:56 20
http://blockattack.net
3affd2d6 Poul Sander 2020-12-27 15:56 21
===========================================================================
3affd2d6 Poul Sander 2020-12-27 15:56 22
*/
3affd2d6 Poul Sander 2020-12-27 15:56 23
3affd2d6 Poul Sander 2020-12-27 15:56 24
3affd2d6 Poul Sander 2020-12-27 15:56 25
#ifndef MODINFO_HPP
3affd2d6 Poul Sander 2020-12-27 15:56 26
#define MODINFO_HPP
3affd2d6 Poul Sander 2020-12-27 15:56 27
3affd2d6 Poul Sander 2020-12-27 15:56 28
#include <string>
3affd2d6 Poul Sander 2020-12-27 15:56 29
#include <vector>
3affd2d6 Poul Sander 2020-12-27 15:56 30
3affd2d6 Poul Sander 2020-12-27 15:56 31
class ModInfo {
3affd2d6 Poul Sander 2020-12-27 15:56 32
public:
3affd2d6 Poul Sander 2020-12-27 15:56 33
	ModInfo() = default;
3affd2d6 Poul Sander 2020-12-27 15:56 34
	void InitModList(const std::vector<std::string>& modlist);
c93baeed Poul Sander 2021-10-10 14:09 35
	void ParseModFile(const std::string& content);
3affd2d6 Poul Sander 2020-12-27 15:56 36
	const std::vector<std::string>& getModList();
3affd2d6 Poul Sander 2020-12-27 15:56 37
	const std::vector<std::string>& getModSpriteFiles();
3affd2d6 Poul Sander 2020-12-27 15:56 38
private:
3affd2d6 Poul Sander 2020-12-27 15:56 39
	std::vector<std::string> mod_list;
3affd2d6 Poul Sander 2020-12-27 15:56 40
	std::vector<std::string> sprite_filename_list;
3affd2d6 Poul Sander 2020-12-27 15:56 41
};
3affd2d6 Poul Sander 2020-12-27 15:56 42
3affd2d6 Poul Sander 2020-12-27 15:56 43
#endif