Adds missing gump components. (#111)

This commit is contained in:
Kamron Batman 2020-04-24 21:31:31 -07:00 committed by GitHub
parent 18b7cee52a
commit c116dff3e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 531 additions and 1045 deletions

View file

@ -28,9 +28,9 @@ namespace Server.Gumps
Text = text;
}
public int EntryID{ get; }
public int EntryID { get; }
public string Text{ get; }
public string Text { get; }
}
public class RelayInfo
@ -42,15 +42,15 @@ namespace Server.Gumps
TextEntries = textEntries;
}
public int ButtonID{ get; }
public int ButtonID { get; }
public int[] Switches{ get; }
public int[] Switches { get; }
public TextRelay[] TextEntries{ get; }
public TextRelay[] TextEntries { get; }
public bool IsSwitched(int switchID)
{
for (int i = 0; i < Switches.Length; ++i)
for (var i = 0; i < Switches.Length; ++i)
if (Switches[i] == switchID)
return true;
@ -59,11 +59,11 @@ namespace Server.Gumps
public TextRelay GetTextEntry(int entryID)
{
for (int i = 0; i < TextEntries.Length; ++i)
for (var i = 0; i < TextEntries.Length; ++i)
if (TextEntries[i].EntryID == entryID)
return TextEntries[i];
return null;
}
}
}
}