Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BuildingViewModel" /> class.
        /// </summary>
        /// <param name="pos">The position.</param>
        /// <param name="scale">The scale.</param>
        /// <param name="id">The identifier.</param>
        public BuildingViewModel(VRPosition pos, VRScale scale, int id)
        {
            Log.Logger.GetInstance().Warning("1scale = " + scale.Width);
            Log.Logger.GetInstance().Debug("new builView at (" + pos.X + ":" + pos.Y + ":" + pos.Rotation + ") with w=" + scale.Width + " and h=" + scale.Height);

            this.buildingModel = new BuildingModel(pos, scale, id);
            this.Model = this.buildingModel;
        }
Ejemplo n.º 2
0
 public void SetUp()
 {
     position1 = new VRPosition(42, 42, 42);
     scale1 = new VRScale(SizeEnum.Unity.BuildingWidth(), SizeEnum.Unity.BuildingHeight());
     buildingModel = new BuildingModel(position1, scale1, 0);
 }