萝卜说 - 罗布乐思 - 口袋核心

查看: 1025|回复: 1

[讨论] 游戏服务器都有哪几种类型?

[复制链接]

0

收听

0

听众

40

帖子

正式用户

Rank: 1

萝卜币
88
发表于 2021-7-2 16:31:32 | 显示全部楼层 |阅读模式
游戏服务器分为以下3种类型:
    普通服务器(Standard Server) - 点击游戏后进入到的服务器VIP服务器(VIP Server) - 玩家通过在游戏页面付费(也有免费的)创建的私人服务器预留服务器(Reserved Server) - 开发者通过调用ReserveServer API而创建的私人服务器
开发者可以通过以下代码判断服务器的类型:
local function getServerType()
    if game.PrivateServerId ~= "" then
        if game.PrivateServerOwnerId ~= 0 then
          return "VIPServer"
        else
          return "ReservedServer"
        end
    else
        return "StandardServer"
    end
end
回复

使用道具 举报

24

收听

11

听众

405

帖子

超级版主

Rank: 8Rank: 8

萝卜币
1249
发表于 2021-7-3 16:50:59 | 显示全部楼层
太深奥了,我去问问其他大神
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋| |京公网安备11010502045240号

Copyright © 2001-2013 Comsenz Inc.   All Rights Reserved.

Powered by Discuz! X3.4  备案:京ICP备2021013067号-2

快速回复 返回顶部 返回列表