1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-05-31 04:13:37 +02:00
MLEM/MLEM/Formatting/Codes/Code.cs

39 lines
1 KiB
C#
Raw Normal View History

2020-05-15 00:34:04 +02:00
using System.Text.RegularExpressions;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using MLEM.Font;
using MLEM.Misc;
2020-05-15 00:34:04 +02:00
namespace MLEM.Formatting.Codes {
public class Code : GenericDataHolder {
2020-05-15 00:34:04 +02:00
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 void Update(GameTime time) {
}
public virtual bool DrawCharacter(GameTime time, SpriteBatch batch, char c, string cString, int indexInToken, ref Vector2 pos, GenericFont font, ref Color color, ref float scale, float depth) {
2020-05-15 00:34:04 +02:00
return false;
}
public delegate Code Constructor(TextFormatter formatter, Match match);
}
}