Esempio n. 1
0
    private static void gmGmkSsOblongDrawFunc(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.OBS_ACTION3D_NN_WORK obj3d = obj_work.obj_3d;
        if (!AppMain.GmMainIsDrawEnable() || ((int)obj_work.disp_flag & 32) != 0)
        {
            return;
        }
        if (AppMain.gmGmkSsOblongDrawFunctvx == null)
        {
            AppMain.gmGmkSsOblongDrawFunctvx = new AppMain.TVX_FILE((AppMain.AmbChunk)AppMain.amBindGet(AppMain.gm_gmk_ss_oblong_obj_tvx_list, 0));
        }
        AppMain.NNS_TEXLIST texlist = obj_work.obj_3d.texlist;
        uint dispLightDisable       = AppMain.GMD_TVX_DISP_LIGHT_DISABLE;
        uint num1 = 0;

        if (obj_work.dir.z != (ushort)0)
        {
            dispLightDisable |= AppMain.GMD_TVX_DISP_ROTATE;
            num1              = (uint)obj_work.dir.z;
        }
        AppMain.GMS_TVX_EX_WORK ex_work = new AppMain.GMS_TVX_EX_WORK();
        uint num2 = (uint)(obj_work.user_timer / 3);

        ex_work.u_wrap  = 1;
        ex_work.v_wrap  = 1;
        ex_work.coord.u = 0.125f * (float)(num2 % 8U) + AppMain.gm_gmk_ss_oblong_mat_color[(int)obj_work.user_work].u;
        ex_work.coord.v = 0.125f * (float)(num2 / 8U) + AppMain.gm_gmk_ss_oblong_mat_color[(int)obj_work.user_work].v;
        ex_work.color   = uint.MaxValue;
        AppMain.GmTvxSetModelEx(AppMain.gmGmkSsOblongDrawFunctvx, texlist, ref obj_work.pos, ref obj_work.scale, dispLightDisable, (short)num1, ref ex_work);
    }
Esempio n. 2
0
 public AppMain.AMS_TRAIL_PARAM Assign(AppMain.AMS_TRAIL_PARAM source)
 {
     if (this == source)
     {
         return(this);
     }
     this.startColor     = source.startColor;
     this.endColor       = source.endColor;
     this.ptclColor      = source.ptclColor;
     this.startSize      = source.startSize;
     this.endSize        = source.endSize;
     this.trail_obj_work = source.trail_obj_work;
     this.texlist        = source.texlist;
     this.texId          = source.texId;
     this.life           = source.life;
     this.vanish_time    = source.vanish_time;
     this.zBias          = source.zBias;
     this.ptclSize       = source.ptclSize;
     this.partsNum       = source.partsNum;
     this.ptclFlag       = source.ptclFlag;
     this.ptclTexId      = source.ptclTexId;
     this.blendType      = source.blendType;
     this.zTest          = source.zTest;
     this.zMask          = source.zMask;
     this.time           = source.time;
     this.vanish_rate    = source.vanish_rate;
     this.trailId        = source.trailId;
     this.trailPartsId   = source.trailPartsId;
     this.trailPartsNum  = source.trailPartsNum;
     this.state          = source.state;
     this.list_no        = source.list_no;
     return(this);
 }
Esempio n. 3
0
    // Token: 0x06001A3A RID: 6714 RVA: 0x000EAE04 File Offset: 0x000E9004
    private void amMotionDraw(uint state, AppMain.AMS_MOTION motion, AppMain.NNS_TEXLIST texlist, uint drawflag, AppMain.NNS_MATERIALCALLBACK_FUNC func)
    {
        int node_num = motion.node_num;

        AppMain.AMS_PARAM_DRAW_MOTION_TRS ams_PARAM_DRAW_MOTION_TRS = AppMain.amDrawAlloc_AMS_PARAM_DRAW_MOTION_TRS();
        AppMain.NNS_MATRIX nns_MATRIX = ams_PARAM_DRAW_MOTION_TRS.mtx = AppMain.amDrawAlloc_NNS_MATRIX();
        AppMain.nnCopyMatrix(nns_MATRIX, AppMain.amMatrixGetCurrent());
        ams_PARAM_DRAW_MOTION_TRS._object       = motion._object;
        ams_PARAM_DRAW_MOTION_TRS.mtx           = nns_MATRIX;
        ams_PARAM_DRAW_MOTION_TRS.sub_obj_type  = 0U;
        ams_PARAM_DRAW_MOTION_TRS.flag          = drawflag;
        ams_PARAM_DRAW_MOTION_TRS.texlist       = texlist;
        ams_PARAM_DRAW_MOTION_TRS.trslist       = new AppMain.NNS_TRS[node_num];
        ams_PARAM_DRAW_MOTION_TRS.material_func = func;
        for (int i = 0; i < node_num; i++)
        {
            ams_PARAM_DRAW_MOTION_TRS.trslist[i] = AppMain.amDrawAlloc_NNS_TRS();
            ams_PARAM_DRAW_MOTION_TRS.trslist[i].Assign(motion.data[i]);
        }
        int motion_id = motion.mbuf[0].motion_id;

        ams_PARAM_DRAW_MOTION_TRS.motion = motion.mtnfile[motion_id >> 16].motion[motion_id & 65535];
        ams_PARAM_DRAW_MOTION_TRS.frame  = motion.mbuf[0].frame;
        AppMain.amDrawRegistCommand(state, -11, ams_PARAM_DRAW_MOTION_TRS);
    }
Esempio n. 4
0
 private void amMotionMaterialDraw(
     AppMain.AMS_MOTION motion,
     AppMain.NNS_TEXLIST texlist,
     uint drawflag)
 {
     this.amMotionMaterialDraw(motion, texlist, drawflag, (AppMain.NNS_MATERIALCALLBACK_FUNC)null);
 }
