mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-05-29 03:23:37 +02:00
35 lines
927 B
C#
35 lines
927 B
C#
|
using System.Text.RegularExpressions;
|
||
|
using Microsoft.Xna.Framework;
|
||
|
using Microsoft.Xna.Framework.Graphics;
|
||
|
using MLEM.Font;
|
||
|
|
||
|
namespace MLEM.Formatting.Codes {
|
||
|
public class Code {
|
||
|
|
||
|
public readonly Match Match;
|
||
|
public Token Token { get; internal set; }
|
||
|
|
||
|
public Code(Match match) {
|
||
|
this.Match = match;
|
||
|
}
|
||
|
|
||
|
public virtual bool EndsHere(Code other) {
|
||
|
return other.GetType() == this.GetType();
|
||
|
}
|
||
|
|
||
|
public virtual Color? GetColor() {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
public virtual GenericFont GetFont() {
|
||
|
return null;
|
||
|
}
|
||
|
|
||
|
public virtual bool DrawCharacter(GameTime time, SpriteBatch batch, char c, string cString, Vector2 pos, GenericFont font, Color color, float scale, float depth) {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
public delegate Code Constructor(TextFormatter formatter, Match match);
|
||
|
|
||
|
}
|
||
|
}
|