コード例 #1
0
ファイル: Grass.cs プロジェクト: philipbawn/MagicalLife
 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));
 }
コード例 #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));
 }