Ejemplo n.º 1
0
        public void Frame(int frameTime, ISceneManage scene, FreeRenderObject freeRender)
        {
            base.AutoValue(frameTime);

            var index = GetAuto("v");

            if (index != null)
            {
                model3D.resUrl = index.Frame(frameTime) as string;
            }

            var p = GetAuto("pos");

            if (p != null)
            {
                var obj = p.Frame(frameTime);
                if (obj != null)
                {
                    Vector3 v = (Vector3)obj;
                    obj3D.x = v.x;
                    obj3D.y = v.y;
                    obj3D.z = v.z;
                }
            }
        }
Ejemplo n.º 2
0
        public void Render(Object centity, ISceneManage scene)
        {
            AutoValue(scene.frameTime);

            for (var index = 0; index < effects.Count; index++)
            {
                var effect = effects[index];
                effect.Frame(scene.frameTime, scene, this);
                if (effect.FixInfo.Fixed)
                {
                    //            var battleModel :BattleModel = GameModelLocator.getInstance().gameModel;
                    //            var playerEntity:PlayerEntity = battleModel.getCurrentSelfPlayerEntity();
                    //            updateScaleV(battleModel.camareOrg, effect.effectModel3D.model3D, 430);
                    //            updateScale(playerEntity.fov, effect.effectModel3D.model3D, effect.oriObject3D);
                    //            updateZ(effect.fixInfo.fixZ, playerEntity.fov, effect.effectModel3D.model3D, effect.oriObject3D);
                    //            updateX(effect.fixInfo.fixX, playerEntity.fov, effect.effectModel3D.model3D, effect.oriObject3D);
                }
            }

            if (showStyle == null)
            {
                showStyle = new ShowSimpleStyle();
            }

            showStyle.ShowEffect(this, currentTime, totalTime);

            currentTime += scene.frameTime;
            //			super.render(centity, scene);
        }
Ejemplo n.º 3
0
        public void Frame(int frameTime, ISceneManage scene, FreeRenderObject freeRender)
        {
            base.AutoValue(frameTime);

            var p = GetAuto("pos");

            if (p != null)
            {
                var obj = p.Frame(frameTime);
                if (obj != null)
                {
                    Vector3 v = (Vector3)obj;
                    obj3D.x = v.x;
                    obj3D.y = v.y;
                    obj3D.z = v.z;
                }
            }
            var s = GetAuto("scale");

            if (s != null)
            {
                object obj = s.Frame(frameTime);
                if (obj != null)
                {
                    Vector3 v = (Vector3)obj;
                    obj3D.scaleX = (float)v.x;
                    obj3D.scaleY = (float)v.y;
                    obj3D.scaleZ = (float)v.z;
                }
            }
        }