示例#1
0
 public void EnterBuildMode(UnitTypes?type, ModelManager.Model model, bool gateToggle)
 {
     IsActive        = true;
     mBuildingType   = type;
     mBuildModelType = model;
     mGateToggle     = gateToggle;
 }
示例#2
0
        public void SignalModelUpdate(ModelManager.Model oldModel, IUnit unit)
        {
            UnitsByModel[oldModel].Remove(unit);
            if (!UnitsByModel.ContainsKey(unit.ModelType))
            {
                UnitsByModel[unit.ModelType] = new List <IUnit>();
            }

            UnitsByModel[unit.ModelType].Add(unit);
        }
 public void DrawBoundingBoxes(ModelManager.Model model, params Matrix[] transformations)
 {
     FillBoundingBoxBuffers(model.GetBoundingBox(Matrix.Identity));
     DrawBoundingBoxes(mCamera.ViewMatrix, mCamera.ProjectionMatrix, transformations);
 }