Esempio n. 5
0
    private void amMotionDraw(
        AppMain.AMS_MOTION motion,
        AppMain.NNS_TEXLIST texlist,
        uint drawflag,
        AppMain.NNS_MATERIALCALLBACK_FUNC func)
    {
        AppMain.AMS_PARAM_DRAW_MOTION_TRS paramDrawMotionTrs;
        AppMain.AMS_COMMAND_HEADER        command = new AppMain.AMS_COMMAND_HEADER()
        {
            param      = (object)(paramDrawMotionTrs = new AppMain.AMS_PARAM_DRAW_MOTION_TRS()),
            command_id = -11
        };
        command.param = (object)paramDrawMotionTrs;
        paramDrawMotionTrs._object       = motion._object;
        paramDrawMotionTrs.mtx           = (AppMain.NNS_MATRIX)null;
        paramDrawMotionTrs.sub_obj_type  = 0U;
        paramDrawMotionTrs.flag          = drawflag;
        paramDrawMotionTrs.texlist       = texlist;
        paramDrawMotionTrs.trslist       = motion.data;
        paramDrawMotionTrs.material_func = func;
        int motionId = motion.mbuf[0].motion_id;

        paramDrawMotionTrs.motion = motion.mtnfile[motionId >> 16].motion[motionId & (int)ushort.MaxValue];
        paramDrawMotionTrs.frame  = motion.mbuf[0].frame;
        AppMain._amDrawMotionTRS(command, drawflag);
    }
Esempio n. 6
0
 private void amMotionMaterialDraw(
     uint state,
     AppMain.AMS_MOTION motion,
     AppMain.NNS_TEXLIST texlist)
 {
     this.amMotionMaterialDraw(state, motion, texlist, 0U, (AppMain.NNS_MATERIALCALLBACK_FUNC)null);
 }
Esempio n. 7
0
    // Token: 0x06001A43 RID: 6723 RVA: 0x000EB138 File Offset: 0x000E9338
    private void amMotionMaterialDraw(AppMain.AMS_MOTION motion, AppMain.NNS_TEXLIST texlist, uint drawflag, AppMain.NNS_MATERIALCALLBACK_FUNC func)
    {
        if (motion.mmobject == null)
        {
            this.amMotionDraw(motion, texlist, drawflag);
            return;
        }
        AppMain.AMS_COMMAND_HEADER        ams_COMMAND_HEADER        = new AppMain.AMS_COMMAND_HEADER();
        AppMain.AMS_PARAM_DRAW_MOTION_TRS ams_PARAM_DRAW_MOTION_TRS = (AppMain.AMS_PARAM_DRAW_MOTION_TRS)(ams_COMMAND_HEADER.param = new AppMain.AMS_PARAM_DRAW_MOTION_TRS());
        ams_COMMAND_HEADER.command_id           = -12;
        ams_COMMAND_HEADER.param                = ams_PARAM_DRAW_MOTION_TRS;
        ams_PARAM_DRAW_MOTION_TRS._object       = motion.mmobject;
        ams_PARAM_DRAW_MOTION_TRS.mtx           = null;
        ams_PARAM_DRAW_MOTION_TRS.sub_obj_type  = 0U;
        ams_PARAM_DRAW_MOTION_TRS.flag          = drawflag;
        ams_PARAM_DRAW_MOTION_TRS.texlist       = texlist;
        ams_PARAM_DRAW_MOTION_TRS.trslist       = motion.data;
        ams_PARAM_DRAW_MOTION_TRS.material_func = func;
        ams_PARAM_DRAW_MOTION_TRS.mmotion       = null;
        ams_PARAM_DRAW_MOTION_TRS.mframe        = 0f;
        int motion_id = motion.mbuf[0].motion_id;

        if (motion.mtnfile[motion_id >> 16].file != null)
        {
            ams_PARAM_DRAW_MOTION_TRS.motion = motion.mtnfile[motion_id >> 16].motion[motion_id & 65535];
            ams_PARAM_DRAW_MOTION_TRS.frame  = motion.mbuf[0].frame;
        }
        else
        {
            ams_PARAM_DRAW_MOTION_TRS.motion = null;
            ams_PARAM_DRAW_MOTION_TRS.frame  = 0f;
        }
        AppMain._amDrawMotionTRS(ams_COMMAND_HEADER, drawflag);
    }
Esempio n. 8
0
    private static void gmGmkSsCircleDrawFunc(AppMain.OBS_OBJECT_WORK obj_work)
    {
        if (!AppMain.GmMainIsDrawEnable() || ((int)obj_work.disp_flag & 32) != 0)
        {
            return;
        }
        AppMain.TVX_FILE model_tvx;
        if (AppMain.gm_gmk_ss_circle_obj_tvx_list.buf[0] == null)
        {
            model_tvx = new AppMain.TVX_FILE((AppMain.AmbChunk)AppMain.amBindGet(AppMain.gm_gmk_ss_circle_obj_tvx_list, 0));
            AppMain.gm_gmk_ss_circle_obj_tvx_list.buf[0] = (object)model_tvx;
        }
        else
        {
            model_tvx = (AppMain.TVX_FILE)AppMain.gm_gmk_ss_circle_obj_tvx_list.buf[0];
        }
        AppMain.NNS_TEXLIST texlist = obj_work.obj_3d.texlist;
        uint flag = AppMain.GMD_TVX_DISP_LIGHT_DISABLE | AppMain.GMD_TVX_DISP_ROTATE;

        AppMain.GMS_TVX_EX_WORK ex_work = new AppMain.GMS_TVX_EX_WORK();
        ex_work.u_wrap  = 1;
        ex_work.v_wrap  = 1;
        ex_work.coord.u = 0.0f;
        ex_work.coord.v = 0.0f;
        ex_work.color   = uint.MaxValue;
        if ((double)obj_work.obj_3d.draw_state.alpha.alpha == 0.5)
        {
            ex_work.color = 4294967176U;
            flag         |= AppMain.GMD_TVX_DISP_BLEND;
        }
        AppMain.GmTvxSetModelEx(model_tvx, texlist, ref obj_work.pos, ref obj_work.scale, flag, (short)-obj_work.dir.z, ref ex_work);
    }
