feat(Documents) Notes/Docs page improvements and warning cleanup

This commit is contained in:
2022-04-07 13:30:00 -04:00
parent b270453030
commit d82e60efdf
223 changed files with 4396 additions and 2861 deletions
+13 -7
View File
@@ -1,32 +1,38 @@
using System.Collections.Generic;
namespace Model.Immortal.Entity.Parts;
namespace Model.Entity.Parts;
public class EntityHotkeyModel : IEntityPartInterface {
public class EntityHotkeyModel : IEntityPartInterface
{
public string Type { get; set; } = "EntityHotkeyModel";
public string Hotkey { get; set; }
public bool HoldSpace { get; set; } = false;
public string HotkeyGroup { get; set; }
public bool IsSelectedHotkey(List<string> keys) {
public bool IsSelectedHotkey(List<string> keys)
{
return keys.Contains(Hotkey.ToUpper());
}
public bool IsSelectedHotkeyGroup(List<string> keys) {
public bool IsSelectedHotkeyGroup(List<string> keys)
{
return keys.Contains(HotkeyGroup.ToUpper());
}
public bool IsSelectedHoldSpace(List<string> keys) {
public bool IsSelectedHoldSpace(List<string> keys)
{
return (keys.Contains("SPACE") || keys.Contains(" ")) == HoldSpace;
}
public bool IsSelectedHotkeyGroupWithSpace(List<string> keys) {
public bool IsSelectedHotkeyGroupWithSpace(List<string> keys)
{
var foundKey = false;
var foundHold = false;
foreach (var key in keys) {
foreach (var key in keys)
{
if (key.ToUpper().Equals(HotkeyGroup.ToUpper())) foundKey = true;
if (key.ToUpper().Equals("SPACE") || key.ToUpper().Equals(" ")) foundHold = true;
}