mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-26 17:13:50 +00:00
Initial commit
This commit is contained in:
parent
def8cb4153
commit
b691c43c44
19437 changed files with 4363922 additions and 0 deletions
21
Minecraft.World/GrassColor.cpp
Normal file
21
Minecraft.World/GrassColor.cpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#include "stdafx.h"
|
||||
#include "GrassColor.h"
|
||||
|
||||
// 4J Stu - Don't want to do this any more
|
||||
//intArray GrassColor::pixels;
|
||||
//
|
||||
//void GrassColor::init(intArray pixels)
|
||||
//{
|
||||
// int *oldData = GrassColor::pixels.data;
|
||||
// GrassColor::pixels = pixels;
|
||||
// delete [] oldData;
|
||||
//}
|
||||
//
|
||||
//int GrassColor::get(double temp, double rain)
|
||||
//{
|
||||
// rain *= temp;
|
||||
// int x = (int) ((1 - temp) * 255);
|
||||
// int y = (int) ((1 - rain) * 255);
|
||||
// int returnVal = pixels[y << 8 | x];
|
||||
// return returnVal;
|
||||
//}
|
||||
Loading…
Add table
Add a link
Reference in a new issue