mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-21 17:45:25 -04:00
d40e360b8a
* 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.
32 lines
764 B
C++
32 lines
764 B
C++
/*
|
|
* GDevelop Core
|
|
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights
|
|
* reserved. This project is released under the MIT License.
|
|
*/
|
|
#include <iostream>
|
|
#include "GDCore/String.h"
|
|
|
|
namespace gd {
|
|
|
|
void GD_CORE_API LogWarning(const gd::String& msg) {
|
|
std::cout << "WARNING: " << msg << std::endl;
|
|
}
|
|
|
|
void GD_CORE_API LogError(const gd::String& msg) {
|
|
std::cout << "ERROR: " << msg << std::endl;
|
|
}
|
|
|
|
void GD_CORE_API LogFatalError(const gd::String& msg) {
|
|
std::cout << "FATAL ERROR: " << msg << std::endl;
|
|
}
|
|
|
|
void GD_CORE_API LogMessage(const gd::String& msg) {
|
|
std::cout << "MESSAGE: " << msg << std::endl;
|
|
}
|
|
|
|
void GD_CORE_API LogStatus(const gd::String& msg) {
|
|
std::cout << "STATUS: " << msg << std::endl;
|
|
}
|
|
|
|
} // namespace gd
|