Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
luau_package.h File Reference
#include <cstdint>
#include <expected>
#include <map>
#include <span>
#include <string>
#include <string_view>
#include <vector>
#include "core/aliases.h"
#include "script/luau_type_check.h"
#include "script/script_value.h"
Include dependency graph for luau_package.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bicameral::script::PackageSource
struct  bicameral::script::PackageLoadOptions
struct  bicameral::script::PackageRejection
struct  bicameral::script::TableOverride
struct  bicameral::script::TableEntry
struct  bicameral::script::PackageSetResult

Namespaces

namespace  bicameral
namespace  bicameral::script

Enumerations

enum class  bicameral::script::MergeMode : uint8_t { bicameral::script::AddOnly , bicameral::script::OverrideMarked , bicameral::script::Override }

Functions

std::expected< PackageSource, std::string > bicameral::script::ReadPackageFolder (const fs::path &folder)
std::expected< std::vector< PackageSource >, std::string > bicameral::script::ReadPackageRoot (const fs::path &root)
std::expected< PackageSetResult, std::string > bicameral::script::LoadPackages (LuauSandbox &sandbox, std::span< const PackageSource > packages, const PackageLoadOptions &options)
std::string bicameral::script::TableBytes (const PackageSetResult &result)
uint64_t bicameral::script::TableVersion (const PackageSetResult &result)
bool bicameral::script::IsValidPackageName (std::string_view name)
std::expected< std::string, std::string > bicameral::script::PackageModulePath (std::string_view name)

Variables

constexpr int64_t bicameral::script::PACKAGE_FORMAT_VERSION = 1