Files
GDevelop/Extensions/LinkedObjects/LinkedObjectsTools.h
Florian Rival a8559bfbbc Add clang-format to format (C++) source files automatically (#491)
* Update all CMakeLists of extensions to use clang-format
* Run clang-format on all Extensions
* Update GDCore CMakeLists.txt to add clang-format
* Run clang-format on GDCore files
* Update GDJS and GDCpp CMakeLists.txt to add clang-format
* Run clang-format on GDCpp and GDJS files
2018-05-09 15:57:38 -07:00

39 lines
1.1 KiB
C++

/**
GDevelop - LinkedObjects Extension
Copyright (c) 2011-2013 Florian Rival (Florian.Rival@gmail.com)
This project is released under the MIT License.
*/
#ifndef LINKEDOBJECTSTOOLS_H_INCLUDED
#define LINKEDOBJECTSTOOLS_H_INCLUDED
#include <map>
#include <string>
#include <vector>
#include "GDCpp/Runtime/String.h"
class RuntimeObject;
class RuntimeScene;
namespace GDpriv {
namespace LinkedObjects {
void GD_EXTENSION_API LinkObjects(RuntimeScene &scene,
RuntimeObject *a,
RuntimeObject *b);
void GD_EXTENSION_API RemoveLinkBetween(RuntimeScene &scene,
RuntimeObject *a,
RuntimeObject *b);
void GD_EXTENSION_API RemoveAllLinksOf(RuntimeScene &scene,
RuntimeObject *object);
bool GD_EXTENSION_API PickObjectsLinkedTo(
RuntimeScene &scene,
std::map<gd::String, std::vector<RuntimeObject *> *> pickedObjectsLists,
RuntimeObject *object);
} // namespace LinkedObjects
} // namespace GDpriv
#endif // LINKEDOBJECTSTOOLS_H_INCLUDED