Difference between revisions of "Item schema/zh-hans"

From Team Fortress Wiki
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:物品大纲}} {{trans}} {{hatnote|For more in-depth technical documentation pertaining to the Steam Web API and GetSchema, see WebAPI.}} The '''item schem...")
 
 
Line 1: Line 1:
 
{{DISPLAYTITLE:物品大纲}}
 
{{DISPLAYTITLE:物品大纲}}
 
{{trans}}
 
{{trans}}
{{hatnote|For more in-depth technical documentation pertaining to the Steam Web API and GetSchema, see [[WebAPI]].}}
+
{{hatnote|有关Steam 网页 API和 GetSchema 的详细技术文档,请参见[[WebAPI/zh-hans|网页 API]]。}}
 +
 
 +
'''物品大纲(item schema)'''是《军团要塞 2》的资源<!--resource-->,它定义<!--defines-->了所有现有的物品和分配给它们的属性。游戏客户端可以在界面的各种菜单中访问物品大纲,包括[[Mann Co. Store/zh-hans|曼恩公司商店]]、[[Mann Co. Catalog/zh-hans|目录]]以及玩家的[[backpack/zh-hans|背包]]。大纲中的每个物品都被描述为作为具有各种不同的 key 值的对象,分别表示它们的名称、类型、槽位、可被装备的[[classes/zh-hans|兵种]],以及其功能(如,能否使用[[Paint Can/zh-hans|油漆桶]]或{{item link|Name Tag}})。所有key值在[[WebAPI/GetSchema/zh-hans|网页API/GetSchema]]中均有详细列出。
  
The '''item schema''' is a resource in ''Team Fortress 2'' that defines all existing items and the attributes assigned to them. The item schema is accessed by the game client in various menus of the interface, including the [[Mann Co. Store]], [[Mann Co. Catalog|Catalog]] and the player's [[backpack]]. Each item in the schema is maintained as an object with varying key-value pairs denoting its name, its type and slot, [[classes]] that can equip it, and its capabilities (such as, whether it can be used with a [[Paint Can]] or [[Name Tag]]). All values are listed in detail at [[WebAPI/GetSchema]].
 
  
 
In addition to the standard item schema, the schema version pulled by the game client is known as the 'client schema'. The client schema is obtained in [[WebAPI/VDF|VDF]] format for parsing by the game engine, and includes other details not in the standard schema, such as [[equip region]]s, attached weapon sounds, and [[bodygroup]]s for each item. Both versions of the item schema include definitions of all [[List of item attributes|item attributes]], [[item sets]], [[particle effects]] and item levels and ranks for [[Strange]] weapons and cosmetics.
 
In addition to the standard item schema, the schema version pulled by the game client is known as the 'client schema'. The client schema is obtained in [[WebAPI/VDF|VDF]] format for parsing by the game engine, and includes other details not in the standard schema, such as [[equip region]]s, attached weapon sounds, and [[bodygroup]]s for each item. Both versions of the item schema include definitions of all [[List of item attributes|item attributes]], [[item sets]], [[particle effects]] and item levels and ranks for [[Strange]] weapons and cosmetics.
Line 16: Line 17:
 
-->
 
-->
 
== 参见 ==
 
== 参见 ==
* '''[[WebAPI]]'''
+
* '''[[WebAPI/zh-hans|网页 API]]'''
 
** [[WebAPI/GetSchema]] &ndash; technical description of the item schema as accessible via the Steam Web API
 
** [[WebAPI/GetSchema]] &ndash; technical description of the item schema as accessible via the Steam Web API
 
* [[Items/zh-hans|物品]]
 
* [[Items/zh-hans|物品]]
Line 23: Line 24:
 
[[Category:WebAPI/zh-hans]]
 
[[Category:WebAPI/zh-hans]]
  
<!--有关与Steam Web API和GetSchema有关的更深入的技术文档,请参阅WebAPI。
+
<!--除了标准项目模式外,游戏客户端提取的模式版本也称为“客户端模式”。客户端模式以VDF格式获得,供游戏引擎解析,并包括标准模式中未包含的其他详细信息,例如装备区域,附加的武器声音和每个项目的主体组。物品模式的两个版本都包含所有物品属性,物品集,粒子效果和物品等级的定义,以及怪异武器和化妆品的等级。
该项目模式是一种资源团队要塞2,定义所有现有的项目,并分配给它们的属性。游戏客户端可以在界面的各种菜单中访问项目模式,包括Mann Co. Store,Catalog和玩家的背包。模式中的每个项目都作为一个对象维护,具有不同的键-值对,表示它们的名称,类型和插槽,可以配备的类以及其功能(例如,是否可以与Paint Can或Name Tag一起使用))。所有值都在WebAPI / GetSchema中详细列出。
 
 
 
除了标准项目模式外,游戏客户端提取的模式版本也称为“客户端模式”。客户端模式以VDF格式获得,供游戏引擎解析,并包括标准模式中未包含的其他详细信息,例如装备区域,附加的武器声音和每个项目的主体组。物品模式的两个版本都包含所有物品属性,物品集,粒子效果和物品等级的定义,以及怪异武器和化妆品的等级。
 
  
 
客户端架构以tf / scripts / items / items_game.txt的形式存储在客户端和服务器上。客户端和服务器在启动时会加载此架构副本。连接后,项目服务器会向客户端和服务器发送一个URL,在该URL上可以下载最新架构,然后客户端和服务器将下载并使用该URL。通过项目服务器以这种方式处理模式的后续更新。从2014年10月15日补丁开始,items_game.txt受数字签名保护,并且如果客户端和服务器被修改,则无论客户端还是服务器都不会启动。-->
 
客户端架构以tf / scripts / items / items_game.txt的形式存储在客户端和服务器上。客户端和服务器在启动时会加载此架构副本。连接后,项目服务器会向客户端和服务器发送一个URL,在该URL上可以下载最新架构,然后客户端和服务器将下载并使用该URL。通过项目服务器以这种方式处理模式的后续更新。从2014年10月15日补丁开始,items_game.txt受数字签名保护,并且如果客户端和服务器被修改,则无论客户端还是服务器都不会启动。-->

Latest revision as of 10:15, 3 July 2020

有关Steam 网页 API和 GetSchema 的详细技术文档,请参见网页 API

物品大纲(item schema)是《军团要塞 2》的资源,它定义了所有现有的物品和分配给它们的属性。游戏客户端可以在界面的各种菜单中访问物品大纲,包括曼恩公司商店目录以及玩家的背包。大纲中的每个物品都被描述为作为具有各种不同的 key 值的对象,分别表示它们的名称、类型、槽位、可被装备的兵种,以及其功能(如,能否使用油漆桶名称标签)。所有key值在网页API/GetSchema中均有详细列出。


In addition to the standard item schema, the schema version pulled by the game client is known as the 'client schema'. The client schema is obtained in VDF format for parsing by the game engine, and includes other details not in the standard schema, such as equip regions, attached weapon sounds, and bodygroups for each item. Both versions of the item schema include definitions of all item attributes, item sets, particle effects and item levels and ranks for Strange weapons and cosmetics.

The client schema is stored locally on both the client and the server as tf/scripts/items/items_game.txt. The client and server load this copy of the schema on startup. Once connected, the item server sends the client and server a URL where the most recent schema can be downloaded, which the client and server then download and use. Subsequent updates to the schema are handled through the item server in this way. As of the 2014年10月15日补丁, items_game.txt is protected by a digital signature and neither the client nor the server will start up if it has been modified.

参见