Skip to content

Commit e12b094

Browse files
committed
feat: update version
1 parent dc2d1ed commit e12b094

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1836
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Bug Report
2+
description: Create a report to help us improve
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: Describe the bug
9+
description: A clear and concise description of what the bug is.
10+
validations:
11+
required: true
12+
13+
- type: textarea
14+
attributes:
15+
label: To Reproduce
16+
description: Steps to reproduce the behavior.
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
attributes:
22+
label: Expected behavior
23+
description: A clear and concise description of what you expected to happen.
24+
validations:
25+
required: true
26+
27+
- type: textarea
28+
attributes:
29+
label: Screenshots
30+
description: If applicable, add screenshots to help explain your problem.
31+
32+
- type: input
33+
attributes:
34+
label: Platform
35+
description: The platform you are using. (e.g. Windows 10)
36+
37+
- type: input
38+
attributes:
39+
label: BDS Version
40+
description: The version of BDS you are using. (e.g. 1.20.32.1)
41+
42+
- type: input
43+
attributes:
44+
label: LeviLamina Version
45+
description: The version of LeviLamina you are using. (e.g. 1.0.0)
46+
47+
- type: input
48+
attributes:
49+
label: ModAPI Version
50+
description: The version of the ModAPI you are using. (e.g. 1.0.0)
51+
52+
- type: textarea
53+
attributes:
54+
label: Additional context
55+
description: Add any other context about the problem here.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
title: "[Feature]: "
4+
labels: ["enhancement"]
5+
body:
6+
- type: textarea
7+
attributes:
8+
label: Is your feature request related to a problem? Please describe.
9+
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10+
validations:
11+
required: true
12+
13+
- type: textarea
14+
attributes:
15+
label: Describe the solution you'd like
16+
description: A clear and concise description of what you want to happen.
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
attributes:
22+
label: Describe alternatives you've considered
23+
description: A clear and concise description of any alternative solutions or features you've considered.
24+
25+
- type: textarea
26+
attributes:
27+
label: Additional context
28+
description: Add any other context or screenshots about the feature request here.

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
## [0.1.0] - 2025-10-04
11+
12+
### Added
13+
14+
- Complete the separation of the ModAPI library @zimuya4153
15+
16+
### Changed
17+
18+
- Refactor the worldgen api @killcerr
19+
20+
[Unreleased]: http://github.com/GroupMountain/ModAPI-Release/compare/v0.1.0...HEAD
21+
[0.1.0]: http://github.com/GroupMountain/ModAPI-Release/releases/tag/v0.1.0

bin/dll/ModAPI/ModAPI.dll

946 KB
Binary file not shown.

bin/dll/ModAPI/manifest.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"author": "GroupMountain",
3+
"description": "Group Mountain Mod API",
4+
"entry": "ModAPI.dll",
5+
"name": "ModAPI",
6+
"passive": true,
7+
"type": "native",
8+
"version": "0.1.0+1b45a83"
9+
}

bin/pdb/ModAPI.pdb

15.7 MB
Binary file not shown.

bin/sdk/include/modapi/Macros.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#pragma once
2+
#include <ll/api/base/CompilerPredefine.h>
3+
4+
#ifdef MODAPI_EXPORTS
5+
#define MOD_API [[maybe_unused]] LL_SHARED_EXPORT
6+
#else
7+
#define MOD_API [[maybe_unused]] LL_SHARED_IMPORT
8+
#endif
9+
10+
#define MOD_NDAPI [[nodiscard]] MOD_API
11+
12+
#define MOD_CAPI extern "C" MOD_API
13+
#define MOD_NDCAPI [[nodiscard]] MOD_CAPI

bin/sdk/include/modapi/Version.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#pragma once
2+
3+
// clang-format off
4+
#define MODAPI_VERSION_MAJOR 0
5+
#define MODAPI_VERSION_MINOR 1
6+
#define MODAPI_VERSION_PATCH 0
7+
/* #undef MODAPI_VERSION_PRERELEASE */
8+
#define MODAPI_VERSION_COMMIT_SHA 1b45a83
9+
// clang-format on
10+
11+
#define MODAPI_VERSION_TO_STRING_INNER(ver) #ver
12+
#define MODAPI_VERSION_TO_STRING(ver) MODAPI_VERSION_TO_STRING_INNER(ver)
13+
14+
#ifdef MODAPI_VERSION_PRERELEASE
15+
#define MODAPI_FILE_VERSION_FLAG VS_FF_DEBUG
16+
#define MODAPI_FILE_VERSION_STRING \
17+
MODAPI_VERSION_TO_STRING(MODAPI_VERSION_MAJOR) \
18+
"." MODAPI_VERSION_TO_STRING(MODAPI_VERSION_MINOR) "." MODAPI_VERSION_TO_STRING(MODAPI_VERSION_PATCH \
19+
) "-" MODAPI_VERSION_PRERELEASE "+" MODAPI_VERSION_TO_STRING(MODAPI_VERSION_COMMIT_SHA)
20+
#else
21+
#define MODAPI_FILE_VERSION_FLAG 0x00000000L
22+
#define MODAPI_FILE_VERSION_STRING \
23+
MODAPI_VERSION_TO_STRING(MODAPI_VERSION_MAJOR) \
24+
"." MODAPI_VERSION_TO_STRING(MODAPI_VERSION_MINOR) "." MODAPI_VERSION_TO_STRING(MODAPI_VERSION_PATCH \
25+
) "+" MODAPI_VERSION_TO_STRING(MODAPI_VERSION_COMMIT_SHA)
26+
#endif
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#pragma once
2+
#include "modapi/Macros.h"
3+
#include <filesystem>
4+
#include <mc/deps/core/resource/PackType.h>
5+
6+
class ResourcePackRepository;
7+
8+
namespace modapi::inline addons {
9+
10+
class AddonsLoader {
11+
private:
12+
struct Impl;
13+
std::unique_ptr<Impl> pImpl;
14+
AddonsLoader();
15+
~AddonsLoader();
16+
17+
public:
18+
MOD_API static AddonsLoader& getInstance();
19+
20+
MOD_API void addCustomPackPath(std::filesystem::path const& path);
21+
MOD_API void setCustomPackPath(ResourcePackRepository& repo, std::filesystem::path const& path, PackType type);
22+
};
23+
24+
} // namespace modapi::inline addons
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#pragma once
2+
#include "modapi/block/base/ICustomBlock.h"

0 commit comments

Comments
 (0)