Updated README, removed package count from IsValid

This commit is contained in:
xx-TheDoctor-xx
2020-04-18 04:57:56 +01:00
parent fdd7f9d84c
commit 2adb6adf08
2 changed files with 3 additions and 5 deletions

View File

@ -44,15 +44,13 @@ namespace PMF
// - a name // - a name
// - an author // - an author
// - a description // - a description
// - at least one asset
public bool IsValid() public bool IsValid()
{ {
return !string.IsNullOrEmpty(ID) && return !string.IsNullOrEmpty(ID) &&
Type != PackageType.None && Type != PackageType.None &&
!string.IsNullOrEmpty(Name) && !string.IsNullOrEmpty(Name) &&
!string.IsNullOrEmpty(Author) && !string.IsNullOrEmpty(Author) &&
!string.IsNullOrEmpty(Description) && !string.IsNullOrEmpty(Description);
Assets.Count > 0;
} }
} }
} }

View File

@ -54,7 +54,7 @@ public static PackageState InstallBySdkVersion(string id, out Package package)
Uninstalls a package Uninstalls a package
``` ```csharp
public static bool Uninstall(string id) public static bool Uninstall(string id)
``` ```