Esempio n. 9
0
 public static void amEffectDraw(AppMain.AMS_AME_ECB ecb, AppMain.NNS_TEXLIST texlist, uint state)
 {
     ecb.drawState = state;
     if (AppMain._am_enable_draw == 0 || ecb.entry_num <= 0)
     {
         return;
     }
     if ((double)ecb.bounding.radius > 0.0)
     {
         AppMain.NNS_VECTOR4D pPos = new AppMain.NNS_VECTOR4D();
         if (AppMain._amEffectFrustumCulling(pPos, AppMain._am_view_frustum, ecb.bounding) == 0)
         {
             return;
         }
         //AppMain.GlobalPool<AppMain.NNS_VECTOR4D>.Release(pPos);
     }
     for (AppMain.AMS_AME_ENTRY amsAmeEntry = ecb.entry_head; amsAmeEntry != null; amsAmeEntry = (AppMain.AMS_AME_ENTRY)amsAmeEntry.next)
     {
         AppMain.AMS_AME_RUNTIME runtime = amsAmeEntry.runtime;
         runtime.texlist = texlist;
         if (AppMain.AMD_AME_SUPER_CLASS_ID(runtime.node) == 512 && runtime.active_num != (short)0)
         {
             int num = AppMain._am_particle_func[(AppMain.AMD_AME_CLASS_ID(runtime.node) << 2) + 2]((object)runtime);
         }
     }
 }
Esempio n. 10
0
    // Token: 0x060018E8 RID: 6376 RVA: 0x000E2E04 File Offset: 0x000E1004
    private static void aoWinSysMakeCommandA(uint state, AppMain.NNS_TEXLIST texlist, uint tex_id, float x, float y, float w, float h, float z)
    {
        AppMain.AMS_PARAM_DRAW_PRIMITIVE ams_PARAM_DRAW_PRIMITIVE = GlobalPool <AppMain.AMS_PARAM_DRAW_PRIMITIVE> .Alloc();

        ams_PARAM_DRAW_PRIMITIVE.mtx      = null;
        ams_PARAM_DRAW_PRIMITIVE.vtxPCT3D = null;
        ams_PARAM_DRAW_PRIMITIVE.format3D = 4;
        ams_PARAM_DRAW_PRIMITIVE.type     = 1;
        ams_PARAM_DRAW_PRIMITIVE.count    = 8;
        ams_PARAM_DRAW_PRIMITIVE.texlist  = texlist;
        ams_PARAM_DRAW_PRIMITIVE.texId    = ( int )tex_id;
        ams_PARAM_DRAW_PRIMITIVE.ablend   = 1;
        ams_PARAM_DRAW_PRIMITIVE.sortZ    = z;
        ams_PARAM_DRAW_PRIMITIVE.aTest    = 0;
        ams_PARAM_DRAW_PRIMITIVE.zMask    = 1;
        ams_PARAM_DRAW_PRIMITIVE.zTest    = 0;
        ams_PARAM_DRAW_PRIMITIVE.noSort   = 1;
        ams_PARAM_DRAW_PRIMITIVE.uwrap    = 1;
        ams_PARAM_DRAW_PRIMITIVE.vwrap    = 1;
        AppMain.NNS_PRIM3D_PCT_ARRAY nns_PRIM3D_PCT_ARRAY = AppMain.amDrawAlloc_NNS_PRIM3D_PCT(8);
        AppMain.aoWinSysMakeVertex00A(nns_PRIM3D_PCT_ARRAY, x, y, w, h);
        ams_PARAM_DRAW_PRIMITIVE.vtxPCT3D = nns_PRIM3D_PCT_ARRAY;
        AppMain.amDrawPrimitive3D(state, ams_PARAM_DRAW_PRIMITIVE);
        nns_PRIM3D_PCT_ARRAY = AppMain.amDrawAlloc_NNS_PRIM3D_PCT(8);
        AppMain.aoWinSysMakeVertex01A(nns_PRIM3D_PCT_ARRAY, x, y, w, h);
        ams_PARAM_DRAW_PRIMITIVE.vtxPCT3D = nns_PRIM3D_PCT_ARRAY;
        AppMain.amDrawPrimitive3D(state, ams_PARAM_DRAW_PRIMITIVE);
        nns_PRIM3D_PCT_ARRAY = AppMain.amDrawAlloc_NNS_PRIM3D_PCT(8);
        AppMain.aoWinSysMakeVertex02A(nns_PRIM3D_PCT_ARRAY, x, y, w, h);
        ams_PARAM_DRAW_PRIMITIVE.vtxPCT3D = nns_PRIM3D_PCT_ARRAY;
        AppMain.amDrawPrimitive3D(state, ams_PARAM_DRAW_PRIMITIVE);
        GlobalPool <AppMain.AMS_PARAM_DRAW_PRIMITIVE> .Release(ams_PARAM_DRAW_PRIMITIVE);
    }
 // Token: 0x06001863 RID: 6243 RVA: 0x000DB890 File Offset: 0x000D9A90
 public static int amTextureRelease(AppMain.NNS_TEXLIST texlist)
 {
     return(AppMain.amDrawRegistCommand(2, new AppMain.AMS_PARAM_RELEASE_TEXTURE
     {
         texlist = texlist
     }));
 }
