Skip to content

Latest commit

 

History

History
210 lines (155 loc) · 6.28 KB

GameScript.Game.Sets.md

File metadata and controls

210 lines (155 loc) · 6.28 KB

GameScript.Game.Sets

Индекс

GameScript.Game.Sets.AddObjectToSet

GameScript.Game.Sets.AddObjectToSet(arg1, arg2)

Источник: Lua, строка 2872. Имена argN — placeholders реконструкции.

Check if "SetObject" has a Set Component, and if so, add "Object".

Поля параметров call-tip (интерпретация структуры, не восстановленные типы):

№ Имя (@K[209]) Описание (@K[211])
1.0 SetObject The empireObject for which we are examining for a Set Component
2.0 Object The empireObject which we are adding to the set
Исходная структура call-tip
{
  "@K[202]": {
    "1.0": {
      "@K[209]": "SetObject",
      "@K[211]": "The empireObject for which we are examining for a Set Component"
    },
    "2.0": {
      "@K[209]": "Object",
      "@K[211]": "The empireObject which we are adding to the set"
    }
  },
  "@K[203]": "Check if \"SetObject\" has a Set Component, and if so, add \"Object\"."
}

GameScript.Game.Sets.DoesSetContainsObject

GameScript.Game.Sets.DoesSetContainsObject(arg1, arg2)

Источник: Lua, строка 2875. Имена argN — placeholders реконструкции.

Check if "SetObject" has a Set Component, and if so, does it contain "TestObject".

Поля параметров call-tip (интерпретация структуры, не восстановленные типы):

№ Имя (@K[209]) Описание (@K[211])
1.0 SetObject The empireObject for which we are examining for a Set Component
2.0 TestObject The empireObject which we are seeing if it is in the set
Исходная структура call-tip
{
  "@K[202]": {
    "1.0": {
      "@K[209]": "SetObject",
      "@K[211]": "The empireObject for which we are examining for a Set Component"
    },
    "2.0": {
      "@K[209]": "TestObject",
      "@K[211]": "The empireObject which we are seeing if it is in the set"
    }
  },
  "@K[203]": "Check if \"SetObject\" has a Set Component, and if so, does it contain \"TestObject\"."
}

GameScript.Game.Sets.GetNumObjectsInSet

GameScript.Game.Sets.GetNumObjectsInSet(arg1)

Источник: Lua, строка 2878. Имена argN — placeholders реконструкции.

If "SetObject" has a Set Component, get the number of objects in the set.

Поля параметров call-tip (интерпретация структуры, не восстановленные типы):

№ Имя (@K[209]) Описание (@K[211])
1.0 SetObject The empireObject for which we are examining for a Set Component
Исходная структура call-tip
{
  "@K[202]": {
    "1.0": {
      "@K[209]": "SetObject",
      "@K[211]": "The empireObject for which we are examining for a Set Component"
    }
  },
  "@K[203]": "If \"SetObject\" has a Set Component, get the number of objects in the set."
}

GameScript.Game.Sets.GetObjectsInSet

GameScript.Game.Sets.GetObjectsInSet(arg1)

Источник: Lua, строка 2881. Имена argN — placeholders реконструкции.

Check if "SetObject" has a Set Component, and if so, get a list of objects in that set.

Поля параметров call-tip (интерпретация структуры, не восстановленные типы):

№ Имя (@K[209]) Описание (@K[211])
1.0 SetObject The empireObject for which we are examining for a Set Component
Исходная структура call-tip
{
  "@K[202]": {
    "1.0": {
      "@K[209]": "SetObject",
      "@K[211]": "The empireObject for which we are examining for a Set Component"
    }
  },
  "@K[203]": "Check if \"SetObject\" has a Set Component, and if so, get a list of objects in that set."
}

GameScript.Game.Sets.HasSetComponent

GameScript.Game.Sets.HasSetComponent(arg1)

Источник: Lua, строка 2884. Имена argN — placeholders реконструкции.

Check if "EmpireObject" has a Set Component.

Поля параметров call-tip (интерпретация структуры, не восстановленные типы):

№ Имя (@K[209]) Описание (@K[211])
1.0 EmpireObject The empireObject for which we are examining for a Set Component
Исходная структура call-tip
{
  "@K[202]": {
    "1.0": {
      "@K[209]": "EmpireObject",
      "@K[211]": "The empireObject for which we are examining for a Set Component"
    }
  },
  "@K[203]": "Check if \"EmpireObject\" has a Set Component."
}

GameScript.Game.Sets.RemoveObjectFromSet

GameScript.Game.Sets.RemoveObjectFromSet(arg1, arg2)

Источник: Lua, строка 2887. Имена argN — placeholders реконструкции.

Check if "SetObject" has a Set Component, and if so, remove "Object".

Поля параметров call-tip (интерпретация структуры, не восстановленные типы):

№ Имя (@K[209]) Описание (@K[211])
1.0 SetObject The empireObject for which we are examining for a Set Component
2.0 Object The empireObject which we are removing from the set
Исходная структура call-tip
{
  "@K[202]": {
    "1.0": {
      "@K[209]": "SetObject",
      "@K[211]": "The empireObject for which we are examining for a Set Component"
    },
    "2.0": {
      "@K[209]": "Object",
      "@K[211]": "The empireObject which we are removing from the set"
    }
  },
  "@K[203]": "Check if \"SetObject\" has a Set Component, and if so, remove \"Object\"."
}