2017-10-02 21:24:00 +00:00
|
|
|
/*************************************************************************/
|
2018-11-08 00:05:19 +00:00
|
|
|
/* dotnet_solution.h */
|
2017-10-02 21:24:00 +00:00
|
|
|
/*************************************************************************/
|
|
|
|
/* This file is part of: */
|
|
|
|
/* GODOT ENGINE */
|
|
|
|
/* https://godotengine.org */
|
|
|
|
/*************************************************************************/
|
2019-01-01 11:53:14 +00:00
|
|
|
/* Copyright (c) 2007-2019 Juan Linietsky, Ariel Manzur. */
|
|
|
|
/* Copyright (c) 2014-2019 Godot Engine contributors (cf. AUTHORS.md) */
|
2017-10-02 21:24:00 +00:00
|
|
|
/* */
|
|
|
|
/* Permission is hereby granted, free of charge, to any person obtaining */
|
|
|
|
/* a copy of this software and associated documentation files (the */
|
|
|
|
/* "Software"), to deal in the Software without restriction, including */
|
|
|
|
/* without limitation the rights to use, copy, modify, merge, publish, */
|
|
|
|
/* distribute, sublicense, and/or sell copies of the Software, and to */
|
|
|
|
/* permit persons to whom the Software is furnished to do so, subject to */
|
|
|
|
/* the following conditions: */
|
|
|
|
/* */
|
|
|
|
/* The above copyright notice and this permission notice shall be */
|
|
|
|
/* included in all copies or substantial portions of the Software. */
|
|
|
|
/* */
|
|
|
|
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
|
|
|
|
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
|
|
|
|
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
|
|
|
|
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
|
|
|
|
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
|
|
|
|
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
|
|
|
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
|
|
/*************************************************************************/
|
2018-01-04 23:50:27 +00:00
|
|
|
|
2017-10-02 21:24:00 +00:00
|
|
|
#ifndef NET_SOLUTION_H
|
|
|
|
#define NET_SOLUTION_H
|
|
|
|
|
2018-09-11 16:13:45 +00:00
|
|
|
#include "core/map.h"
|
|
|
|
#include "core/ustring.h"
|
2017-10-02 21:24:00 +00:00
|
|
|
|
2018-11-08 00:05:19 +00:00
|
|
|
struct DotNetSolution {
|
2017-10-02 21:24:00 +00:00
|
|
|
String name;
|
|
|
|
|
2018-11-08 00:05:19 +00:00
|
|
|
struct ProjectInfo {
|
|
|
|
String guid;
|
|
|
|
String relpath; // Must be relative to the solution directory
|
|
|
|
Vector<String> configs;
|
|
|
|
};
|
|
|
|
|
|
|
|
void add_new_project(const String &p_name, const ProjectInfo &p_project_info);
|
|
|
|
bool has_project(const String &p_name) const;
|
|
|
|
const ProjectInfo &get_project_info(const String &p_name) const;
|
|
|
|
bool remove_project(const String &p_name);
|
2017-10-02 21:24:00 +00:00
|
|
|
|
|
|
|
Error save();
|
|
|
|
|
|
|
|
bool set_path(const String &p_existing_path);
|
2018-11-08 00:05:19 +00:00
|
|
|
String get_path();
|
2017-10-02 21:24:00 +00:00
|
|
|
|
2018-11-08 00:05:19 +00:00
|
|
|
DotNetSolution(const String &p_name);
|
2017-10-02 21:24:00 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
String path;
|
|
|
|
Map<String, ProjectInfo> projects;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // NET_SOLUTION_H
|