public void EnterBuildMode(UnitTypes?type, ModelManager.Model model, bool gateToggle) { IsActive = true; mBuildingType = type; mBuildModelType = model; mGateToggle = gateToggle; }
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); }