Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: update the template.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 29, 2023
1 parent b34eb2b commit d69c108
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 299 deletions.
27 changes: 27 additions & 0 deletions Resources/AnimationLockTime.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,32 @@
{
"31": 0.6,
"37": 0.6,
"40": 0.6,
"41": 0.6,
"42": 0.6,
"44": 0.6,
"45": 0.6,
"46": 0.6,
"48": 0.6,
"52": 0.6,
"141": 0.1,
"149": 0.6,
"152": 0.6,
"153": 0.6,
"154": 0.1,
"158": 0.6,
"3549": 0.6,
"3550": 0.6,
"3552": 0.6,
"3573": 0.6,
"3574": 0.6,
"3576": 0.1,
"3577": 0.6,
"4868": 2.1,
"7386": 0.6,
"7387": 0.6,
"7388": 0.6,
"7389": 0.6,
"7421": 0.6,
"7503": 0.1,
"7505": 0.6,
Expand All @@ -22,18 +39,28 @@
"7514": 0.1,
"7517": 0.6,
"7518": 0.6,
"7531": 0.6,
"7533": 0.6,
"7535": 0.6,
"7540": 0.6,
"7548": 0.6,
"7559": 0.6,
"7560": 0.6,
"7561": 0.6,
"7562": 0.6,
"9793": 0.1,
"12260": 0.1,
"16462": 0.6,
"16464": 0.6,
"16505": 0.1,
"16507": 0.6,
"16524": 0.1,
"16525": 0.1,
"16527": 0.6,
"20243": 0.1,
"25751": 0.6,
"25752": 0.6,
"25753": 1.15,
"25796": 0.6,
"25797": 0.6
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
internal class Full_Template : AST_Base
{
//Change this to the game version right now.
public override string GameVersion => "6.35";
public override string GameVersion => "6.38";

public override string RotationName => "$safeitemname$";

Expand Down Expand Up @@ -71,69 +71,101 @@ protected override bool HealSingleGCD(out IAction act)
#endregion

#region 0GCD actions
protected override bool AttackAbility(byte abilitiesRemaining, out IAction act)
protected override bool AttackAbility(out IAction act)
{
throw new NotImplementedException();
}

//For some 0gcds very important, even more than healing, defense, interrupt, etc.
protected override bool EmergencyAbility(byte abilitiesRemaining, IAction nextGCD, out IAction act)
protected override bool EmergencyAbility(IAction nextGCD, out IAction act)
{
return base.EmergencyAbility(abilitiesRemaining, nextGCD, out act);
return base.EmergencyAbility(nextGCD, out act);
}

//Some 0gcds that don't need to a hostile target in attack range.
protected override bool GeneralAbility(byte abilitiesRemaining, out IAction act)
protected override bool GeneralAbility(out IAction act)
{
return base.GeneralAbility(abilitiesRemaining, out act);
return base.GeneralAbility(out act);
}

//Some 0gcds that moving forward. In general, it doesn't need to be override.
[RotationDesc("Optional description for Moving Forward 0GCD")]
[RotationDesc(ActionID.None)]
protected override bool MoveForwardAbility(byte abilitiesRemaining, out IAction act, bool recordTarget = true)
protected override bool MoveForwardAbility(out IAction act)
{
return base.MoveForwardAbility(abilitiesRemaining, out act, recordTarget);
return base.MoveForwardAbility(out act);
}

//Some 0gcds that moving back. In general, it doesn't need to be override.
[RotationDesc("Optional description for Moving Back 0GCD")]
[RotationDesc(ActionID.None)]
protected override bool MoveBackAbility(byte abilitiesRemaining, out IAction act)
protected override bool MoveBackAbility(out IAction act)
{
return base.MoveBackAbility(abilitiesRemaining, out act);
return base.MoveBackAbility(out act);
}

//Some 0gcds that defense area.
[RotationDesc("Optional description for Defense Area 0GCD")]
[RotationDesc(ActionID.None)]
protected override bool DefenseAreaAbility(byte abilitiesRemaining, out IAction act)
protected override bool DefenseAreaAbility(out IAction act)
{
return base.DefenseAreaAbility(abilitiesRemaining, out act);
return base.DefenseAreaAbility(out act);
}

//Some 0gcds that defense single.
[RotationDesc("Optional description for Defense Single 0GCD")]
[RotationDesc(ActionID.None)]
protected override bool DefenseSingleAbility(byte abilitiesRemaining, out IAction act)
protected override bool DefenseSingleAbility(out IAction act)
{
return base.DefenseSingleAbility(abilitiesRemaining, out act);
return base.DefenseSingleAbility(out act);
}

//Some 0gcds that healing area.
[RotationDesc("Optional description for Healing Area 0GCD")]
[RotationDesc(ActionID.None)]
protected override bool HealAreaAbility(byte abilitiesRemaining, out IAction act)
protected override bool HealAreaAbility(out IAction act)
{
return base.HealAreaAbility(abilitiesRemaining, out act);
return base.HealAreaAbility(out act);
}

//Some 0gcds that healing single.
[RotationDesc("Optional description for Healing Single 0GCD")]
[RotationDesc(ActionID.None)]
protected override bool HealSingleAbility(byte abilitiesRemaining, out IAction act)
protected override bool HealSingleAbility(out IAction act)
{
return base.HealSingleAbility(abilitiesRemaining, out act);
return base.HealSingleAbility(out act);
}
#endregion

#region Extra
//For counting down action when pary counting down is active.
protected override IAction CountDownAction(float remainTime)
{
return base.CountDownAction(remainTime);
}

//Extra configurations you want to show on your rotation config.
protected override IRotationConfigSet CreateConfiguration()
{
return base.CreateConfiguration();
}

//This is the method to update all field you wrote, it is used first during one frame.
protected override void UpdateInfo()
{
base.UpdateInfo();
}

//This method is used when player change the terriroty, such as go into one duty, you can use it to set the field.
public override void OnTerritoryChanged()
{
base.OnTerritoryChanged();
}

//This method is used to debug. If you want to show some information in Debug panel, show something here.
public override void DisplayStatus()
{
base.DisplayStatus();
}
#endregion
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RotationSolver.Basic" Version="0.9.6" />
<PackageReference Include="RotationSolver.Basic" Version="2.7.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
public class Simple_Template : AST_Base
{
//Change this to the game version right now.
public override string GameVersion => "6.35";
public override string GameVersion => "6.38";

public override string RotationName => "$safeitemname$";

Expand All @@ -18,7 +18,7 @@ protected override bool GeneralGCD(out IAction act)
}

//0GCD actions here.
protected override bool AttackAbility(byte abilitiesRemaining, out IAction act)
protected override bool AttackAbility(out IAction act)
{
throw new NotImplementedException();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
//Put your hash into this one if you want someone say hello to you when they are using RotationSolver in Duty with you.
[assembly: AuthorHash("$Your Hash in Debug Tab$")]
[assembly: AuthorHash("$Your Hash in Debug Tab$")]

//Something to show your link.
[assembly: AssemblyLink("$Support(Forum) Link$", "$Help(wiki) Link$",
"$ChangeLog$", "$Donate Link$")]
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RotationSolver.Basic" Version="2.2.1" />
<PackageReference Include="RotationSolver.Basic" Version="2.7.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" ?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="5b5d55b8-3641-45dc-97ba-98f49408c39c" Version="1.3" Language="en-US" Publisher="秋水" />
<Identity Id="5b5d55b8-3641-45dc-97ba-98f49408c39c" Version="1.4" Language="en-US" Publisher="秋水" />
<DisplayName>RotationSolver Templates</DisplayName>
<Description xml:space="preserve">A rotation development template for rotation solver</Description>
<ReleaseNotes>First release.</ReleaseNotes>
Expand Down
Loading

0 comments on commit d69c108

Please sign in to comment.