Table of Contents

Class LSystem<TSymbol>

Namespace
Gamelogic.Extensions.Algorithms
Assembly
Gamelogic.Extensions.dll

A lightweight implementation of an L-system.

[Version(1, 4, 1)]
public class LSystem<TSymbol>

Type Parameters

TSymbol

This type must be comparable using ==, or you should feed an IEqualityComparer.

Inheritance
LSystem<TSymbol>
Inherited Members
Extension Methods

Constructors

LSystem()

Creates a new empty LSystem.

LSystem(IEqualityComparer<TSymbol>)

Constructs a new empty L-System that will use the given comparer to compare symbols.

Methods

AddRewriteRule(TSymbol, IEnumerable<TSymbol>)

Adds a new rewrite rule to the system.

Rewrite(IEnumerable<TSymbol>)

Rewrites a string using the rewrite rules.

Rewrite(IEnumerable<TSymbol>, int)

Performs a rewrite on a string using the rewrite rules n times.