Exemple #1
0
 public Grass(Point2D location) : base(location, 11, 1)
 {
     this.TillableBehavior  = new TillablePercentDone();
     this.CompositeRenderer = new ComponentRenderer();
     this.CompositeRenderer.RenderQueue.Add(new StaticTexture(AssetManager.GetTextureIndex(this.GetRandomDirtTexture()), RenderLayer.DirtBase));
     this.CompositeRenderer.RenderQueue.Add(new StaticTexture(AssetManager.GetTextureIndex(this.GetRandomGrassTexture()), RenderLayer.GrassBase));
 }
Exemple #2
0
 public Dirt(Point2D location) : base(location, 10, 0)
 {
     this.TillableBehavior  = new TillablePercentDone();
     this.CompositeRenderer = new ComponentRenderer();
     this.CompositeRenderer.RenderQueue.Add(new StaticTexture(Dirt.GetTextureID(), RenderLayer.DirtBase));
 }