Exemplo n.º 1
0
        static view()
        {
            _GammaTable = new byte[256];

            _CShift_empty = new cshift_t(new[] { 130, 80, 50 }, 0);
            _CShift_water = new cshift_t(new[] { 130, 80, 50 }, 128);
            _CShift_slime = new cshift_t(new[] { 0, 25, 5 }, 150);
            _CShift_lava  = new cshift_t(new[] { 255, 80, 0 }, 150);
        }
Exemplo n.º 2
0
        public View(Host host)
        {
            Host = host;

            _GammaTable = new Byte[256];

            _CShift_empty = new cshift_t(new[] { 130, 80, 50 }, 0);
            _CShift_water = new cshift_t(new[] { 130, 80, 50 }, 128);
            _CShift_slime = new cshift_t(new[] { 0, 25, 5 }, 150);
            _CShift_lava  = new cshift_t(new[] { 255, 80, 0 }, 150);
        }
Exemplo n.º 3
0
        public client_state_t()
        {
            stats        = new Int32[QStatsDef.MAX_CL_STATS];
            item_gettime = new Single[32]; // ???????????

            cshifts = new cshift_t[ColorShift.NUM_CSHIFTS];
            for (var i = 0; i < ColorShift.NUM_CSHIFTS; i++)
            {
                cshifts[i] = new cshift_t();
            }

            prev_cshifts = new cshift_t[ColorShift.NUM_CSHIFTS];
            for (var i = 0; i < ColorShift.NUM_CSHIFTS; i++)
            {
                prev_cshifts[i] = new cshift_t();
            }

            mviewangles    = new Vector3[2]; //??????
            mvelocity      = new Vector3[2];
            mtime          = new Double[2];
            model_precache = new ModelData[QDef.MAX_MODELS];
            sound_precache = new SoundEffect_t[QDef.MAX_SOUNDS];
            viewent        = new Entity();
        }
Exemplo n.º 4
0
        static Vector3 _Up; // vec3_t up

        #endregion Fields

        #region Constructors

        static View()
        {
            _GammaTable = new byte[256];

            _CShift_empty = new cshift_t(new[] { 130, 80, 50 }, 0);
            _CShift_water = new cshift_t(new[] { 130, 80, 50 }, 128);
            _CShift_slime = new cshift_t(new[] { 0, 25, 5 }, 150);
            _CShift_lava = new cshift_t(new[] { 255, 80, 0 }, 150);
        }