Example #1
0
 public void DoMotion(MotionCommand motionCommand)
 {
     if (ViewObject != null)
     {
         ViewObject.DoMotion(motionCommand);
     }
 }
Example #2
0
 public void DoStance(MotionStance stance)
 {
     if (ViewObject != null)
     {
         ViewObject.DoStance(stance);
     }
 }
Example #3
0
        public void LoadEnvironment(uint envID)
        {
            ViewObject  = null;
            Environment = new R_Environment(envID);

            ModelType = ModelType.Environment;
        }
Example #4
0
        public void InitObject(uint setupID)
        {
            ViewObject = new ViewObject(setupID);

            if (Setup.Setup._setup.DefaultScript != 0)
            {
                LoadScript(Setup.Setup._setup.DefaultScript);
            }
        }
Example #5
0
        public void Update(GameTime time)
        {
            if (ViewObject != null)
            {
                ViewObject.Update(time);
            }

            if (Camera != null)
            {
                Camera.Update(time);
            }

            var keyboardState = Keyboard.GetState();

            if (keyboardState.IsKeyDown(Keys.OemPeriod) && !PrevKeyboardState.IsKeyDown(Keys.OemPeriod))
            {
                PolyIdx++;
                Console.WriteLine($"PolyIdx: {PolyIdx}");
            }
            if (keyboardState.IsKeyDown(Keys.OemComma) && !PrevKeyboardState.IsKeyDown(Keys.OemComma))
            {
                PolyIdx--;
                Console.WriteLine($"PolyIdx: {PolyIdx}");
            }

            if (keyboardState.IsKeyDown(Keys.OemQuestion) && !PrevKeyboardState.IsKeyDown(Keys.OemQuestion))
            {
                PartIdx++;
                Console.WriteLine($"PartIdx: {PartIdx}");
            }
            if (keyboardState.IsKeyDown(Keys.M) && !PrevKeyboardState.IsKeyDown(Keys.M))
            {
                PartIdx--;
                Console.WriteLine($"PartIdx: {PartIdx}");
            }
        }