mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-06-28 07:19:09 +02:00
22 lines
499 B
C#
22 lines
499 B
C#
using System.Text.RegularExpressions;
|
|
using MLEM.Font;
|
|
|
|
namespace MLEM.Formatting.Codes {
|
|
public class FontCode : Code {
|
|
|
|
private readonly GenericFont font;
|
|
|
|
public FontCode(Match match, Regex regex, GenericFont font) : base(match, regex) {
|
|
this.font = font;
|
|
}
|
|
|
|
public override GenericFont GetFont() {
|
|
return this.font;
|
|
}
|
|
|
|
public override bool EndsHere(Code other) {
|
|
return other is FontCode;
|
|
}
|
|
|
|
}
|
|
} |