mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-06-22 09:45:42 +00:00
Update UIScene_InGameHostOptionsMenu
Thanks Hinder
This commit is contained in:
28
Minecraft.World/Difficulty.cpp
Normal file
28
Minecraft.World/Difficulty.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#include "Difficulty.h"
|
||||
|
||||
int Difficulty::getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
std::wstring Difficulty::getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
int Difficulty::byId(int id)
|
||||
{
|
||||
switch (id)
|
||||
{
|
||||
case 0:
|
||||
return PEACEFUL;
|
||||
|
||||
case 1:
|
||||
return EASY;
|
||||
|
||||
case 3:
|
||||
return HARD;
|
||||
}
|
||||
|
||||
return NORMAL;
|
||||
}
|
||||
Reference in New Issue
Block a user