Esempio n. 12
0
    // Token: 0x060018E7 RID: 6375 RVA: 0x000E2D4C File Offset: 0x000E0F4C
    private static void aoWinSysDrawPrimitveA(AppMain.NNS_TEXLIST texlist, uint tex_id, float x, float y, float w, float h)
    {
        AppMain.NNS_PRIM3D_PCT_ARRAY nns_PRIM3D_PCT_ARRAY = AppMain.amDrawAlloc_NNS_PRIM3D_PCT(8);
        AppMain.NNS_PRIM3D_PCT[]     buffer = nns_PRIM3D_PCT_ARRAY.buffer;
        int offset = nns_PRIM3D_PCT_ARRAY.offset;

        AppMain.amDrawPushState();
        AppMain.amDrawInitState();
        AppMain.nnSetPrimitive3DAlphaFuncGL(519U, 0.5f);
        AppMain.nnSetPrimitive3DDepthMaskGL(false);
        AppMain.nnSetPrimitive3DDepthFuncGL(519U);
        AppMain.nnSetPrimitiveBlend(1);
        AppMain.amDrawSetFog(0);
        AppMain.nnSetPrimitiveTexNum(texlist, ( int )tex_id);
        AppMain.nnSetPrimitiveTexState(0, 0, 1, 1);
        AppMain.nnBeginDrawPrimitive3D(4, 1, 0, 0);
        AppMain.aoWinSysMakeVertex00A(nns_PRIM3D_PCT_ARRAY, x, y, w, h);
        AppMain.nnDrawPrimitive3D(1, nns_PRIM3D_PCT_ARRAY, 8);
        AppMain.aoWinSysMakeVertex01A(nns_PRIM3D_PCT_ARRAY, x, y, w, h);
        AppMain.nnDrawPrimitive3D(1, nns_PRIM3D_PCT_ARRAY, 8);
        AppMain.aoWinSysMakeVertex02A(nns_PRIM3D_PCT_ARRAY, x, y, w, h);
        AppMain.nnDrawPrimitive3D(1, nns_PRIM3D_PCT_ARRAY, 8);
        AppMain.nnEndDrawPrimitive3D();
        AppMain.amDrawPopState();
    }
Esempio n. 13
0
    private static void gmGmkSsSquareDrawFunc(AppMain.OBS_OBJECT_WORK obj_work)
    {
        if (!AppMain.GmMainIsDrawEnable() || ((int)obj_work.disp_flag & 32) != 0)
        {
            return;
        }
        AppMain.TVX_FILE model_tvx;
        if (AppMain.gm_gmk_ss_square_obj_tvx_list.buf[0] == null)
        {
            model_tvx = new AppMain.TVX_FILE((AppMain.AmbChunk)AppMain.amBindGet(AppMain.gm_gmk_ss_square_obj_tvx_list, 0));
            AppMain.gm_gmk_ss_square_obj_tvx_list.buf[0] = (object)model_tvx;
        }
        else
        {
            model_tvx = (AppMain.TVX_FILE)AppMain.gm_gmk_ss_square_obj_tvx_list.buf[0];
        }
        AppMain.NNS_TEXLIST     texlist = obj_work.obj_3d.texlist;
        AppMain.GMS_TVX_EX_WORK ex_work = new AppMain.GMS_TVX_EX_WORK();
        uint num = (uint)(obj_work.user_timer >> 5 & 31);

        ex_work.u_wrap  = 1;
        ex_work.v_wrap  = 1;
        ex_work.coord.u = 0.125f * (float)((int)AppMain.gm_gmk_ss_square_uv_parameter[(int)num] % 4) + AppMain.gm_gmk_ss_square_mat_color[(int)(obj_work.user_work - 1U)].u;
        ex_work.coord.v = 0.125f * (float)((int)AppMain.gm_gmk_ss_square_uv_parameter[(int)num] / 4) + AppMain.gm_gmk_ss_square_mat_color[(int)(obj_work.user_work - 1U)].v;
        ex_work.color   = uint.MaxValue;
        AppMain.GmTvxSetModelEx(model_tvx, texlist, ref obj_work.pos, ref obj_work.scale, AppMain.GMD_TVX_DISP_LIGHT_DISABLE, (short)0, ref ex_work);
    }
    // Token: 0x06000771 RID: 1905 RVA: 0x00041C30 File Offset: 0x0003FE30
    private static void gmGmkSsEnduranceDrawFunc(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.OBS_ACTION3D_NN_WORK obj_3d = obj_work.obj_3d;
        if (!AppMain.GmMainIsDrawEnable())
        {
            return;
        }
        if ((obj_work.disp_flag & 32U) != 0U)
        {
            return;
        }
        AppMain.TVX_FILE tvx_FILE;
        if (AppMain.gm_gmk_ss_endurance_obj_tvx_list.buf[0] == null)
        {
            tvx_FILE = new AppMain.TVX_FILE((AppMain.AmbChunk)AppMain.amBindGet(AppMain.gm_gmk_ss_endurance_obj_tvx_list, 0));
            AppMain.gm_gmk_ss_endurance_obj_tvx_list.buf[0] = tvx_FILE;
        }
        else
        {
            tvx_FILE = (AppMain.TVX_FILE)AppMain.gm_gmk_ss_endurance_obj_tvx_list.buf[0];
        }
        AppMain.NNS_TEXLIST     texlist         = obj_work.obj_3d.texlist;
        AppMain.GMS_TVX_EX_WORK gms_TVX_EX_WORK = default(AppMain.GMS_TVX_EX_WORK);
        uint num = (uint)obj_work.user_timer >> 10 & 31U;

        gms_TVX_EX_WORK.u_wrap  = 1;
        gms_TVX_EX_WORK.v_wrap  = 1;
        gms_TVX_EX_WORK.coord.u = 0.125f * ( float )(AppMain.gm_gmk_ss_endurance_uv_parameter[( int )(( UIntPtr )num)] % 4) + AppMain.gm_gmk_ss_endurance_mat_color[( int )(( UIntPtr )obj_work.user_work)].u;
        gms_TVX_EX_WORK.coord.v = 0.125f * ( float )(AppMain.gm_gmk_ss_endurance_uv_parameter[( int )(( UIntPtr )num)] / 4) + AppMain.gm_gmk_ss_endurance_mat_color[( int )(( UIntPtr )obj_work.user_work)].v;
        gms_TVX_EX_WORK.color   = uint.MaxValue;
        AppMain.GmTvxSetModelEx(tvx_FILE, texlist, ref obj_work.pos, ref obj_work.scale, AppMain.GMD_TVX_DISP_SCALE | AppMain.GMD_TVX_DISP_LIGHT_DISABLE, 0, ref gms_TVX_EX_WORK);
    }
