forked from Exiled-Team/EXILED
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'apis-rework' into pr/2267
- Loading branch information
Showing
568 changed files
with
23,189 additions
and
7,714 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Exiled Resonance CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- apis-rework | ||
pull_request: | ||
branches: | ||
- apis-rework | ||
workflow_dispatch: | ||
|
||
env: | ||
EXILED_REFERENCES_URL: https://misaka-zerotwo.github.io/SL-References/Dev.zip | ||
EXILED_REFERENCES_PATH: ${{ github.workspace }}/References | ||
EXILED_DLL_ARCHIVER_URL: https://github.com/Exiled-Team/EXILED-DLL-Archiver/releases/latest/download/EXILED-DLL-Archiver.exe | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: windows-latest | ||
# Prevent double running for push & pull_request events from the main repo | ||
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'Exiled-Team/Exiled' | ||
|
||
steps: | ||
|
||
- name: Setup .NET Core SDK | ||
uses: actions/setup-dotnet@v1.7.2 | ||
|
||
- name: Setup Nuget | ||
uses: iRebbok/setup-nuget@master | ||
|
||
- uses: actions/checkout@v2.3.4 | ||
|
||
- name: Get references | ||
shell: pwsh | ||
run: | | ||
Invoke-WebRequest -Uri ${{ env.EXILED_REFERENCES_URL }} -OutFile ${{ github.workspace }}/References.zip | ||
Expand-Archive -Path References.zip -DestinationPath ${{ env.EXILED_REFERENCES_PATH }} | ||
- name: Build | ||
env: | ||
EXILED_REFERENCES: ${{ env.EXILED_REFERENCES_PATH }} | ||
shell: pwsh | ||
run: | | ||
./build.ps1 -BuildNuGet | ||
$File = (Get-ChildItem -Path . -Include 'EXILED.*.nupkg' -Recurse).Name | ||
Out-File -FilePath ${{ github.env }} -InputObject "PackageFile=$File" -Encoding utf-8 -Append | ||
- name: Upload nuget package | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ env.PackageFile }} | ||
path: ${{ env.PackageFile }} | ||
|
||
- name: Get references | ||
shell: pwsh | ||
run: | | ||
Invoke-WebRequest -Uri ${{ env.EXILED_DLL_ARCHIVER_URL }} -OutFile ${{ github.workspace }}/EXILED-DLL-Archiver.exe | ||
- name: Packaging results as tar.gz | ||
shell: pwsh | ||
run: ./packaging.ps1 | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Build Result | ||
path: bin/Release/Exiled.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,6 @@ | |
|
||
namespace Exiled.API.Enums | ||
{ | ||
using System; | ||
|
||
using Features; | ||
|
||
/// <summary> | ||
|
22 changes: 11 additions & 11 deletions
22
...stomRoles/API/Features/Enums/CheckType.cs → Exiled.API/Enums/TextChannelType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
// ----------------------------------------------------------------------- | ||
// <copyright file="CheckType.cs" company="Exiled Team"> | ||
// <copyright file="TextChannelType.cs" company="Exiled Team"> | ||
// Copyright (c) Exiled Team. All rights reserved. | ||
// Licensed under the CC BY-SA 3.0 license. | ||
// </copyright> | ||
// ----------------------------------------------------------------------- | ||
|
||
namespace Exiled.CustomRoles.API.Features.Enums | ||
namespace Exiled.API.Enums | ||
{ | ||
/// <summary> | ||
/// The possible types of checks to preform on active abilities. | ||
/// All available text channels. | ||
/// </summary> | ||
public enum CheckType | ||
public enum TextChannelType | ||
{ | ||
/// <summary> | ||
/// Check if the ability is available to the player. (DOES NOT CHECK COOLDOWNS) | ||
/// Means text won't be displayed. | ||
/// </summary> | ||
Available, | ||
None, | ||
|
||
/// <summary> | ||
/// Check if the ability is selected, but not active. | ||
/// Means the text will be displayed through the broadcast system. | ||
/// </summary> | ||
Selected, | ||
Broadcast, | ||
|
||
/// <summary> | ||
/// The ability is currently active. | ||
/// Means the text will be displayed through hint display system. | ||
/// </summary> | ||
Active, | ||
Hint, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// ----------------------------------------------------------------------- | ||
// <copyright file="UEBranchType.cs" company="Exiled Team"> | ||
// Copyright (c) Exiled Team. All rights reserved. | ||
// Licensed under the CC BY-SA 3.0 license. | ||
// </copyright> | ||
// ----------------------------------------------------------------------- | ||
|
||
namespace Exiled.API.Enums | ||
{ | ||
using Exiled.API.Features.Core.Generic; | ||
|
||
/// <summary> | ||
/// All available branch environments. | ||
/// </summary> | ||
public class UEBranchType : UnmanagedEnumClass<sbyte, UEBranchType> | ||
{ | ||
/// <summary> | ||
/// The production branch. | ||
/// </summary> | ||
public static readonly UEBranchType Release = new(0); | ||
|
||
/// <summary> | ||
/// The debug branch. | ||
/// </summary> | ||
public static readonly UEBranchType Debug = new(1); | ||
|
||
/// <summary> | ||
/// The development branch. | ||
/// </summary> | ||
public static readonly UEBranchType Dev = new(2); | ||
|
||
/// <summary> | ||
/// The beta branch. | ||
/// </summary> | ||
public static readonly UEBranchType Beta = new(3); | ||
|
||
/// <summary> | ||
/// The alpha branch. | ||
/// </summary> | ||
public static readonly UEBranchType Alpha = new(4); | ||
|
||
/// <summary> | ||
/// The prealpha branch. | ||
/// </summary> | ||
public static readonly UEBranchType Prealpha = new(5); | ||
|
||
/// <summary> | ||
/// The unstable branch. | ||
/// </summary> | ||
public static readonly UEBranchType Unstable = new(6); | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="UEBranchType"/> class. | ||
/// </summary> | ||
/// <param name="value">The <see cref="sbyte"/> value.</param> | ||
protected UEBranchType(sbyte value) | ||
: base(value) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// ----------------------------------------------------------------------- | ||
// <copyright file="UUKeypressTriggerType.cs" company="Exiled Team"> | ||
// Copyright (c) Exiled Team. All rights reserved. | ||
// Licensed under the CC BY-SA 3.0 license. | ||
// </copyright> | ||
// ----------------------------------------------------------------------- | ||
|
||
namespace Exiled.API.Enums | ||
{ | ||
using Exiled.API.Features.Core.Generic; | ||
|
||
#pragma warning disable SA1310 // Field names should not contain underscore | ||
|
||
/// <summary> | ||
/// The action type that should be triggered from a keypress trigger. | ||
/// </summary> | ||
public class UUKeypressTriggerType : UniqueUnmanagedEnumClass<uint, UUKeypressTriggerType> | ||
{ | ||
/// <summary> | ||
/// No action. | ||
/// </summary> | ||
public static readonly UUKeypressTriggerType None = new(); | ||
|
||
/// <summary> | ||
/// Declares a keypress trigger input. | ||
/// </summary> | ||
public static readonly UUKeypressTriggerType KT_INPUT_0 = new(); | ||
|
||
/// <summary> | ||
/// Declares a keypress trigger input. | ||
/// </summary> | ||
public static readonly UUKeypressTriggerType KT_INPUT_1 = new(); | ||
|
||
/// <summary> | ||
/// Declares a keypress trigger input. | ||
/// </summary> | ||
public static readonly UUKeypressTriggerType KT_INPUT_2 = new(); | ||
|
||
/// <summary> | ||
/// Declares a keypress trigger input. | ||
/// </summary> | ||
public static readonly UUKeypressTriggerType KT_INPUT_3 = new(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// ----------------------------------------------------------------------- | ||
// <copyright file="AnimationCurveExtensions.cs" company="Exiled Team"> | ||
// Copyright (c) Exiled Team. All rights reserved. | ||
// Licensed under the CC BY-SA 3.0 license. | ||
// </copyright> | ||
// ----------------------------------------------------------------------- | ||
|
||
namespace Exiled.API.Extensions | ||
{ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
using UnityEngine; | ||
|
||
/// <summary> | ||
/// A set of extensions for animation curves. | ||
/// </summary> | ||
public static class AnimationCurveExtensions | ||
{ | ||
/// <summary> | ||
/// Modify the curve with the amount used. | ||
/// </summary> | ||
/// <param name="curve">The AnimationCurve to modify.</param> | ||
/// <param name="amount">The multiplier number.</param> | ||
/// <returns>The new modified curve.</returns> | ||
public static AnimationCurve Multiply(this AnimationCurve curve, float amount) | ||
{ | ||
for (int i = 0; i < curve.length; i++) | ||
curve.keys[i].value *= amount; | ||
|
||
return curve; | ||
} | ||
|
||
/// <summary> | ||
/// Modify the curve with the amount used. | ||
/// </summary> | ||
/// <param name="curve">The AnimationCurve to modify.</param> | ||
/// <param name="amount">The add number.</param> | ||
/// <returns>The new modified curve.</returns> | ||
public static AnimationCurve Add(this AnimationCurve curve, float amount) | ||
{ | ||
for (int i = 0; i < curve.length; i++) | ||
curve.keys[i].value += amount; | ||
|
||
return curve; | ||
} | ||
} | ||
} |
Oops, something went wrong.