示例#1
0
 static Session()
 {
     Session.fProject           = null;
     Session.fPreferences       = new Masterplan.Preferences();
     Session.fPlayerView        = null;
     Session.fModified          = false;
     Session.fFileName          = "";
     Session.fRandom            = new System.Random();
     Session.fAddIns            = new List <IAddIn>();
     Session.Libraries          = new List <Library>();
     Session.fMainForm          = null;
     Session.fCurrentEncounter  = null;
     Session.fDisabledLibraries = new List <string>();
 }
示例#2
0
        public PlayerContext(GameContext context, int index)
        {
            Context = context;
            this.PlayerIndex = index;
            ViewForm = new PlayerViewForm(context.RenderContext);
            currentScene = new StartScreenScene(Context, this);
            ViewForm.Show();
            //TODO キャラクターのファクトリクラスの作成など
            PlayerModel = PMXModelWithPhysics.OpenLoad("mona-.pmx", context.RenderContext);
            runMotion = PlayerModel.MotionManager.AddMotionFromFile("run.vmd", false);
            PlayerModel.MotionManager.ApplyMotion(runMotion);
            EyeTextureRenderer = new OculusDisplayRenderer(context.RenderContext, context.GameWorld,0,context.OculusManager,this);

            ViewForm.WorldSpace.AddResource(EyeTextureRenderer);
            context.GameWorld.AddResource(PlayerModel);
        }
示例#3
0
        public PlayerContext(GameContext context, int index)
        {
            Context          = context;
            this.PlayerIndex = index;
            ViewForm         = new PlayerViewForm(context.RenderContext);
            currentScene     = new StartScreenScene(Context, this);
            ViewForm.Show();
            //TODO キャラクターのファクトリクラスの作成など
            PlayerModel = PMXModelWithPhysics.OpenLoad("mona-.pmx", context.RenderContext);
            runMotion   = PlayerModel.MotionManager.AddMotionFromFile("run.vmd", false);
            PlayerModel.MotionManager.ApplyMotion(runMotion);
            EyeTextureRenderer = new OculusDisplayRenderer(context.RenderContext, context.GameWorld, 0, context.OculusManager, this);

            ViewForm.WorldSpace.AddResource(EyeTextureRenderer);
            context.GameWorld.AddResource(PlayerModel);
        }