Esempio n. 15
0
    private void amMotionDraw(
        uint state,
        AppMain.AMS_MOTION motion,
        AppMain.NNS_TEXLIST texlist,
        uint drawflag,
        AppMain.NNS_MATERIALCALLBACK_FUNC func)
    {
        int nodeNum = motion.node_num;

        AppMain.AMS_PARAM_DRAW_MOTION_TRS paramDrawMotionTrs = AppMain.amDrawAlloc_AMS_PARAM_DRAW_MOTION_TRS();
        AppMain.NNS_MATRIX dst = paramDrawMotionTrs.mtx = AppMain.amDrawAlloc_NNS_MATRIX();
        AppMain.nnCopyMatrix(dst, AppMain.amMatrixGetCurrent());
        paramDrawMotionTrs._object       = motion._object;
        paramDrawMotionTrs.mtx           = dst;
        paramDrawMotionTrs.sub_obj_type  = 0U;
        paramDrawMotionTrs.flag          = drawflag;
        paramDrawMotionTrs.texlist       = texlist;
        paramDrawMotionTrs.trslist       = new AppMain.NNS_TRS[nodeNum];
        paramDrawMotionTrs.material_func = func;
        for (int index = 0; index < nodeNum; ++index)
        {
            paramDrawMotionTrs.trslist[index] = AppMain.amDrawAlloc_NNS_TRS();
            paramDrawMotionTrs.trslist[index].Assign(motion.data[index]);
        }
        int motionId = motion.mbuf[0].motion_id;

        paramDrawMotionTrs.motion = motion.mtnfile[motionId >> 16].motion[motionId & (int)ushort.MaxValue];
        paramDrawMotionTrs.frame  = motion.mbuf[0].frame;
        AppMain.amDrawRegistCommand(state, -11, (object)paramDrawMotionTrs);
    }
Esempio n. 16
0
    private static void gmGmkSsRingGateDrawFunc(AppMain.OBS_OBJECT_WORK obj_work)
    {
        if (!AppMain.GmMainIsDrawEnable() || ((int)obj_work.disp_flag & 32) != 0)
        {
            return;
        }
        AppMain.TVX_FILE model_tvx;
        if (AppMain.gm_gmk_ss_ringgate_obj_tvx_list.buf[0] == null)
        {
            model_tvx = new AppMain.TVX_FILE((AppMain.AmbChunk)AppMain.amBindGet(AppMain.gm_gmk_ss_ringgate_obj_tvx_list, 0));
            AppMain.gm_gmk_ss_ringgate_obj_tvx_list.buf[0] = (object)model_tvx;
        }
        else
        {
            model_tvx = (AppMain.TVX_FILE)AppMain.gm_gmk_ss_ringgate_obj_tvx_list.buf[0];
        }
        AppMain.NNS_TEXLIST texlist = obj_work.obj_3d.texlist;
        uint dispLightDisable       = AppMain.GMD_TVX_DISP_LIGHT_DISABLE;
        uint num1 = 0;

        if (obj_work.dir.z != (ushort)0)
        {
            dispLightDisable |= AppMain.GMD_TVX_DISP_ROTATE;
            num1              = (uint)obj_work.dir.z;
        }
        AppMain.GMS_TVX_EX_WORK ex_work = new AppMain.GMS_TVX_EX_WORK();
        uint num2 = obj_work.user_flag >> 13 & 3U;

        ex_work.u_wrap  = 0;
        ex_work.v_wrap  = 0;
        ex_work.coord.u = -0.25f * (float)num2;
        ex_work.coord.v = 0.0f;
        ex_work.color   = uint.MaxValue;
        AppMain.GmTvxSetModelEx(model_tvx, texlist, ref obj_work.pos, ref obj_work.scale, dispLightDisable, (short)num1, ref ex_work);
    }
Esempio n. 17
0
 private void dmLogoSegaCreateTrail(AppMain.OBS_OBJECT_WORK obj_work)
 {
     AppMain.NNS_TEXLIST texlist = AppMain.dm_logo_sega_aos_tex[0].texlist;
     AppMain.amTrailMakeEffect(new AppMain.AMS_TRAIL_PARAM()
     {
         startColor =
         {
             r = 0.0f,
             g = 0.0f,
             b =   1f,
             a = 1f
         },
         endColor =
         {
             r = 0.0f,
             g = 0.0f,
             b =   1f,
             a = 0.0f
         },
         startSize      = 88f,
         endSize        = 88f,
         life           = 35f,
         vanish_time    = 10f,
         trail_obj_work = obj_work,
         partsNum       = (short)63,
         zBias          = -65536f,
         texId          = texlist.nTex - 1,
         blendType      = (short)0,
         zTest          = (short)1
     }, (ushort)1, (short)1);
 }
