mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 06:23:37 +00:00
25 lines
720 B
C++
25 lines
720 B
C++
#include "../Platform/stdafx.h"
|
|
#include "../Headers/net.minecraft.world.scores.h"
|
|
#include "Objective.h"
|
|
|
|
Objective::Objective(Scoreboard* scoreboard, const std::wstring& name,
|
|
ObjectiveCriteria* criteria) {
|
|
this->scoreboard = scoreboard;
|
|
this->name = name;
|
|
this->criteria = criteria;
|
|
|
|
displayName = name;
|
|
}
|
|
|
|
Scoreboard* Objective::getScoreboard() { return scoreboard; }
|
|
|
|
std::wstring Objective::getName() { return name; }
|
|
|
|
ObjectiveCriteria* Objective::getCriteria() { return criteria; }
|
|
|
|
std::wstring Objective::getDisplayName() { return displayName; }
|
|
|
|
void Objective::setDisplayName(const std::wstring& name) {
|
|
displayName = name;
|
|
scoreboard->onObjectiveChanged(this);
|
|
} |