- Добавлены новые методы и функции:
Class LuaE
{
[M] int string_int( string ) /* Возвращает все цифры из строки как одно число int */
[M] string string_shield( string, bool Reverse ) /* Ставит или убирает экранирование спецсимволов в строке. Примеры: [LuaE:string_shield("Текст?.+-%")] --> "Текст%?%.%+%-%%"; [LuaE:string_shield("Текст%?%.%+%-%%", true)] --> "Текст?.+-%" */
[M] table string_to_table( string Table ) /* Преобразует строку-таблицу в таблицу */
[M] string table_to_string( table ) /* Преобразует таблицу в строку */
[M] void script_pause( string CoroutineName, function Callback, int Delay ) /* Создает корутину CoroutineName к которой можно обратиться в любом месте через [script_resume]. Если при обращении к корутине реальное время Delay (секунды) вышло, будет вызвана функция Callback: без скобочек "()", просто имя функции, либо целиком тело функции */
[M] AIParam script_resume( string CoroutineName ) /* Обращается к корутине CoroutineName, созданной в [script_pause] */
}
- Добавлен список экранирования
LuaE.shield;
- Изменен ReadMe.
- Added new methods and functions:
Class LuaE
{
[M] int string_int( string ) /* Returns all digits from a string as a single int number */
[M] string string_shield( string, bool Reverse ) /* Sets or removes the escaping of special characters in the string. Examples: [LuaE:string_shield("Text?.+-%")] --> "Text%?%.%+%-%%"; [LuaE:string_shield("Text%?%.%+%-%%", true)] --> "Text?.+-%" */
[M] table string_to_table( string Table ) /* Converts a string-table to a table */
[M] string table_to_string( table ) /* Converts a table to a string */
[M] void script_pause( string CoroutineName, function Callback, int Delay ) /* Creates a CoroutineName that can be accessed anywhere via [script_resume]. If the real Delay time (seconds) has expired when accessing the coroutine, the Callback function will be called: without the parentheses "()", just the function name, or the entire function body. */
[M] AIParam script_resume( string CoroutineName ) /* Accesses the CoroutineName created in [script_pause] */
}
- Added a list of escapes
LuaE.shield;
- Edited ReadMe.