mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00

- Global or scene variables can be used with a unique action and condition. - Object variables can be used with a unique action and condition. - Variables need to be declared following the same logic as the new expression syntax. - Local variable can be declared on events - Extensions have their own variables - Show a diagnostic report when a preview is launched and there are missing scene variables, object variables or behaviors. - This is especially useful if external events are shared between several scenes.
50 lines
1.8 KiB
C++
50 lines
1.8 KiB
C++
/*
|
|
* GDevelop Core
|
|
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights
|
|
* reserved. This project is released under the MIT License.
|
|
*/
|
|
#include "EventBasedBehaviorBrowser.h"
|
|
|
|
#include "GDCore/IDE/Events/ArbitraryEventsWorker.h"
|
|
#include "GDCore/IDE/Project/ArbitraryEventBasedBehaviorsWorker.h"
|
|
#include "GDCore/IDE/Project/ArbitraryEventsFunctionsWorker.h"
|
|
#include "GDCore/IDE/Project/ArbitraryObjectsWorker.h"
|
|
#include "GDCore/IDE/Project/ArbitraryBehaviorSharedDataWorker.h"
|
|
#include "GDCore/IDE/ProjectBrowserHelper.h"
|
|
#include "GDCore/Project/EventsBasedBehavior.h"
|
|
#include "GDCore/Project/Project.h"
|
|
#include "GDCore/String.h"
|
|
|
|
namespace gd {
|
|
|
|
void EventBasedBehaviorBrowser::ExposeEvents(
|
|
gd::Project &project, gd::ArbitraryEventsWorker &worker) const {
|
|
gd::ProjectBrowserHelper::ExposeEventsBasedBehaviorEvents(
|
|
project, eventsBasedBehavior, worker);
|
|
}
|
|
|
|
void EventBasedBehaviorBrowser::ExposeEvents(
|
|
gd::Project &project, gd::ArbitraryEventsWorkerWithContext &worker) const {
|
|
gd::ProjectBrowserHelper::ExposeEventsBasedBehaviorEvents(
|
|
project, eventsFunctionsExtension, eventsBasedBehavior, worker);
|
|
}
|
|
|
|
void EventBasedBehaviorBrowser::ExposeObjects(
|
|
gd::Project &project, gd::ArbitraryObjectsWorker &worker) const {}
|
|
|
|
void EventBasedBehaviorBrowser::ExposeFunctions(
|
|
gd::Project &project, gd::ArbitraryEventsFunctionsWorker &worker) const {
|
|
worker.Launch(eventsBasedBehavior.GetEventsFunctions());
|
|
}
|
|
|
|
void EventBasedBehaviorBrowser::ExposeEventBasedBehaviors(
|
|
gd::Project &project,
|
|
gd::ArbitraryEventBasedBehaviorsWorker &worker) const {
|
|
worker.Launch(eventsBasedBehavior);
|
|
}
|
|
|
|
void EventBasedBehaviorBrowser::ExposeBehaviorSharedDatas(
|
|
gd::Project &project, gd::ArbitraryBehaviorSharedDataWorker &worker) const {}
|
|
|
|
} // namespace gd
|