Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update API for 1.0.294 #1210

Merged
merged 1 commit into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/api/enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,14 @@ tags:
| `TaskStatus.CANCELED` | `6` | The task was canceled, either by a call to `Task.Cancel()` or because its script was destroyed. |
| `TaskStatus.BLOCKED` | `7` | The task is waiting for an operation to complete before resuming execution. Examples include a call to `CoreObjectReference:WaitForObject()`, `CorePlatform.GetGameInfo()`, etc. |

## TeamMode

| Enum Name | Value | Description |
| --------- | ----------- | ----------- |
| `TeamMode.FREE_FOR_ALL` | `0` | Players are hostile to all other players. |
| `TeamMode.TEAM_VERSUS` | `1` | Players are assigned to teams that are hostile to each other. |
| `TeamMode.FRIENDLY` | `2` | Players are friendly to all other players. |

## TextJustify

| Enum Name | Value | Description |
Expand Down
2 changes: 2 additions & 0 deletions src/api/teams.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The Teams namespace contains a set of class functions for dealing with teams and
| -------------- | ----------- | ----------- | ---- |
| `Teams.AreTeamsEnemies(integer team1, integer team2)` | `boolean` | Returns true if teams are considered enemies under the current TeamMode. If either team is TEAM_NEUTRAL=0, returns false. | None |
| `Teams.AreTeamsFriendly(integer team1, integer team2)` | `boolean` | Returns true if teams are considered friendly under the current TeamMode. If either team is TEAM_NEUTRAL=0, returns true. | None |
| `Teams.SetTeamMode(TeamMode team_mode)` | `None` | Set the current team mode. | Server-Only |
| `Teams.GetTeamMode()` | [`TeamMode`](enums.md#teammode) | Get the current team mode. | None |

## Examples

Expand Down