在线游戏最新服务器端源代码
源代码在线查看: room.gml
#define TB9
#define TB16
.t_name:text{
font=黑体,8,16,800;
anti=1;
degree=450;
align=center,center;
clip=0;
OnCreate={};
}
.t_info:text{
color=#FFFF88;
align=center,center;
showstyle=3;
clip=0;
}
.table:img{
pid=*pid.map;
autozorder=1;
pid.cache=1;
anishow=1;
automask=1;
src=$.\imgs\table_91.ale;
mode="空";
ifchged(mode)={};
OnPos={};
OnIn={};
OnFull={};
OnEmpty={};
OnIngame={ regstr($[type])=$[name]>};
// };
OnIngame#2=openGmlWnd(pmyid,ingml,nick,740,580);
OnMode={ case -1:pmode.src=旁观;pman.pmode.src=旁观;break;
default:pmode.src=$[nick]$[ep]号台;pman.pmode.src=$[ep]号台;break;
}>};
OnData={};
// OnLButtonDblClk={};
OnLButtonDown={};
OnRButtonDown={};
// OnLButtonUp={};
// OnLButtonDown={
//
// }
OnMouseOver={};
OnmouseOut={};
}
.table9:table{
type="九球";
ingml=$.\\9\\main.gml;
OnCreate#s={
};
}
.table16:table{
type="十六球";
ingml=$.\\16\\main.gml;
OnCreate#s={
};
}
#define PORT 10200
#define MAP_NAME $.\..\..\maps\billiards_r.gml
#define USER $.\..\..\common\defuser.gml