-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/// <reference path="../index.d.ts"/> | ||
|
||
declare class ColorFormat { | ||
static get Escape(): string; | ||
static get Black(): string; | ||
static get DarkBlue(): string; | ||
static get DarkGreen(): string; | ||
static get DarkAqua(): string; | ||
static get DarkRed(): string; | ||
static get DarkPurple(): string; | ||
static get Gold(): string; | ||
static get Gray(): string; | ||
static get DarkGray(): string; | ||
static get Blue(): string; | ||
static get Green(): string; | ||
static get Aqua(): string; | ||
static get Red(): string; | ||
static get LightPurple(): string; | ||
static get Yellow(): string; | ||
static get White(): string; | ||
static get MinecoinGold(): string; | ||
static get MaterialQuartz(): string; | ||
static get MaterialIron(): string; | ||
static get MaterialNetherite(): string; | ||
static get MaterialRedstone(): string; | ||
static get MaterialCopper(): string; | ||
static get MaterialGold(): string; | ||
static get MaterialEmerald(): string; | ||
static get MaterialDiamond(): string; | ||
static get MaterialLapis(): string; | ||
static get MaterialAmethyst(): string; | ||
static get MaterialResin(): string; | ||
static get Obfuscated(): string; | ||
static get Bold(): string; | ||
static get Italic(): string; | ||
static get Reset(): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#include "api/ColorFormatAPI.h" | ||
#include "endstone/color_format.h" | ||
#include "utils/Convert.h" | ||
#include "utils/Using.h" | ||
|
||
namespace jse { | ||
|
||
|
||
ClassDefine<void> ColorFormatAPI::builder = | ||
defineClass("ColorFormat") | ||
.property("Escape", []() { return ConvertToScriptX(endstone::ColorFormat::Escape); }) | ||
.property("Black", []() { return ConvertToScriptX(endstone::ColorFormat::Black); }) | ||
.property("DarkBlue", []() { return ConvertToScriptX(endstone::ColorFormat::DarkBlue); }) | ||
.property("DarkGreen", []() { return ConvertToScriptX(endstone::ColorFormat::DarkGreen); }) | ||
.property("DarkAqua", []() { return ConvertToScriptX(endstone::ColorFormat::DarkAqua); }) | ||
.property("DarkRed", []() { return ConvertToScriptX(endstone::ColorFormat::DarkRed); }) | ||
.property("DarkPurple", []() { return ConvertToScriptX(endstone::ColorFormat::DarkPurple); }) | ||
.property("Gold", []() { return ConvertToScriptX(endstone::ColorFormat::Gold); }) | ||
.property("Gray", []() { return ConvertToScriptX(endstone::ColorFormat::Gray); }) | ||
.property("DarkGray", []() { return ConvertToScriptX(endstone::ColorFormat::DarkGray); }) | ||
.property("Blue", []() { return ConvertToScriptX(endstone::ColorFormat::Blue); }) | ||
.property("Green", []() { return ConvertToScriptX(endstone::ColorFormat::Green); }) | ||
.property("Aqua", []() { return ConvertToScriptX(endstone::ColorFormat::Aqua); }) | ||
.property("Red", []() { return ConvertToScriptX(endstone::ColorFormat::Red); }) | ||
.property("LightPurple", []() { return ConvertToScriptX(endstone::ColorFormat::LightPurple); }) | ||
.property("Yellow", []() { return ConvertToScriptX(endstone::ColorFormat::Yellow); }) | ||
.property("White", []() { return ConvertToScriptX(endstone::ColorFormat::White); }) | ||
.property("MinecoinGold", []() { return ConvertToScriptX(endstone::ColorFormat::MinecoinGold); }) | ||
.property("MaterialQuartz", []() { return ConvertToScriptX(endstone::ColorFormat::MaterialQuartz); }) | ||
.property("MaterialIron", []() { return ConvertToScriptX(endstone::ColorFormat::MaterialIron); }) | ||
.property("MaterialNetherite", []() { return ConvertToScriptX(endstone::ColorFormat::MaterialNetherite); }) | ||
.property("MaterialRedstone", []() { return ConvertToScriptX(endstone::ColorFormat::MaterialRedstone); }) | ||
.property("MaterialCopper", []() { return ConvertToScriptX(endstone::ColorFormat::MaterialCopper); }) | ||
.property("MaterialGold", []() { return ConvertToScriptX(endstone::ColorFormat::MaterialGold); }) | ||
.property("MaterialEmerald", []() { return ConvertToScriptX(endstone::ColorFormat::MaterialEmerald); }) | ||
.property("MaterialDiamond", []() { return ConvertToScriptX(endstone::ColorFormat::MaterialDiamond); }) | ||
.property("MaterialLapis", []() { return ConvertToScriptX(endstone::ColorFormat::MaterialLapis); }) | ||
.property("MaterialAmethyst", []() { return ConvertToScriptX(endstone::ColorFormat::MaterialAmethyst); }) | ||
.property("MaterialResin", []() { return ConvertToScriptX(endstone::ColorFormat::MaterialResin); }) | ||
.property("Obfuscated", []() { return ConvertToScriptX(endstone::ColorFormat::Obfuscated); }) | ||
.property("Bold", []() { return ConvertToScriptX(endstone::ColorFormat::Bold); }) | ||
.property("Italic", []() { return ConvertToScriptX(endstone::ColorFormat::Italic); }) | ||
.property("Reset", []() { return ConvertToScriptX(endstone::ColorFormat::Reset); }) | ||
.build(); | ||
|
||
|
||
} // namespace jse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#pragma once | ||
#include "utils/Using.h" | ||
|
||
namespace jse { | ||
|
||
|
||
class ColorFormatAPI { | ||
public: | ||
static ClassDefine<void> builder; | ||
}; | ||
|
||
|
||
} // namespace jse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters