VBotGirlWrapper
- class VBotGirl.VBotGirlWrapper(object: Object)
Базовые классы:
Object- class RotationDirection
Базовые классы:
object- Clockwise: Any = Ellipsis
По часовой стрелке
- Counterclockwise: Any = Ellipsis
Против часовой стрелки
- class MovementDirection
Базовые классы:
object- Forward: Any = Ellipsis
Вперед
- Backward: Any = Ellipsis
Назад
- Left: Any = Ellipsis
Влево
- Right: Any = Ellipsis
Вправо
- class TextBubbleHideType
Базовые классы:
object- Automatic: Any = Ellipsis
Автоматически
- Never: Any = Ellipsis
Никогда
- SetMaxTraversableSlope(slope: float) None
Задать максимальный угол подъема
Пример:
instance.SetMaxTraversableSlope(0)
- SetMaxStepHeight(slope: float) None
Задать максимальную высоту шага
Пример:
instance.SetMaxStepHeight(0)
- SetMinObjectDistance(objectDistance: float) None
Задать расстояние остановки перед объектом
Пример:
instance.SetMinObjectDistance(0)
- async RotateByAngle(angle: float, rotationDirection: int, time: float) None
Повернуть на [angle] градусов [rotationDirection] за [time] сек
- Параметры:
(int) (rotationDirection) –
значение из перечня:
VBotGirlWrapper.RotationDirection.Clockwise
VBotGirlWrapper.RotationDirection.Counterclockwise
Пример:
await instance.RotateByAngle(0, VBotGirlWrapper.RotationDirection.Clockwise, 0)
- MoveInfinite(movementDirection: int, movementPace: int) None
Двигаться [movementDirection] [movementPace] до остановки
- Параметры:
(int) (movementPace) –
значение из перечня:
VBotGirlWrapper.MovementDirection.Forward
VBotGirlWrapper.MovementDirection.Backward
VBotGirlWrapper.MovementDirection.Left
VBotGirlWrapper.MovementDirection.Right
(int) –
значение из перечня:
VBotGirlWrapper.MovementPace.Walk
VBotGirlWrapper.MovementPace.Run
Пример:
instance.MoveInfinite(VBotGirlWrapper.MovementDirection.Forward, VBotGirlWrapper.MovementPace.Walk)
- async MoveByMeters(movementDirection: int, movementPace: int, distance: float) None
Передвинуться [movementDirection] [movementPace] на расстояние [distance] м
- Параметры:
(int) (movementPace) –
значение из перечня:
VBotGirlWrapper.MovementDirection.Forward
VBotGirlWrapper.MovementDirection.Backward
VBotGirlWrapper.MovementDirection.Left
VBotGirlWrapper.MovementDirection.Right
(int) –
значение из перечня:
VBotGirlWrapper.MovementPace.Walk
VBotGirlWrapper.MovementPace.Run
Пример:
await instance.MoveByMeters(VBotGirlWrapper.MovementDirection.Forward, VBotGirlWrapper.MovementPace.Walk, 0)
- async MoveToObject(movementPace: int, wrapper: Object) None
Двигаться [movementPace] в сторону объекта [wrapper]
- Параметры:
(int) (movementPace) –
значение из перечня:
VBotGirlWrapper.MovementPace.Walk
VBotGirlWrapper.MovementPace.Run
(Object) (wrapper) – объект сцены
Пример:
await instance.MoveToObject(VBotGirlWrapper.MovementPace.Walk, sceneObject)
- async MoveAlongPath(movementPace: int, points: Any) None
Двигаться [movementPace] по маршруту [points]
- Параметры:
(int) (movementPace) –
значение из перечня:
VBotGirlWrapper.MovementPace.Walk
VBotGirlWrapper.MovementPace.Run
Пример:
await instance.MoveAlongPath(VBotGirlWrapper.MovementPace.Walk, 0)
- PausePath() None
Приостановить движение по маршруту
Пример:
instance.PausePath()
- ContinuePath() None
Продолжить движение по маршруту
Пример:
instance.ContinuePath()
- StopMovement() None
Остановить движение
Пример:
instance.StopMovement()
- SetShowTextBubbleHideType(hideType: int) None
Задать тип скрывания говоримого текста
- Параметры:
(int) (hideType) –
значение из перечня:
VBotGirlWrapper.TextBubbleHideType.Automatic
VBotGirlWrapper.TextBubbleHideType.Never
Пример:
instance.SetShowTextBubbleHideType(VBotGirlWrapper.TextBubbleHideType.Automatic)
- SetShowTextBubble(show: bool) None
Задать отображение говоримого текста
Пример:
instance.SetShowTextBubble(False)
- SayText(text: str) None
Сказать
Пример:
instance.SayText("text")
- SayTextWith(header: str, text: str) None
Сказать заголовок: [header] текст: [text]
Пример:
instance.SayTextWith("text", "text")
- StopSpeaking() None
Перестать говорить
Пример:
instance.StopSpeaking()
- AddBotTargetReachedHandler(handler: Callable[[Object, Object], CoroutineType]) None
Целевой объект достигнут
- Параметры:
handler –
Асинхронная функция-обработчик с сигнатурой:
target (Object): объект сцены
sender (Object): объект, который вызвал событие
Пример:
async def OnBotTargetReached(target, sender): pass instance.AddBotTargetReachedHandler(OnBotTargetReached)
- AddBotPathPointReachedHandler(handler: Callable[[int, Object, Object], CoroutineType]) None
Точка пути достигнута
- Параметры:
handler –
Асинхронная функция-обработчик с сигнатурой:
id (int): id
point (Object): объект сцены
sender (Object): объект, который вызвал событие
Пример:
async def OnBotPathPointReached(id, point, sender): pass instance.AddBotPathPointReachedHandler(OnBotPathPointReached)
- AddSpeechCompletedHandler(handler: Callable[[Object], CoroutineType]) None
Фраза произнесена
- Параметры:
handler –
Асинхронная функция-обработчик с сигнатурой:
sender (Object): объект, который вызвал событие
Пример:
async def OnSpeechCompleted(sender): pass instance.AddSpeechCompletedHandler(OnSpeechCompleted)