Exemplo n.º 1
0
 public void SetCursorBuilding(RenderableBuilding rb)
 {
     if (this.tempBuilding != null)
     {
         this.tempBuilding.Dispose();
     }
     this.tempBuilding = rb;
     this.GuiMgr.SetCurrentCursorBuilding(rb);
 }
Exemplo n.º 2
0
 public void CancelBuildingPlacement()
 {
     if (this.tempBuilding != null)
     {
         this.tempBuilding.Dispose();
         this.tempBuilding = null;
     }
     this.GuiMgr.HideBuildingPlacementPanel();
 }
Exemplo n.º 3
0
        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;
            }
        }