DragonNest/Common/Utility/MultiCommon.h
Cussrro 47f7895977 Revert "修复编码问题"
This reverts commit 9e69c01767.
2024-12-21 10:04:04 +08:00

17 lines
391 B
C

#pragma once
#define MAX_SESSION_COUNT 1200
#define STATIC_DECL( type ) \
static type[MAX_SESSION_COUNT]
#define STATIC_INSTANCE( type ) \
type[ GetRoom()->GetRoomID() ]
//type[ GetRoom()->GetSessionID() ]
#define STATIC_INSTANCE_( type ) \
type[ pRoom->GetRoomID() ]
//type[ pRoom->GetSessionID() ]
#define STATIC_DECL_INIT( cls, type, val ) \
type cls::##val[MAX_SESSION_COUNT]