Ejemplo n.º 1
0
        private void TestObjectFactory()
        {
            var nw = new VREM.Model.Wall();

            nw.direction = "NORTH";
            nw.texture   = "NBricks";
            var ew = new VREM.Model.Wall();

            ew.direction = "EAST";
            ew.texture   = "LimeBricks";
            var sw = new VREM.Model.Wall();

            sw.direction = "SOUTH";
            sw.texture   = "NConcrete";
            var ww = new VREM.Model.Wall();

            ww.direction = "WEST";
            ww.texture   = "MarbleBricks";

            var room = new VREM.Model.Room();

            room.floor    = "MarbleTiles";
            room.size     = new Vector3(10, 5, 10);
            room.position = new Vector3(10, -10, 10);
            room.ceiling  = "NFabric";
            room.walls    = new[]
            {
                nw, ew, sw, ww
            };

            ObjectFactory.BuildRoom(room);
        }
Ejemplo n.º 2
0
 private void LoadExhibits(DefaultNamespace.VREM.Model.Wall wall, WallOrientation orientation)
 {
     foreach (Exhibit e in wall.exhibits)
     {
         Debug.Log(string.Format("E: {0}/{1} at {2}/{3}", e.position.x, e.position.y, e.size.x, e.size.y));
         var disp = Display(e.GetURLEncodedPath(), orientation, e.position.x, e.position.y, e.size.x, e.size.y, e.light, e.GetURLEncodedAudioPath());
         disp.SetExhibitModel(e);
     }
 }