the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 38 lines 642 B view raw
1#include "stdafx.h" 2#include "net.minecraft.world.scores.h" 3#include "Objective.h" 4 5Objective::Objective(Scoreboard *scoreboard, const wstring &name, ObjectiveCriteria *criteria) 6{ 7 this->scoreboard = scoreboard; 8 this->name = name; 9 this->criteria = criteria; 10 11 displayName = name; 12} 13 14Scoreboard *Objective::getScoreboard() 15{ 16 return scoreboard; 17} 18 19wstring Objective::getName() 20{ 21 return name; 22} 23 24ObjectiveCriteria *Objective::getCriteria() 25{ 26 return criteria; 27} 28 29wstring Objective::getDisplayName() 30{ 31 return displayName; 32} 33 34void Objective::setDisplayName(const wstring &name) 35{ 36 displayName = name; 37 scoreboard->onObjectiveChanged(this); 38}