备份CatanBuilding瘦身独立工程
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
namespace com.fpnn.rtm
|
||||
{
|
||||
public class MidGenerator
|
||||
{
|
||||
static private ushort order = 0;
|
||||
static private object interLocker = new object();
|
||||
|
||||
static public long Gen()
|
||||
{
|
||||
long baseId = ClientEngine.GetCurrentMilliseconds() << 16;
|
||||
|
||||
lock (interLocker)
|
||||
{
|
||||
return baseId + ++order;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user