Start the process of standardizing the formatting of documentation inside our header files.
This commit is contained in:
@@ -1,37 +1,50 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Common.h
|
||||
//
|
||||
// Simple data types used throughout the Unreal
|
||||
// interface to Luprex: type aliases, blueprint
|
||||
// enums for branching, and log categories.
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string_view>
|
||||
|
||||
#include "Common.generated.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// A bunch of simple data types that are used throughout the
|
||||
// unreal interface to Luprex.
|
||||
// LpxCommonTypes
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Type aliases used throughout the integration.
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
namespace LpxCommonTypes {
|
||||
// Array of tangible IDs.
|
||||
//
|
||||
using IdArray = TArray<int64>;
|
||||
|
||||
// View of Array of tangible IDs.
|
||||
//
|
||||
using IdView = TArrayView<const int64>;
|
||||
|
||||
// Array of std::string_view
|
||||
// Array of std::string_view.
|
||||
//
|
||||
using StringViewVec = TArray<std::string_view>;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Luprex exports a header-only library called "base-buffer.hpp",
|
||||
// which includes a "struct LuaValueHolder" which contains a tag
|
||||
// field of type "enum LuaValueType." The following enum is a
|
||||
// direct copy of that enum, and the values must match one-for-one.
|
||||
// Note that "token" has been renamed to "name", those are
|
||||
// synonymous.
|
||||
// ElxLuaValueType
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Mirror of LuaValueType from base-buffer.hpp.
|
||||
// Values must match one-for-one. Note that "token"
|
||||
// has been renamed to "name" (synonymous).
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
UENUM(BlueprintType)
|
||||
enum class ElxLuaValueType : uint8 {
|
||||
@@ -43,13 +56,14 @@ enum class ElxLuaValueType : uint8 {
|
||||
Vector
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// A variety of boolean-like results that can be conveniently
|
||||
// be used in conjunction with 'ExpandEnumAsExecs' to create
|
||||
// branching functions.
|
||||
// Branching Enums
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// Boolean-like results used with ExpandEnumAsExecs
|
||||
// to create branching blueprint functions.
|
||||
//
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
UENUM(BlueprintType)
|
||||
enum class ElxSuccessOrError : uint8 {
|
||||
@@ -81,16 +95,16 @@ enum class ElxSuccessOrWrongType : uint8 {
|
||||
WrongType,
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Two log categories that are used throughout the Unreal
|
||||
// Luprex integration.
|
||||
// Log Categories
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
// Messages that come from inside the Luprex Core.
|
||||
// Messages from inside the Luprex Core.
|
||||
//
|
||||
DECLARE_LOG_CATEGORY_EXTERN(LogLuprex, Display, All);
|
||||
|
||||
// Messages that pertain to our Luprex integration with Unreal.
|
||||
// Messages about the Luprex integration with Unreal.
|
||||
//
|
||||
DECLARE_LOG_CATEGORY_EXTERN(LogLuprexIntegration, Display, All);
|
||||
|
||||
Reference in New Issue
Block a user