Skip to content

Releases: decaprime/VampireCommandFramework

v0.9.0

18 May 05:39
Compare
Choose a tag to compare

Automatic pre-release of 0.9.0 for d432c15

v0.8.4

08 May 16:21
4aa1643
Compare
Choose a tag to compare
v0.8.4 Pre-release
Pre-release

Automatic pre-release of 0.8.4 for 4aa1643

v0.8.3

04 Jan 04:43
d3e33b8
Compare
Choose a tag to compare
v0.8.3 Pre-release
Pre-release

Automatic pre-release of 0.8.3 for d3e33b8

v0.8.2

27 Jul 22:25
ecad29a
Compare
Choose a tag to compare

Enhanced .help with IConverterUsage

Now custom converters can implement IConverterUsage like:

// Example of matching horses in LeadAHorseToWater

public record Horse(Entity Entity);

public class NamedHorseConverter : CommandArgumentConverter<Horse, ChatCommandContext>, IConverterUsage
{

// New:
     public string Usage => $"Closest horse in {RADIUS} unit radius, first matching name if provided."
     const int RADIUS  =25;
...
}

public Enum HorseType {Special, Regular}

Enums and Usage in .help

Now for commands that have a Horse argument, invoking their individual help will list the possible values of Enum i.e.

[Command("example")]
void UpdateType(ChatCommandContext ctx, Horse closest=null, HorseType type = HorseType.Regular) => ...

When running .help example included in the response will be

Horse: Closest horse in 25 unit radius, first matching name if provided.
HorseType: Special, Regular

Enums should parse strictly

Fixed decaprime/CommunityCommands/issues/12 via framework change. This is a great bug to be reported, thank you @robotomist . The expectation is that VampireCommandFramework should handle argument matching and parsing, in this case the built in converter for Enums was letting in values that weren't valid as expected in the commands and so was fixed by #17.

What's Changed

Full Changelog: v0.8.0...v0.8.2

v0.8.1

27 Jul 16:51
9e30cb2
Compare
Choose a tag to compare
v0.8.1 Pre-release
Pre-release

Automatic pre-release of 0.8.1 for 9e30cb2

v0.8.0

07 Jun 05:06
47368fa
Compare
Choose a tag to compare

Automatic pre-release of 0.8.0 for 47368fa

This is compatible with Gloomrot and BepInEx RC4 (1.668.4) . It should function similarly to 0.5.3, however this build removes hot reload, so if you were using VCF-Reloadable-Debugging, you should consider using BloodstonePlugins and that hot reload mechanism instead now.

nuget

dotnet add package VRising.VampireCommandFramework --version 0.8.0
https://www.nuget.org/packages/VRising.VampireCommandFramework/0.8.0

v0.7.0

03 Jun 01:21
Compare
Choose a tag to compare
v0.7.0 Pre-release
Pre-release

Automatic pre-release of 0.7.0 for dd6b216

v0.6.0

02 Jun 04:49
Compare
Choose a tag to compare
v0.6.0 Pre-release
Pre-release

Automatic pre-release of 0.6.0 for 1203a76

v0.5.4

27 May 22:49
Compare
Choose a tag to compare
v0.5.4 Pre-release
Pre-release

Automatic pre-release of 0.5.4 for f1fbd34

v0.5.3

20 May 20:23
Compare
Choose a tag to compare
v0.5.3 Pre-release
Pre-release

Automatic pre-release of 0.5.3 for 22e175e