Esempio n. 18
0
    // Token: 0x06000B23 RID: 2851 RVA: 0x000647C8 File Offset: 0x000629C8
    private static void gmGmkSsOblongDrawFunc(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.OBS_ACTION3D_NN_WORK obj_3d = obj_work.obj_3d;
        if (!AppMain.GmMainIsDrawEnable())
        {
            return;
        }
        if ((obj_work.disp_flag & 32U) != 0U)
        {
            return;
        }
        if (AppMain.gmGmkSsOblongDrawFunctvx == null)
        {
            AppMain.gmGmkSsOblongDrawFunctvx = new AppMain.TVX_FILE((AppMain.AmbChunk)AppMain.amBindGet(AppMain.gm_gmk_ss_oblong_obj_tvx_list, 0));
        }
        AppMain.NNS_TEXLIST texlist = obj_work.obj_3d.texlist;
        uint num  = AppMain.GMD_TVX_DISP_LIGHT_DISABLE;
        uint num2 = 0U;

        if (obj_work.dir.z != 0)
        {
            num |= AppMain.GMD_TVX_DISP_ROTATE;
            num2 = ( uint )obj_work.dir.z;
        }
        AppMain.GMS_TVX_EX_WORK gms_TVX_EX_WORK = default(AppMain.GMS_TVX_EX_WORK);
        uint num3 = (uint)(obj_work.user_timer / 3);

        gms_TVX_EX_WORK.u_wrap  = 1;
        gms_TVX_EX_WORK.v_wrap  = 1;
        gms_TVX_EX_WORK.coord.u = 0.125f * (num3 % 8U) + AppMain.gm_gmk_ss_oblong_mat_color[( int )(( UIntPtr )obj_work.user_work)].u;
        gms_TVX_EX_WORK.coord.v = 0.125f * (num3 / 8U) + AppMain.gm_gmk_ss_oblong_mat_color[( int )(( UIntPtr )obj_work.user_work)].v;
        gms_TVX_EX_WORK.color   = uint.MaxValue;
        AppMain.GmTvxSetModelEx(AppMain.gmGmkSsOblongDrawFunctvx, texlist, ref obj_work.pos, ref obj_work.scale, num, ( short )num2, ref gms_TVX_EX_WORK);
    }
Esempio n. 19
0
    // Token: 0x06000284 RID: 644 RVA: 0x00014B44 File Offset: 0x00012D44
    private static void gmGmkBeltConveyor_ppOut(OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_BELTC_WORK gms_GMK_BELTC_WORK = (AppMain.GMS_GMK_BELTC_WORK)obj_work;
        if (!AppMain.GmMainIsDrawEnable())
        {
            return;
        }
        if ((obj_work.disp_flag & 32U) != 0U)
        {
            return;
        }
        if (AppMain._tvx_roller == null)
        {
            AppMain._tvx_roller    = new AppMain.TVX_FILE(( AmbChunk )AmBind.Get(AppMain.gm_gmk_beltconv_obj_tvx_list, 0));
            AppMain._tvx_axis      = new AppMain.TVX_FILE(( AmbChunk )AmBind.Get(AppMain.gm_gmk_beltconv_obj_tvx_list, 1));
            AppMain._tvx_belt_up   = new AppMain.TVX_FILE(( AmbChunk )AmBind.Get(AppMain.gm_gmk_beltconv_obj_tvx_list, 2));
            AppMain._tvx_belt_down = new AppMain.TVX_FILE(( AmbChunk )AmBind.Get(AppMain.gm_gmk_beltconv_obj_tvx_list, 3));
        }
        AppMain.TVX_FILE    tvx_roller    = AppMain._tvx_roller;
        AppMain.TVX_FILE    tvx_axis      = AppMain._tvx_axis;
        AppMain.TVX_FILE    tvx_belt_up   = AppMain._tvx_belt_up;
        AppMain.TVX_FILE    tvx_belt_down = AppMain._tvx_belt_down;
        AppMain.NNS_TEXLIST texlist       = obj_work.obj_3d.texlist;
        short rotate_z = (short)(-(short)obj_work.dir.z);

        AppMain.VecFx32 pos = obj_work.pos;
        AppMain.GmTvxSetModel(tvx_roller, texlist, ref pos, ref obj_work.scale, AppMain.GMD_TVX_DISP_ROTATE, rotate_z);
        pos.z += 4096;
        AppMain.GmTvxSetModel(tvx_axis, texlist, ref pos, ref obj_work.scale, 0U, 0);
        pos.x += gms_GMK_BELTC_WORK.roller;
        AppMain.GmTvxSetModel(tvx_axis, texlist, ref pos, ref obj_work.scale, 0U, 0);
        pos.z -= 4096;
        AppMain.GmTvxSetModel(tvx_roller, texlist, ref pos, ref obj_work.scale, AppMain.GMD_TVX_DISP_ROTATE, rotate_z);
        pos.x -= gms_GMK_BELTC_WORK.roller;
        int num  = (gms_GMK_BELTC_WORK.vect == 0) ? 262144 : -262144;
        int num2 = gms_GMK_BELTC_WORK.roller;

        AppMain.GMS_TVX_EX_WORK gms_TVX_EX_WORK = default(AppMain.GMS_TVX_EX_WORK);
        gms_TVX_EX_WORK.u_wrap  = 1;
        gms_TVX_EX_WORK.v_wrap  = 1;
        gms_TVX_EX_WORK.coord.v = 0f;
        gms_TVX_EX_WORK.color   = 0U;
        pos.y += -65536;
        pos.z  = -73728;
        if (gms_GMK_BELTC_WORK.vect == 32768)
        {
            pos.x += num;
        }
        while (num2 != 0)
        {
            gms_TVX_EX_WORK.coord.u = gms_GMK_BELTC_WORK.tex_u;
            AppMain.GmTvxSetModelEx(tvx_belt_up, texlist, ref pos, ref obj_work.scale, 0U, 0, ref gms_TVX_EX_WORK);
            pos.y -= -131072;
            gms_TVX_EX_WORK.coord.u = -gms_GMK_BELTC_WORK.tex_u;
            AppMain.GmTvxSetModelEx(tvx_belt_down, texlist, ref pos, ref obj_work.scale, 0U, 0, ref gms_TVX_EX_WORK);
            pos.y += -131072;
            pos.x += num;
            num2  -= num;
        }
    }
