public BBlock(string name, BBlockType type, RectangleF texturePosition) { this.name = name; this.type = type; this.texturePosition = texturePosition; posX = 0; posY = 0; solid = false; ground = false; switch (type) { case BBlockType.Empty: solid = true; break; case BBlockType.Ground: ground = true; break; case BBlockType.Solid: solid = true; break; default: solid = false; ground = false; break; } }
public BBlockTemplate(string name, BBlockType type, RectangleF texturePosition) { this.name = name; this.type = type; this.texturePosition = texturePosition; }