mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Got aetheryte map and completed quest work values... working.
This commit is contained in:
parent
a2c4d077e9
commit
306f4ef346
11 changed files with 546 additions and 382 deletions
|
@ -255,6 +255,26 @@ namespace Meteor.Common
|
|||
return data;
|
||||
}
|
||||
|
||||
public static bool[] ConvertBinaryStreamToBoolArray(byte[] bytes)
|
||||
{
|
||||
bool[] data = new bool[bytes.Length * 8];
|
||||
|
||||
int boolCounter = 0;
|
||||
for (int i = 0; i < bytes.Length; i ++)
|
||||
{
|
||||
if (bytes[i] == 0)
|
||||
{
|
||||
boolCounter += 8;
|
||||
continue;
|
||||
}
|
||||
|
||||
for (int bitCount = 0; bitCount < 8; bitCount++)
|
||||
data[boolCounter++] = (bytes[i] >> bitCount & 1) == 1;
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
public static string ToStringBase63(int number)
|
||||
{
|
||||
var lookup = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue