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
Blocks BlocksContent
Blocks FruitBlocksContent
Blocks JewelBlocksContent
Namespace: Blocks
Assembly: Blocks (in Blocks.exe) Version: 1.1.1.0 (1.1.1)
Syntax
The BlocksContent type exposes the following members.
Constructors
Name | Description | |
---|---|---|
BlocksContent | Initializes a new instance of the BlocksContent class |
Methods
Name | Description | |
---|---|---|
GetFilenameWithoutPrefix | ||
Load T |
Properties
Name | Description | |
---|---|---|
AreFiveBrickBlocksAllowed | ||
DoBlocksStartInARandomColumn | ||
DoBricksSplitInHalfWhenRowFull | ||
Prefix |
Remarks
Examples
[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