Esempio n. 20
0
 public void Clear()
 {
     this.ecb               = (AppMain.AMS_AME_ECB)null;
     this.texlist           = (AppMain.NNS_TEXLIST)null;
     this.texlistbuf        = (object)null;
     this.texlist_data_work = (AppMain.OBS_DATA_WORK)null;
     this._object           = (AppMain.NNS_OBJECT)null;
     this.object_data_work  = (AppMain.OBS_DATA_WORK)null;
     this.eff               = (object)null;
     this.eff_data_work     = (AppMain.OBS_DATA_WORK)null;
     this.ambtex            = (object)null;
     this.ambtex_data_work  = (AppMain.OBS_DATA_WORK)null;
     this.model             = (object)null;
     this.model_data_work   = (AppMain.OBS_DATA_WORK)null;
     this.flag              = 0U;
     this.command_state     = 0U;
     this.disp_rot.Clear();
     this.disp_ofst.Clear();
     this.dup_draw_ofst.Clear();
     this.user_dir_quat.Clear();
     this.user_attr       = 0;
     this.tex_reg_index   = 0;
     this.model_reg_index = 0;
     this.speed           = 0.0f;
 }
Esempio n. 21
0
 public void Clear()
 {
     this.amb_header = (AppMain.AMS_AMB_HEADER)null;
     this.tex_buf    = (AppMain.NNS_TEXFILELIST)null;
     this.texlistbuf = (object)null;
     this.texlist    = (AppMain.NNS_TEXLIST)null;
     this.texId      = this.regId = this.drawFlag = 0;
 }
Esempio n. 22
0
 public void Clear()
 {
     this.tex         = (AppMain.NNS_TEXLIST)null;
     this.tex_id      = 0;
     this.all_vtx_num = this.stack_num = 0U;
     this.u_wrap      = this.v_wrap = 0;
     AppMain.ClearArray <AppMain.GMS_TVX_DRAW_STACK>(this.stack);
 }
Esempio n. 23
0
 public void Clear()
 {
     this.dec_id  = 0U;
     this.texlist = (AppMain.NNS_TEXLIST)null;
     this.all_num = this.reg_num = (ushort)0;
     this.frame   = 0.0f;
     AppMain.ClearArray <AppMain.GMS_DECO_FALL_REGISTER>(this.reg);
 }
Esempio n. 24
0
 public static int amTextureLoad(
     AppMain.NNS_TEXLIST texlist,
     AppMain.NNS_TEXFILELIST texfilelist,
     string filepath)
 {
     AppMain.mppAssertNotImpl();
     return(AppMain.amTextureLoad(texlist, texfilelist, filepath, (AppMain.AMS_AMB_HEADER)null));
 }
Esempio n. 25
0
 public void Clear()
 {
     this.texlist     = (AppMain.NNS_TEXLIST)null;
     this.texlist_buf = (object)null;
     this.reg_id      = 0;
     this.amb         = (AppMain.AMS_AMB_HEADER)null;
     this.txb         = (AppMain.TXB_HEADER)null;
 }
Esempio n. 26
0
 public NNS_TEXLIST(AppMain.NNS_TEXLIST pFrom)
 {
     this.nTex         = pFrom.nTex;
     this.pTexInfoList = new AppMain.NNS_TEXINFO[this.nTex];
     for (int index = 0; index < this.nTex; ++index)
     {
         this.pTexInfoList[index] = new AppMain.NNS_TEXINFO(pFrom.pTexInfoList[index]);
     }
 }
Esempio n. 27
0
 // Token: 0x06002087 RID: 8327 RVA: 0x0013EBB0 File Offset: 0x0013CDB0
 public NNS_TEXLIST(AppMain.NNS_TEXLIST pFrom)
 {
     this.nTex         = pFrom.nTex;
     this.pTexInfoList = new AppMain.NNS_TEXINFO[this.nTex];
     for (int i = 0; i < this.nTex; i++)
     {
         this.pTexInfoList[i] = new AppMain.NNS_TEXINFO(pFrom.pTexInfoList[i]);
     }
 }
Esempio n. 28
0
    private static void ObjAction3dESModelLoad(
        AppMain.OBS_ACTION3D_ES_WORK obj_3des,
        AppMain.OBS_DATA_WORK data_work,
        string filename,
        int index,
        AppMain.AMS_AMB_HEADER archive,
        uint drawflag,
        bool load_model)
    {
        object buf = (object)null;

        if (archive != null)
        {
            obj_3des.flag |= 262144U;
        }
        if (filename != null && filename != "")
        {
            buf = (object)AppMain.ObjDataLoad(data_work, filename, (object)archive);
            if (archive != null && buf == null)
            {
                obj_3des.flag &= 4294705151U;
                buf            = (object)AppMain.ObjDataLoad(data_work, filename, (object)null);
            }
        }
        else if (archive != null)
        {
            buf = AppMain.ObjDataLoadAmbIndex(data_work, index, archive);
            if (buf == null)
            {
                obj_3des.flag &= 4294705151U;
            }
        }
        else if (data_work != null)
        {
            buf = AppMain.ObjDataGetInc(data_work);
        }
        if (buf == null)
        {
            return;
        }
        obj_3des.model = buf;
        if (data_work != null)
        {
            obj_3des.model_data_work = data_work;
        }
        if (!load_model)
        {
            return;
        }
        AppMain.NNS_TEXLIST texlist = (AppMain.NNS_TEXLIST)null;
        object texlistbuf           = (object)null;

        obj_3des.model_reg_index = AppMain.amObjectLoad(out obj_3des._object, out texlist, out texlistbuf, buf, drawflag | AppMain.g_obj.load_drawflag, (string)null, (AppMain.AMS_AMB_HEADER)null);
        obj_3des.flag           |= 2147483648U;
        AppMain.amEffectSetObject(obj_3des.ecb, obj_3des._object, 16);
    }
