BlocksContent ClassDelta Engine Documentation
Allows a prefix to be applied to the name of each content item prior to loading. Games can therefore swap mods/skins simply by switching this prefix. View code on GitHub
Inheritance Hierarchy

System Object
  Blocks BlocksContent
    Blocks FruitBlocksContent
    Blocks JewelBlocksContent

Namespace: Blocks
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Syntax

public abstract class BlocksContent

The BlocksContent type exposes the following members.

Constructors

  NameDescription
Protected methodBlocksContent
Initializes a new instance of the BlocksContent class
Top
Methods

  NameDescription
Public methodGetFilenameWithoutPrefix
Public methodLoad T 
Top
Properties

  NameDescription
Public propertyAreFiveBrickBlocksAllowed
Public propertyDoBlocksStartInARandomColumn
Public propertyDoBricksSplitInHalfWhenRowFull
Public propertyPrefix
Top
Remarks

Tests: Blocks.Tests.BlocksContentTests
Examples

7 unit tests call Blocks.BlocksContent
[Test, CloseAfterFirstFrame]
public void DoBricksSplitInHalfOnExit()
{
    var content = new JewelBlocksContent();
    Assert.IsFalse(content.DoBricksSplitInHalfWhenRowFull);
    content.DoBricksSplitInHalfWhenRowFull = true;
    Assert.IsTrue(content.DoBricksSplitInHalfWhenRowFull);
}
[Test, CloseAfterFirstFrame]
public void AreFiveBrickBlocksAllowed()
{
    var content = new JewelBlocksContent();
    Assert.IsTrue(content.AreFiveBrickBlocksAllowed);
    content.AreFiveBrickBlocksAllowed = false;
    Assert.IsFalse(content.AreFiveBrickBlocksAllowed);
}
[Test, CloseAfterFirstFrame]
public void DoBlocksStartInARandomColumn()
{
    var content = new JewelBlocksContent();
    Assert.IsFalse(content.DoBlocksStartInARandomColumn);
    content.DoBlocksStartInARandomColumn = true;
    Assert.IsTrue(content.DoBlocksStartInARandomColumn);
}
See Also