Translations by theadmin

theadmin has submitted the following strings to this translation. Contributions are visually coded: currently used translations, unreviewed suggestions, rejected suggestions.

134 of 34 results
1.
Persistent Data
2014-11-03
Постоянные данные
2.
Ren'Py supports persistent data, saved data that is not associated with a particular point in a game. Persistent data is accessed through fields of the persistent object, which is bound to the variable ``persistent``.
2014-11-03
Ren'Py поддерживает постоянные данные, то есть сохраняемые данные не связанные с конкретной точкой в игре. Доступ к постоянным данным осуществляется через переменную ``persistent``.
3.
All data reachable through fields on ``persistent`` is saved when Ren'Py terminates, or when :func:`renpy.save_persistent` is called. Persistent data is loaded when Ren'Py starts, and when Ren'Py detects that the persistent data has been updated on disk.
2014-11-03
Все данные в полях объекта ``persistent`` сохраняются, когда Ren'Py завершает работу или когда вызывается функция :func:`renpy.save_persistent`. Постоянные данные загружаются при запуске Ren'Py или при обновлении данных на диске.
4.
The persistent object is special in that an access to an undefined field will have a None value, rather than causing an exception.
2014-11-03
Объект persistent - особенный. Неопределенные поля будут возвращать значение None вместо ошибки.
5.
An example use of persistent is the creation of an unlockable image gallery. This is done by storing a flag in persistent that determines if the gallery has been unlocked, as in ::
2014-11-03
Пример использования постоянных данных - создание галлереи изображений. Вы можете хранить в постоянных данных флаг, определяющий возможность доступа к галерее, например::
6.
When the user gets an ending that causes the gallery to be unlocked, the flag must be set to True. ::
2014-11-03
Когда пользователь достигает конца игры, флаг можно установить в True. ::
7.
As persistent data is loaded before the init code is run, persistent data should only contain types that are native to python or Ren'Py. Alternatively, classes that are defined in ``python early`` blocks can be used, provided those classes can be pickled and implement equality.
2014-11-03
Так как постоянные данные загружаются до кода инициализации, они должны содержать типы данных, которые известны Python и Ren'Py. Классы, определенные в блоках ``python early`` могут быть использованы, но эти классы должны поддерживать сериализацию с помощью модуля pickle и поддерживать сравнение на равенство.
8.
Merging Persistent Data
2014-11-03
Совмещение постоянных данных.
9.
There are cases where Ren'Py has to merge persistent data from two sources. For example, Ren'Py may need to merge persistent data stored on a USB drive with persistent data from the local machine.
2014-11-03
Бывают случаи, когда Ren'Py приходится совмещать постоянные данные из двух источников, например, USB-флешки и локальной машины.
10.
Ren'Py does this merging on a field-by-field basis, taking the value of the field that was updated more recently. In some cases, this is not the desired behavior. In that case, the :func:`renpy.register_persistent` function can be used.
2014-11-03
Ren'Py совмещает данные по полям, и берет значения полей, которые были обновлены позже. Если такое поведение нежелательно, воспользуйтесь функцией :func:`renpy.register_persistent`.
11.
For example, if we have a set of seen endings, we'd like to take the union of that set when merging data. ::
2014-11-03
Например, если у нас есть множество увиденных концовок, мы бы воспользовались объединением при слиянии данных. ::
12.
Persistent Functions
2014-11-03
Функции управления постоянными данными
13.
Registers a function that is used to merge values of a persistent field loaded from disk with values of current persistent object.
2014-11-03
Регистрирует функцию для слияния значений поля текущих постоянных данных с постоянными данными на диске.
14.
`field`
2014-11-03
`field`
15.
The name of a field on the persistent object.
2014-11-03
Имя поля.
16.
`function`
2014-11-03
`function`
17.
A function that is called with three parameters, `old`, `new`, and `current`:
2014-11-03
Функция, вызываемая с тремя параметрами: `old`, `new`, `current`.
18.
`old`
2014-11-03
`old`
19.
The value of the field in the older object.
2014-11-03
Значение поля в старом объекте.
20.
`new`
2014-11-03
`new`
21.
The value of the field in the newer object.
2014-11-03
Значение поля в новом объекте.
22.
`current`
2014-11-03
`current`
23.
The value of the field in the current persistent object. This is provided for cases where the identity of the object referred to by the field can't change.
2014-11-03
Текущее значение поля. Это предоставляется в случае если объект, на который указывает поле, не может быть изменен.
24.
The function is expected to return the new value of the field in the persistent object.
2014-11-03
Функция должна возвращать новое значение поля.
25.
Saves the persistent data to disk.
2014-11-03
Сохраняет постоянные данные на диск.
26.
Multi-Game Persistence
2014-11-03
Многоигровое постоянство
27.
Multi-Game persistence is a feature that lets you share information between Ren'Py games. This may be useful if you plan to make a series of games, and want to have them share information.
2014-11-03
Многоигровое постоянство - возможность Ren'Py, позволяющая вам делиться информацией между разными играми. Это может быть полезно при создании нескольких игр, связанных между собой сюжетом.
28.
To use multipersistent data, a MultiPersistent object must be created inside an init block. The user can then update this object, and save it to disk by calling its save method. Undefined fields default to None. To ensure the object can be loaded again, we suggest not assigning the object instances of user-defined types.
2014-11-03
Для использования многоигрового постоянства, следует создать объект MultiPersistent в блоке инициализации. Этот объект можно обновлять и сохранять на диск методом save. Неопределенные поля возвращают None. Для того, чтобы этот объект можно было снова загрузить, не следует использовать определенные пользователем типы.
29.
Creates a new MultiPersistent object. This should only be called inside an init block, and it returns a new MultiPersistent with the given key.
2014-11-03
Создает новый объект MultiPersistent. Это следует вызвать только в блоке инициализации.
30.
`key`
2014-11-03
`key`
31.
The key used to to access the multipersistent data. Games using the same key will access the same multipersistent data.
2014-11-03
Ключ для доступа к данным. Игры с одним ключом будут иметь доступ к одному набору данных.
32.
Saves the multipersistent data to disk. This must be called after the data is modified.
2014-11-03
Сохраняет данные на диск. Это следует вызвать после изменения данных.
33.
As an example, take the first part of a two-part game::
2014-11-03
Например, в первой части игры::
34.
And the second part::
2014-11-03
А во второй::