public AsciiObject(char[][] chars, char emptyChar, int x, int y, int z = 0, GridCollideMethod collideMethod = GridCollideMethod.Ignore, AsciiVector vector = null) { Chars = Utils.CreateObject(chars, emptyChar); X = x; Y = y; Collider = new AsciiCollider(Width, Height, collideMethod); Vector = vector ?? AsciiVector.Zero; }
/// <summary> /// Creates a new <see cref="AsciiObject"/> with a specified string value, separator character, empty character, and its initial X and Y values. /// </summary> public AsciiObject(string value, char separatorChar, char emptyChar, int x, int y, int z = 0, GridCollideMethod collideMethod = GridCollideMethod.Ignore, AsciiVector vector = null) { Chars = Utils.CreateObject(value, separatorChar, emptyChar); X = x; Y = y; Z = z; Collider = new AsciiCollider(Width, Height, collideMethod); Vector = vector ?? AsciiVector.Zero; }