From 6d608084b6e40d326d665b83a1280849691aa0d8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 4 Jul 2016 20:29:34 +0300 Subject: Add missing files. --- src/resources/skilltypeentry.h | 34 ++++++++++++++++++++++++++++++ src/resources/skilltypelist.h | 48 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 src/resources/skilltypeentry.h create mode 100644 src/resources/skilltypelist.h (limited to 'src') diff --git a/src/resources/skilltypeentry.h b/src/resources/skilltypeentry.h new file mode 100644 index 000000000..bbf0bd016 --- /dev/null +++ b/src/resources/skilltypeentry.h @@ -0,0 +1,34 @@ +/* + * The ManaPlus Client + * Copyright (C) 2016 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef RESOURCES_SKILLTYPEENTRY_H +#define RESOURCES_SKILLTYPEENTRY_H + +#include "enums/resources/skilltype.h" + +#include "localconsts.h" + +struct SkillTypeEntry final +{ + const SkillType::SkillType type; + const char *const name; +}; + +#endif // RESOURCES_SKILLTYPEENTRY_H diff --git a/src/resources/skilltypelist.h b/src/resources/skilltypelist.h new file mode 100644 index 000000000..d342b2a6e --- /dev/null +++ b/src/resources/skilltypelist.h @@ -0,0 +1,48 @@ +/* + * The ManaPlus Client + * Copyright (C) 2016 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef RESOURCES_SKILLTYPELIST_H +#define RESOURCES_SKILLTYPELIST_H + +#include "utils/gettext.h" + +#include "resources/skilltypeentry.h" + +#include "localconsts.h" + +const size_t skillTypeListSize = 6; + +SkillTypeEntry skillTypeList[skillTypeListSize] = +{ + // TRANSLATORS: Skill type + { SkillType::Attack, _("Attack") }, + // TRANSLATORS: Skill type + { SkillType::Ground, _("Ground") }, + // TRANSLATORS: Skill type + { SkillType::Self, _("Self") }, + // TRANSLATORS: Skill type + { SkillType::Unused, _("Unused") }, + // TRANSLATORS: Skill type + { SkillType::Support, _("Support") }, + // TRANSLATORS: Skill type + { SkillType::TargetTrap, _("TargetTrap") } +}; + +#endif // RESOURCES_SKILLTYPELIST_H -- cgit v1.2.3-60-g2f50