mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-05-26 12:44:36 +00:00
* Remove stdafx.h and some <unordered_set> includes * Update Minecraft Server Defines and remove more unused folders/files * Unbloat stdafx.h from Minecraft.World
37 lines
622 B
C++
37 lines
622 B
C++
#include "net.minecraft.world.scores.h"
|
|
#include "Objective.h"
|
|
|
|
Objective::Objective(Scoreboard *scoreboard, const wstring &name, ObjectiveCriteria *criteria)
|
|
{
|
|
this->scoreboard = scoreboard;
|
|
this->name = name;
|
|
this->criteria = criteria;
|
|
|
|
displayName = name;
|
|
}
|
|
|
|
Scoreboard *Objective::getScoreboard()
|
|
{
|
|
return scoreboard;
|
|
}
|
|
|
|
wstring Objective::getName()
|
|
{
|
|
return name;
|
|
}
|
|
|
|
ObjectiveCriteria *Objective::getCriteria()
|
|
{
|
|
return criteria;
|
|
}
|
|
|
|
wstring Objective::getDisplayName()
|
|
{
|
|
return displayName;
|
|
}
|
|
|
|
void Objective::setDisplayName(const wstring &name)
|
|
{
|
|
displayName = name;
|
|
scoreboard->onObjectiveChanged(this);
|
|
} |