Translations:Development/34/zh: Difference between revisions

From DDraceNetwork
Darkh (talk | contribs)
Created page with "客户端由许多组件构成,都是继承<code>CComponent</code>的类:这些组件通过实现视觉方法来提供功能,例如<code>OnInit</code>,<code>OnMessage</code>等等。"
 
Darkh (talk | contribs)
No edit summary
 
Line 1: Line 1:
客户端由许多组件构成,都是继承<code>CComponent</code>的类:这些组件通过实现视觉方法来提供功能,例如<code>OnInit</code>,<code>OnMessage</code>等等。
客户端由许多组件构成,都是<code>src/game/client/component.h</code>中定义的继承[https://github.com/ddnet/ddnet/blob/master/src/game/client/component.h CComponent]的类:这些组件通过实现视觉方法来提供功能,例如<code>OnInit</code>,<code>OnMessage</code>等等。

Latest revision as of 08:19, 22 May 2024

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Development)
The client side is made up of components, these are classes that inherit [https://github.com/ddnet/ddnet/blob/master/src/game/client/component.h CComponent] defined in <code>src/game/client/component.h</code>. These components can implement the virtual methods such as <code>OnInit</code>, <code>OnMessage</code>, etc. to provide their functionality.

客户端由许多组件构成,都是在src/game/client/component.h中定义的继承CComponent的类:这些组件通过实现视觉方法来提供功能,例如OnInitOnMessage等等。