mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 06:24:38 +02:00
Implemented actor instancing, as well as automatic name generation for NPCs.
This commit is contained in:
parent
541456bd8e
commit
62ed9b22f1
12 changed files with 278 additions and 82 deletions
|
@ -302,5 +302,15 @@ namespace FFXIVClassic_Lobby_Server.common
|
|||
return (value >> bits) | (value << (16 - bits));
|
||||
}
|
||||
|
||||
|
||||
public static string ToStringBase63(int number)
|
||||
{
|
||||
string lookup = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
|
||||
string secondDigit = lookup.Substring((int)Math.Floor((double)number / (double)lookup.Length), 1);
|
||||
string firstDigit = lookup.Substring(number % lookup.Length, 1);
|
||||
|
||||
return secondDigit + firstDigit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue