Изменения

Перейти к навигации Перейти к поиску
Строка 265: Строка 265:  
|}
 
|}
   −
==Mail flags==
+
==Почтовые флаги==
===Overview===
+
===Общее представление===
The game tracks ''mail flags'' for each player. This is used for two purposes:
+
Игра отслеживает ''почтовые флаги'' для каждого игрока. Это используется для двух целей:
* Tracking received letters. The key for each letter in <tt>Data\Mail</tt> is a mail flag; if the player has the flag for a letter, the game considers it to be received.
+
* Отслеживание полученных писем. Ключом для каждой буквы в <tt>Data\Mail</tt> является почтовый флаг; если у игрока есть флаг для письма, игра считает его полученным.
* Tracking non-mail changes in the world. For example, <tt>artifactFound</tt> means the player has found at least one artifact, <tt>jojaMember</tt> means the player has a Joja membership, etc. These have no letter associated with them.
+
* Отслеживание изменений в мире, не связанных с почтой. Например, <tt>artifactFound</tt> означает, что игрок нашел хотя бы один артефакт, <tt>jojaMember</tt> означает, что у игрока есть членство в Joja и т.д. С ними не связано никакой буквы.
   −
Mail flags are tracked in three main fields:
+
Почтовые флаги отслеживаются в трех основных полях:
    
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! field
+
! Поле
! description
+
! Описание
 
|-
 
|-
 
| <tt>Game1.player.mailForTomorrow</tt>
 
| <tt>Game1.player.mailForTomorrow</tt>
| Letters to add to the player's mailbox at the start of the next day.
+
| Письма, которые нужно добавить в почтовый ящик игрока в начале следующего дня.
 
|-
 
|-
 
| <tt>Game1.player.mailbox</tt>
 
| <tt>Game1.player.mailbox</tt>
| Letters currently in the player's mailbox.
+
| Письма в настоящее время находятся в почтовом ящике игрока.
 
|-
 
|-
 
| <tt>Game1.player.mailReceived</tt>
 
| <tt>Game1.player.mailReceived</tt>
| All mail flags set for the player. That includes both letters and non-mail flags.
+
| Все почтовые флаги установлены для игрока. Включает в себя как почтовые, так и не почтовые флаги.
 
|}
 
|}
   −
You need to check all three fields to know if a letter was sent or mail flag set, but the game provides a <tt>Game1.hasOrWillReceiveMail(string id)</tt> method for convenience.
+
Вам нужно проверить все три поля, чтобы узнать, было ли отправлено письмо или установлен флаг почты, но для удобства в игре предусмотрен метод <tt>Game1.hasOrWillReceiveMail(string ID)</tt>.
   −
===List===
+
===Список===
There are far too many flags to list, but here are some useful ones:
+
Существует слишком много флагов, чтобы перечислять их, но вот некоторые полезные из них
    
; [[Community Center]] and [[JojaMart]]&#58;
 
; [[Community Center]] and [[JojaMart]]&#58;
602

правки

Навигация