Esempio n. 29
0
 // Token: 0x0600052A RID: 1322 RVA: 0x0002B730 File Offset: 0x00029930
 private static void GmTvxSetModel(AppMain.TVX_FILE model_tvx, AppMain.NNS_TEXLIST model_tex, ref AppMain.VecFx32 pos, ref AppMain.VecFx32 scale, uint flag, short rotate_z)
 {
     AppMain.GMS_TVX_EX_WORK gms_TVX_EX_WORK = default(AppMain.GMS_TVX_EX_WORK);
     gms_TVX_EX_WORK.u_wrap  = 1;
     gms_TVX_EX_WORK.v_wrap  = 1;
     gms_TVX_EX_WORK.coord.u = 0f;
     gms_TVX_EX_WORK.coord.v = 0f;
     gms_TVX_EX_WORK.color   = uint.MaxValue;
     AppMain.GmTvxSetModelEx(model_tvx, model_tex, ref pos, ref scale, flag, rotate_z, ref gms_TVX_EX_WORK);
 }
Esempio n. 30
0
    private static void gmGmkBeltConveyor_ppOut(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_BELTC_WORK gmsGmkBeltcWork = (AppMain.GMS_GMK_BELTC_WORK)obj_work;
        if (!AppMain.GmMainIsDrawEnable() || ((int)obj_work.disp_flag & 32) != 0)
        {
            return;
        }
        if (AppMain._tvx_roller == null)
        {
            AppMain._tvx_roller    = new AppMain.TVX_FILE((AppMain.AmbChunk)AppMain.amBindGet(AppMain.gm_gmk_beltconv_obj_tvx_list, 0));
            AppMain._tvx_axis      = new AppMain.TVX_FILE((AppMain.AmbChunk)AppMain.amBindGet(AppMain.gm_gmk_beltconv_obj_tvx_list, 1));
            AppMain._tvx_belt_up   = new AppMain.TVX_FILE((AppMain.AmbChunk)AppMain.amBindGet(AppMain.gm_gmk_beltconv_obj_tvx_list, 2));
            AppMain._tvx_belt_down = new AppMain.TVX_FILE((AppMain.AmbChunk)AppMain.amBindGet(AppMain.gm_gmk_beltconv_obj_tvx_list, 3));
        }
        AppMain.TVX_FILE    tvxRoller   = AppMain._tvx_roller;
        AppMain.TVX_FILE    tvxAxis     = AppMain._tvx_axis;
        AppMain.TVX_FILE    tvxBeltUp   = AppMain._tvx_belt_up;
        AppMain.TVX_FILE    tvxBeltDown = AppMain._tvx_belt_down;
        AppMain.NNS_TEXLIST texlist     = obj_work.obj_3d.texlist;
        short rotate_z = (short)-obj_work.dir.z;

        AppMain.VecFx32 pos = obj_work.pos;
        AppMain.GmTvxSetModel(tvxRoller, texlist, ref pos, ref obj_work.scale, AppMain.GMD_TVX_DISP_ROTATE, rotate_z);
        pos.z += 4096;
        AppMain.GmTvxSetModel(tvxAxis, texlist, ref pos, ref obj_work.scale, 0U, (short)0);
        pos.x += gmsGmkBeltcWork.roller;
        AppMain.GmTvxSetModel(tvxAxis, texlist, ref pos, ref obj_work.scale, 0U, (short)0);
        pos.z -= 4096;
        AppMain.GmTvxSetModel(tvxRoller, texlist, ref pos, ref obj_work.scale, AppMain.GMD_TVX_DISP_ROTATE, rotate_z);
        pos.x -= gmsGmkBeltcWork.roller;
        int num    = gmsGmkBeltcWork.vect == (ushort)0 ? 262144 : -262144;
        int roller = gmsGmkBeltcWork.roller;

        AppMain.GMS_TVX_EX_WORK ex_work = new AppMain.GMS_TVX_EX_WORK();
        ex_work.u_wrap  = 1;
        ex_work.v_wrap  = 1;
        ex_work.coord.v = 0.0f;
        ex_work.color   = 0U;
        pos.y          += -65536;
        pos.z           = -73728;
        if (gmsGmkBeltcWork.vect == (ushort)32768)
        {
            pos.x += num;
        }
        for (; roller != 0; roller -= num)
        {
            ex_work.coord.u = gmsGmkBeltcWork.tex_u;
            AppMain.GmTvxSetModelEx(tvxBeltUp, texlist, ref pos, ref obj_work.scale, 0U, (short)0, ref ex_work);
            pos.y          -= -131072;
            ex_work.coord.u = -gmsGmkBeltcWork.tex_u;
            AppMain.GmTvxSetModelEx(tvxBeltDown, texlist, ref pos, ref obj_work.scale, 0U, (short)0, ref ex_work);
            pos.y += -131072;
            pos.x += num;
        }
    }