예제 #1
0
        public SystemView Get([FromQuery] int?index)
        {
            WorldBuilder wb = new WorldBuilder();

            Models.System s;
            World         world;
            State         initialState;

            switch (index)
            {
            case 1:
                world        = wb.GetMuseumWorld();
                initialState = new State(0, 0, world.Cameras);
                s            = new Models.System(world, initialState);
                break;

            case 2:
                world        = wb.GetEmptyWorld();
                initialState = new State(0, 0, world.Cameras);
                s            = new Models.System(world, initialState);
                break;

            default:
                world        = wb.GetDefaultWorld();
                initialState = new State(0, 0, world.Cameras);
                s            = new Models.System(world, initialState);
                break;
            }
            return(SetSystem(s));
        }