mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-07 22:56:30 -10:00
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.
25 lines
486 B
C++
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
|