public void SetCursorBuilding(RenderableBuilding rb) { if (this.tempBuilding != null) { this.tempBuilding.Dispose(); } this.tempBuilding = rb; this.GuiMgr.SetCurrentCursorBuilding(rb); }
public void CancelBuildingPlacement() { if (this.tempBuilding != null) { this.tempBuilding.Dispose(); this.tempBuilding = null; } this.GuiMgr.HideBuildingPlacementPanel(); }
public void SetRenderBldg(RenderableBuilding b) { if (b != null && b != this.renderBldg) { this.renderBldg = b; renderNode.DetachAllObjects(); List <Entity> ents = b.entities; foreach (Entity ent in ents) { renderNode.AttachObject(ent.Clone(ent.Name + "1")); } renderNode.SetScale(b.scale); renderNode.Orientation = b.rotation; } }