Photon——Base Applications 基本应用程序
Base Applications 基本应用程序
The Photon Server SDK includes several applications that should provide a good starting point for your own development. What each SDK does and for which game-style it might be a useful basis is described below.
以下是Photon服务器SDk包含的内置应用程序,可以作为你的应用的开始点。
Lite
The Lite Application is probably the most often referenced application. It implements the basic framework for room based games in which players gets together to play a match in a small group. Each room reflects a game and is identified by its name. Anyone connected can join and leave without restriction. Inside a room any client can raise events to send data across to the others. Properties can be set for rooms and actors to keep certain values available for everyone joining.
Lite 是一个最常引用的应用,它实现了一个多玩家一起竞赛的房间游戏的基本框架,通过名称确定每个房间,一个房间就是一个游戏,任何人都可以不受限制的加入或离开,在房间内任何客户端都可以触发事件去发送数据给别人,可以为房间和玩家设置属性来确保进入的玩家有准确可用的值
Games, which don’t need an authoritative server, can be built on top of Lite without modifications.
所有游戏,不需要一个权威的服务器,可以建立在Lite之上并且不需要修改它
This application can easily be extended with server-side logic per room. Matchmaking could group players in rooms, depending on your game’s requirements.
这个应用可以容易的扩展服务器端的逻辑,根据你的游戏需求匹配一组玩家到房间里
Lite Lobby
The Lite Lobby Application is an example of how to build on top of Lite and extend its functionality. Lite Lobby adds new types of rooms: Lobbies. These won’t send join/leave events but list currently used room names. The player (or client code) can easily chose from running games. The count of users in a room is provided additionally.
Lite Lobby是一个在Lite之上建立并扩展功能的例子,它添加了新的房间类型:大厅。这里不会发送加入或离开事件,只是当前可用的房间名称列表。玩家可以很容易的选择正在进行的游戏,房间中玩家的数量是可供增加的
This application adds “manual matchmaking” to Lite and could also be a basis for your game.
这个应用增加了手动匹配
MMO
The MMO Demo Application is a good solution for games where all players share a large world. It provides interest management and the most common base classes for items, actors, properties, and more.
MMO样例程序是一个为玩家们分享一个大型世界的游戏解决方案,它提供了兴趣管理和最常见的类型,比如物品、玩家、属性等等
Games with a shared world contain more game-specific logic on the server side typically, so this application should be understood as a sound starting point.
这游戏是一个在服务端包含了更多的游戏逻辑的分享的世界,这个应用被认为是一个合理的开始点
Policy
The Policy Application runs on Photon to send the crossdomain.xml to web player platforms (e.g. Unity Web Player). Flash and Silverlight request an authorization before they contact a server.
Policy应用运行在Photon上用于发送crossdomain.xml到web player平台。Flash 和 Silverlight在连接一个服务器之前需要请求一个授权
It has its own page in the DevNet: Policy Application
它有自己的页面在DevNet上
Counter Publisher
This application reads and forwards local PerfMon counters of Photon Core to the Dashboard. It does not interfere with other applications, and clients should not connect to it.
这个应用读取本地的PerfMon计数器到Dashboard。它不会影响其他应用程序,客户端也不要去连接它