Files
GDevelop/Core/GDCore/Tools/Log.h
D8H d40e360b8a Add support for behaviors based on other behaviors ("behavior composition") (#2781)
* This allows [custom behaviors](http://wiki.compilgames.net/doku.php/gdevelop5/behaviors/events-based-behaviors), that you can create in your project or get from extensions, to require the presence of one or multiple other behaviors on an object.
  * This is an advanced feature that is helpful to create behaviors that are based on other. For example, a behavior "Platformer enemy" using the "Platformer object" behavior and adding specific actions, conditions and logic to make an enemy chase the player.
  * If you create a behavior and want to use this, just go to the properties of this behavior and add a new property. Choose the type "Required Behavior" for this property. You can then use this new behavior in the events of the behavior you just edited.
* To use a behavior based on another, you don't need to do anything special! Just add it to your object as usual: any missing behavior will be added to your object, so you can start using it immediately.
2021-09-06 19:51:42 +01:00

46 lines
1.1 KiB
C++

/*
* GDevelop Core
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights
* reserved. This project is released under the MIT License.
*/
#ifndef GDCORE_LOG_H
#define GDCORE_LOG_H
#include <string>
#include "GDCore/String.h"
namespace gd {
/**
* \brief Standard function that should be used when emitting a warning to be
* displayed to the user.
*/
void GD_CORE_API LogWarning(const gd::String& msg);
/**
* \brief Standard function that should be used when emitting an error to be
* displayed to the user.
*/
void GD_CORE_API LogError(const gd::String& msg);
/**
* \brief Standard function that should be used when emitting an error to be
* displayed to the user before a crash/undefined behavior.
*/
void GD_CORE_API LogFatalError(const gd::String& msg);
/**
* \brief Standard function that should be used when emitting a message to be
* displayed to the user.
*/
void GD_CORE_API LogMessage(const gd::String& msg);
/**
* \brief Standard function that should be used when emitting a status message
* to be displayed to the user.
*/
void GD_CORE_API LogStatus(const gd::String& msg);
} // namespace gd
#endif // GDCORE_LOG_H