Files
asarium f63e18957b Add scripting API for manipulating mission background
This adds a scripting API which can be used for adding and removing
background from a mission similarly to the existing SEXPs but with full
support for floating point numbers.

This was requested by Axem on Discord.
2018-06-30 23:22:07 +02:00

25 lines
486 B
C++

#pragma once
#include "object/object.h"
#include "scripting/ade_api.h"
namespace scripting {
namespace api {
enum class BackgroundType { Invalid, Bitmap, Sun };
struct background_el_h {
background_el_h() = default;
explicit background_el_h(BackgroundType in_type, int in_id);
BackgroundType type = BackgroundType::Invalid;
int id = -1;
bool isValid() const;
};
DECLARE_ADE_OBJ(l_BackgroundElement, background_el_h);
} // namespace api
} // namespace scripting