Skip to content

Latest commit

 

History

History
64 lines (63 loc) · 2.14 KB

codedocs.md

File metadata and controls

64 lines (63 loc) · 2.14 KB
layout title permalink
default
Документация Greyscript
/api

Документация Greyscript

{% assign encrypt = site.data.encryption %}

    {% for type in site.data.typelist %}
  • {{ type }}
      {% for func in site.data.functions[type] %} {% assign args = site.data.arguments[type][func] %} {% assign desc = site.data.descriptions[type][func] %} {% assign examples = site.data.examples[type][func] %} {% assign returns = site.data.returns[type][func] %} {% capture argdata %} {% for a in args %} {% if a.optional %} ?{{ a.name }}:{{ a.type }}, {% else %} {{ a.name }}:{{ a.type }}, {% endif %} {% endfor %} {% endcapture %} {% capture retdata %} {% for r in returns %} {% if r.subType %} {{ r.type }}[{{ r.subType }}] | {% else %} {{ r.type }} | {% endif %} {% endfor %} {% endcapture %} {% assign argdata = argdata | strip_newlines | strip %} {% assign retdata = retdata | strip_newlines | strip %} {% assign x = argdata | size | minus:1 %} {% assign y = retdata | size | minus:2 %} {% assign z = argdata | size %} {% if z > 1 %} {% assign p1 = "(" %} {% assign p2 = ")" %} {% endif %} {% if type != "General" %}
    • {{ type }}.{{ func }}{{ p1 }}{{ argdata | slice: 0, x}}{{ p2 }} : {{ retdata | slice: 0, y}} {% endif %} {% if type == "General" %}
    • {{ func }}{{ p1 }}{{ argdata | slice: 0, x}}{{ p2 }} : {{ retdata | slice: 0, y}} {% endif %} {% if encrypt contains func %} > **Note:** Этот метод нельзя использовать c включенным шифрованием. {% endif %} {{ desc }} {% for ex in examples %} ```lua {{ ex }} ``` {% endfor %}
    • {% endfor %}
  • {% endfor %}

Данные API из расширения vscode Greyscript, доступные по адресу https://github.com/WyattSL/greyscript.