private static void ObjAction3dNNMotionRelease(AppMain.OBS_ACTION3D_NN_WORK obj_3d) { if (obj_3d.motion != null) { AppMain.amMotionDelete(obj_3d.motion); obj_3d.motion = (AppMain.AMS_MOTION)null; } for (int index = 0; index < 4; ++index) { if (obj_3d.mtn_data_work[index] != null) { AppMain.ObjDataRelease(obj_3d.mtn_data_work[index]); obj_3d.mtn_data_work[index] = (AppMain.OBS_DATA_WORK)null; } else if (obj_3d.mtn[index] != null) { int num1 = (int)obj_3d.flag & 131072 << index; } obj_3d.flag &= (uint)~(131072 << index); obj_3d.mtn[index] = (object)null; if (obj_3d.mat_mtn_data_work[index] != null) { AppMain.ObjDataRelease(obj_3d.mat_mtn_data_work[index]); obj_3d.mat_mtn_data_work[index] = (AppMain.OBS_DATA_WORK)null; } else if (obj_3d.mat_mtn[index] != null) { int num2 = (int)obj_3d.flag & 4096 << index; } obj_3d.flag &= (uint)~(4096 << index); obj_3d.mat_mtn[index] = (object)null; } }
private static bool ObjAction3dNNModelReleaseCheck(AppMain.OBS_ACTION3D_NN_WORK obj_3d) { if (((int)obj_3d.flag & 1207959552) == 0) { return(true); } if (!AppMain.amDrawIsRegistComplete(obj_3d.reg_index)) { return(false); } if (obj_3d._object != null) { obj_3d._object = (AppMain.NNS_OBJECT)null; } if (obj_3d.texlistbuf != null) { obj_3d.texlistbuf = (object)null; } obj_3d.flag &= 3087007743U; if (obj_3d.model_data_work != null) { AppMain.ObjDataRelease(obj_3d.model_data_work); obj_3d.model_data_work = (AppMain.OBS_DATA_WORK)null; } else if (obj_3d.model != null && ((int)obj_3d.flag & 65536) == 0) { obj_3d.model = (object)null; } obj_3d.flag &= 4294901759U; return(true); }
// Token: 0x0600195C RID: 6492 RVA: 0x000E5648 File Offset: 0x000E3848 public static void ObjAction3dNNMotionRelease(AppMain.OBS_ACTION3D_NN_WORK obj_3d) { if (obj_3d.motion != null) { AppMain.amMotionDelete(obj_3d.motion); obj_3d.motion = null; } for (int i = 0; i < 4; i++) { if (obj_3d.mtn_data_work[i] != null) { AppMain.ObjDataRelease(obj_3d.mtn_data_work[i]); obj_3d.mtn_data_work[i] = null; } else if (obj_3d.mtn[i] != null) { uint num = obj_3d.flag & 131072U << i; } obj_3d.flag &= ~(131072U << i); obj_3d.mtn[i] = null; if (obj_3d.mat_mtn_data_work[i] != null) { AppMain.ObjDataRelease(obj_3d.mat_mtn_data_work[i]); obj_3d.mat_mtn_data_work[i] = null; } else if (obj_3d.mat_mtn[i] != null) { uint num2 = obj_3d.flag & 4096U << i; } obj_3d.flag &= ~(4096U << i); obj_3d.mat_mtn[i] = null; } }
// Token: 0x0600194B RID: 6475 RVA: 0x000E4B90 File Offset: 0x000E2D90 public static void ObjCopyAction3dNNModel(AppMain.OBS_ACTION3D_NN_WORK src_obj_3d, AppMain.OBS_ACTION3D_NN_WORK dest_obj_3d) { dest_obj_3d._object = src_obj_3d._object; dest_obj_3d.texlist = src_obj_3d.texlist; dest_obj_3d.texlistbuf = src_obj_3d.texlistbuf; dest_obj_3d.model = src_obj_3d.model; dest_obj_3d.model_data_work = src_obj_3d.model_data_work; dest_obj_3d.command_state = src_obj_3d.command_state; dest_obj_3d.flag = src_obj_3d.flag; dest_obj_3d.marge = 0f; dest_obj_3d.per = 1f; dest_obj_3d.use_light_flag = src_obj_3d.use_light_flag; for (int i = 0; i < 2; i++) { dest_obj_3d.speed[i] = 1f; } dest_obj_3d.mat_speed = 1f; AppMain.nnMakeUnitMatrix(dest_obj_3d.user_obj_mtx); AppMain.nnMakeUnitMatrix(dest_obj_3d.user_obj_mtx_r); dest_obj_3d.blend_spd = 0.25f; dest_obj_3d.sub_obj_type = src_obj_3d.sub_obj_type; dest_obj_3d.drawflag = src_obj_3d.drawflag; dest_obj_3d.draw_state.Assign(AppMain.g_obj_draw_3dnn_draw_state); dest_obj_3d.reg_index = -1; }
// Token: 0x060007BA RID: 1978 RVA: 0x0004439C File Offset: 0x0004259C private AppMain.OBS_OBJECT_WORK dmLogoSegaCreatePlayer() { AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.OBM_OBJECT_TASK_DETAIL_INIT(8192, 0, 0, 0, () => new AppMain.DMS_LOGO_SEGA_OBJ_3DNN_WORK(), "DM_LSEGA_PLY"); AppMain.DMS_LOGO_SEGA_OBJ_3DNN_WORK dms_LOGO_SEGA_OBJ_3DNN_WORK = (AppMain.DMS_LOGO_SEGA_OBJ_3DNN_WORK)obs_OBJECT_WORK; obs_OBJECT_WORK.obj_type = 1; obs_OBJECT_WORK.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.ObjDrawActionSummary); obs_OBJECT_WORK.ppOutSub = null; obs_OBJECT_WORK.ppIn = null; obs_OBJECT_WORK.ppMove = null; obs_OBJECT_WORK.ppActCall = null; obs_OBJECT_WORK.ppRec = null; obs_OBJECT_WORK.ppLast = null; obs_OBJECT_WORK.ppFunc = null; AppMain.OBS_ACTION3D_NN_WORK obj_3d = dms_LOGO_SEGA_OBJ_3DNN_WORK.obj_3d; AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, this.dm_logo_sega_obj_3d_list[0], obj_3d); AppMain.ObjDrawSetToon(obj_3d); obj_3d.command_state = 0U; AppMain.ObjDataSet(dms_LOGO_SEGA_OBJ_3DNN_WORK.data_work, AppMain.dm_logo_sega_data[2]); AppMain.OBS_DATA_WORK data_work = dms_LOGO_SEGA_OBJ_3DNN_WORK.data_work; data_work.num |= 32768; AppMain.ObjObjectAction3dNNMotionLoad(obs_OBJECT_WORK, 0, false, dms_LOGO_SEGA_OBJ_3DNN_WORK.data_work, null, 0, null, 136, 16); obs_OBJECT_WORK.disp_flag |= 16777728U; obs_OBJECT_WORK.scale.x = (obs_OBJECT_WORK.scale.y = (obs_OBJECT_WORK.scale.z = 8192)); AppMain.nnMakeUnitMatrix(obj_3d.user_obj_mtx_r); AppMain.nnTranslateMatrix(obj_3d.user_obj_mtx_r, obj_3d.user_obj_mtx_r, 0f, -36f / AppMain.FXM_FX32_TO_FLOAT(AppMain.g_obj.draw_scale.y), 0f); obs_OBJECT_WORK.pos.x = 2490368; obs_OBJECT_WORK.pos.y = 0; obs_OBJECT_WORK.pos.z = 0; return(obs_OBJECT_WORK); }
// 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); }
// 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); }
private static void gmGmkTarzanRopeChangeDirMotion( AppMain.OBS_OBJECT_WORK obj_work, int angle_current) { AppMain.OBS_OBJECT_WORK objWork = AppMain.g_gm_main_system.ply_work[0].obj_work; AppMain.OBS_ACTION3D_NN_WORK obj3d = objWork.obj_3d; float startFrame = AppMain.amMotionGetStartFrame(obj3d.motion, obj3d.act_id[0]); float num = 34f; if (((int)objWork.disp_flag & 1) != 0) { if (angle_current < 0) { obj3d.frame[0] = startFrame; } else if (angle_current > 0) { obj3d.frame[0] = num; } } else if (angle_current < 0) { obj3d.frame[0] = num; } else if (angle_current > 0) { obj3d.frame[0] = startFrame; } objWork.disp_flag &= 4294967279U; }
private AppMain.OBS_OBJECT_WORK dmLogoSegaCreatePlayer() { AppMain.OBS_OBJECT_WORK obj_work = AppMain.OBM_OBJECT_TASK_DETAIL_INIT((ushort)8192, (byte)0, (byte)0, (byte)0, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.DMS_LOGO_SEGA_OBJ_3DNN_WORK()), "DM_LSEGA_PLY"); AppMain.DMS_LOGO_SEGA_OBJ_3DNN_WORK logoSegaObj3DnnWork = (AppMain.DMS_LOGO_SEGA_OBJ_3DNN_WORK)obj_work; obj_work.obj_type = (ushort)1; obj_work.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.ObjDrawActionSummary); obj_work.ppOutSub = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null; obj_work.ppIn = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null; obj_work.ppMove = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null; obj_work.ppActCall = (AppMain.OBS_OBJECT_WORK_Delegate2)null; obj_work.ppRec = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null; obj_work.ppLast = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null; obj_work.ppFunc = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null; AppMain.OBS_ACTION3D_NN_WORK obj3d = logoSegaObj3DnnWork.obj_3d; AppMain.ObjObjectCopyAction3dNNModel(obj_work, this.dm_logo_sega_obj_3d_list[0], obj3d); AppMain.ObjDrawSetToon(obj3d); obj3d.command_state = 0U; AppMain.ObjDataSet(logoSegaObj3DnnWork.data_work, (object)AppMain.dm_logo_sega_data[2]); logoSegaObj3DnnWork.data_work.num |= (ushort)32768; AppMain.ObjObjectAction3dNNMotionLoad(obj_work, 0, false, logoSegaObj3DnnWork.data_work, (string)null, 0, (AppMain.AMS_AMB_HEADER)null, 136, 16); obj_work.disp_flag |= 16777728U; obj_work.scale.x = obj_work.scale.y = obj_work.scale.z = 8192; AppMain.nnMakeUnitMatrix(obj3d.user_obj_mtx_r); AppMain.nnTranslateMatrix(obj3d.user_obj_mtx_r, obj3d.user_obj_mtx_r, 0.0f, -36f / AppMain.FXM_FX32_TO_FLOAT(AppMain.g_obj.draw_scale.y), 0.0f); obj_work.pos.x = 2490368; obj_work.pos.y = 0; obj_work.pos.z = 0; return(obj_work); }
// Token: 0x0600195B RID: 6491 RVA: 0x000E55A0 File Offset: 0x000E37A0 public static bool ObjAction3dNNModelReleaseCheck(AppMain.OBS_ACTION3D_NN_WORK obj_3d) { if ((obj_3d.flag & 1207959552U) == 0U) { return(true); } if (AppMain.amDrawIsRegistComplete(obj_3d.reg_index)) { if (obj_3d._object != null) { obj_3d._object = null; } if (obj_3d.texlistbuf != null) { obj_3d.texlistbuf = null; } obj_3d.flag &= 3087007743U; if (obj_3d.model_data_work != null) { AppMain.ObjDataRelease(obj_3d.model_data_work); obj_3d.model_data_work = null; } else if (obj_3d.model != null && (obj_3d.flag & 65536U) == 0U) { obj_3d.model = null; } obj_3d.flag &= 4294901759U; return(true); } return(false); }
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); }
private static void gmGmkSsEnduranceDrawFunc(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; } AppMain.TVX_FILE model_tvx; if (AppMain.gm_gmk_ss_endurance_obj_tvx_list.buf[0] == null) { model_tvx = 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] = (object)model_tvx; } else { model_tvx = (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 ex_work = new AppMain.GMS_TVX_EX_WORK(); uint num = (uint)obj_work.user_timer >> 10 & 31U; ex_work.u_wrap = 1; ex_work.v_wrap = 1; ex_work.coord.u = 0.125f * (float)((int)AppMain.gm_gmk_ss_endurance_uv_parameter[(int)num] % 4) + AppMain.gm_gmk_ss_endurance_mat_color[(int)obj_work.user_work].u; ex_work.coord.v = 0.125f * (float)((int)AppMain.gm_gmk_ss_endurance_uv_parameter[(int)num] / 4) + AppMain.gm_gmk_ss_endurance_mat_color[(int)obj_work.user_work].v; ex_work.color = uint.MaxValue; AppMain.GmTvxSetModelEx(model_tvx, texlist, ref obj_work.pos, ref obj_work.scale, AppMain.GMD_TVX_DISP_SCALE | AppMain.GMD_TVX_DISP_LIGHT_DISABLE, (short)0, ref ex_work); }
// Token: 0x0600053E RID: 1342 RVA: 0x0002C680 File Offset: 0x0002A880 private static void gmGmkTarzanRopeChangeDirMotion(OBS_OBJECT_WORK obj_work, int angle_current) { GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)]; OBS_OBJECT_WORK obj_work2 = gms_PLAYER_WORK.obj_work; AppMain.OBS_ACTION3D_NN_WORK obj_3d = obj_work2.obj_3d; float num = AppMain.amMotionGetStartFrame(obj_3d.motion, obj_3d.act_id[0]); float num2 = 34f; if ((obj_work2.disp_flag & 1U) != 0U) { if (angle_current < 0) { obj_3d.frame[0] = num; } else if (angle_current > 0) { obj_3d.frame[0] = num2; } } else if (angle_current < 0) { obj_3d.frame[0] = num2; } else if (angle_current > 0) { obj_3d.frame[0] = num; } obj_work2.disp_flag &= 4294967279U; }
// Token: 0x06000662 RID: 1634 RVA: 0x000388A8 File Offset: 0x00036AA8 private static void gmGmkWaterSliderDrawFunc(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.OBS_ACTION3D_NN_WORK obj_3d = obj_work.obj_3d; if (obj_3d.motion != null) { float num = AppMain.amMotionMaterialGetStartFrame(obj_3d.motion, obj_3d.mat_act_id); float num2 = AppMain.amMotionMaterialGetEndFrame(obj_3d.motion, obj_3d.mat_act_id); float num3 = num2 - num; float num4 = AppMain.gmGmkWaterSlidereGameSystemGetSyncTime(); obj_3d.mat_frame = num4 % num3; } AppMain.ObjDrawActionSummary(obj_work); uint num5 = obj_work.disp_flag; num5 |= 4U; num5 &= 4294967279U; if (AppMain.ObjObjectPauseCheck(0U) != 0U) { num5 |= 4096U; } AppMain.GMS_GMK_WATER_SLIDER_WORK gms_GMK_WATER_SLIDER_WORK = (AppMain.GMS_GMK_WATER_SLIDER_WORK)obj_work; AppMain.VecFx32 pos = obj_work.pos; pos.z += 131072; AppMain.ObjDrawAction3DNN(gms_GMK_WATER_SLIDER_WORK.obj_3d_parts, new AppMain.VecFx32?(pos), new AppMain.VecU16?(obj_work.dir), obj_work.scale, ref num5); }
// Token: 0x060005F3 RID: 1523 RVA: 0x00034ABC File Offset: 0x00032CBC private static AppMain.DMS_STFRL_SONIC_WORK DmStfrlMdlCtrlSetSonicObj() { AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.OBM_OBJECT_TASK_DETAIL_INIT(24576, 0, 0, 0, () => new AppMain.DMS_STFRL_SONIC_WORK(), "STAFFROLL_SONIC"); AppMain.DMS_STFRL_SONIC_WORK dms_STFRL_SONIC_WORK = (AppMain.DMS_STFRL_SONIC_WORK)obs_OBJECT_WORK; AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.dm_stfrl_sonic_obj_3d_list[0], obs_OBJECT_WORK.obj_3d); obs_OBJECT_WORK.obj_3d.blend_spd = 0.0625f; AppMain.ObjDrawObjectSetToon(obs_OBJECT_WORK); AppMain.OBS_ACTION3D_NN_WORK obj_3d = dms_STFRL_SONIC_WORK.obj_work.obj_3d; AppMain.ObjObjectAction3dNNMotionLoad(obs_OBJECT_WORK, 0, true, AppMain.g_gm_player_data_work[( int )(( UIntPtr )0)][4], null, 0, null, 136, 16); obs_OBJECT_WORK.flag |= 16U; obs_OBJECT_WORK.disp_flag |= 4194309U; obs_OBJECT_WORK.disp_flag &= 4294967263U; obs_OBJECT_WORK.disp_flag |= 150995456U; obs_OBJECT_WORK.obj_3d.drawflag |= 8388608U; obs_OBJECT_WORK.pos.x = 0; obs_OBJECT_WORK.pos.y = 98304; obs_OBJECT_WORK.pos.z = -12288; obs_OBJECT_WORK.dir.y = ( ushort )AppMain.AKM_DEGtoA16(90); obs_OBJECT_WORK.obj_3d.draw_state.alpha.alpha = 1f; dms_STFRL_SONIC_WORK.alpha = 1f; AppMain.ObjDrawObjectActionSet(obs_OBJECT_WORK, 21); obs_OBJECT_WORK.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlSonicDrawFunc); obs_OBJECT_WORK.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.dmStfrlMdlCtrlSonicProcWaitSetup); return(dms_STFRL_SONIC_WORK); }
private static int gmBsCmnCheckActionFrameOverrunOnNextUpdate(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.OBS_ACTION3D_NN_WORK obj3d = obj_work.obj_3d; float num1 = obj3d.speed[0] * AppMain.FX_FX32_TO_F32(AppMain.g_obj.speed); float num2 = AppMain.amMotionGetEndFrame(obj3d.motion, obj3d.act_id[0]) - AppMain.amMotionGetStartFrame(obj3d.motion, obj3d.act_id[0]); return((double)obj3d.frame[0] + (double)num1 > (double)num2 - 1.0 ? 1 : 0); }
private static void gmGmkAnimalObjSet( AppMain.OBS_OBJECT_WORK obj_work, AppMain.OBS_ACTION3D_NN_WORK dest_obj_3d) { AppMain.ObjObjectCopyAction3dNNModel(obj_work, AppMain.gm_gmk_animal_obj_3d_list[(int)AppMain.g_gm_gmk_animal_obj_id[(int)obj_work.user_work][0]], dest_obj_3d); AppMain.ObjObjectFieldRectSet(obj_work, (short)-2, (short)-8, (short)2, (short)0); obj_work.disp_flag |= 4259840U; }
// Token: 0x06001B4E RID: 6990 RVA: 0x000F9A8C File Offset: 0x000F7C8C private static void gmGmkItemOut(OBS_OBJECT_WORK obj_work) { AppMain.OBS_ACTION3D_NN_WORK obj_3d = obj_work.obj_3d; AppMain.GMS_GMK_ITEM_MAT_CB_PARAM gms_GMK_ITEM_MAT_CB_PARAM = AppMain.amDrawAlloc_GMS_GMK_ITEM_MAT_CB_PARAM(); gms_GMK_ITEM_MAT_CB_PARAM.draw_id = ( uint )(( ushort )obj_work.user_work); obj_3d.material_cb_param = gms_GMK_ITEM_MAT_CB_PARAM; AppMain.ObjDrawActionSummary(obj_work); }
public void Clear() { this.tvx_tex.Clear(); this.amb_header = (AppMain.AMS_AMB_HEADER)null; this.obj_3d_list = (AppMain.OBS_ACTION3D_NN_WORK)null; this.obj_3d_list_fall = (AppMain.OBS_ACTION3D_NN_WORK[])null; this.tvx_model = (AppMain.AMS_AMB_HEADER)null; }
// Token: 0x06000575 RID: 1397 RVA: 0x0002F2B0 File Offset: 0x0002D4B0 public static void gmGmkLand3TvxRopeMain(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.OBS_ACTION3D_NN_WORK obj_3d = obj_work.obj_3d; obj_3d.mat_frame += obj_3d.mat_speed; if (obj_3d.mat_frame >= 120f) { obj_3d.mat_frame -= 120f; } }
public void Clear() { this.prev = this.next = this.draw_prev = this.draw_next = (AppMain.OBS_OBJECT_WORK)null; this.tcb = (AppMain.MTS_TASK_TCB)null; this.pause_level = 0; this.obj_type = (ushort)0; this.vib_timer = this.hitstop_timer = this.invincible_timer = 0; this.view_out_ofst = (short)0; Array.Clear((Array)this.view_out_ofst_plus, 0, this.view_out_ofst_plus.Length); this.user_work_OBJECT = (object)null; this.user_flag_OBJECT = (object)null; this.flag = 0U; this.move_flag = 0U; this.disp_flag = 0U; this.gmk_flag = 0U; this.sys_flag = 0U; this.user_timer = 0; this.dir.Clear(); this.scale.Clear(); this.pos.Clear(); this.ofst.Clear(); this.prev_ofst.Clear(); this.parent_ofst.Clear(); this.lock_obj = (AppMain.OBS_OBJECT_WORK)null; this.prev_pos.Clear(); this.spd.Clear(); this.spd_add.Clear(); this.flow.Clear(); this.move.Clear(); this.spd_m = 0; this.dir_slope = this.dir_fall = (ushort)0; this.spd_slope = this.spd_slope_max = this.spd_fall = this.spd_fall_max = this.push_max = 0; this.col_flag = this.col_flag_prev = 0U; Array.Clear((Array)this.field_rect, 0, this.field_rect.Length); this.field_ajst_w_db_f = this.field_ajst_w_db_b = this.field_ajst_w_dl_f = this.field_ajst_w_dl_b = (sbyte)0; this.field_ajst_w_dt_f = this.field_ajst_w_dt_b = this.field_ajst_w_dr_f = this.field_ajst_w_dr_b = (sbyte)0; this.field_ajst_h_db_r = this.field_ajst_h_db_l = this.field_ajst_h_dl_r = this.field_ajst_h_dl_l = (sbyte)0; this.field_ajst_h_dt_r = this.field_ajst_h_dt_l = this.field_ajst_h_dr_r = this.field_ajst_h_dr_l = (sbyte)0; this.ppFunc = this.ppIn = this.ppOut = this.ppOutSub = this.ppMove = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null; this.ppActCall = (AppMain.OBS_OBJECT_WORK_Delegate2)null; this.ppRec = this.ppLast = this.ppCol = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null; this.ppViewCheck = (AppMain.OBS_OBJECT_WORK_Delegate3)null; this.ppUserRelease = this.ppUserReleaseWait; this.ride_obj = this.touch_obj = this.lock_obj = this.locker_obj = (AppMain.OBS_OBJECT_WORK)null; this.parent_obj = (AppMain.OBS_OBJECT_WORK)null; this.ex_work = (object)null; this.obj_3d = (AppMain.OBS_ACTION3D_NN_WORK)null; this.obj_3des = (AppMain.OBS_ACTION3D_ES_WORK)null; this.obj_2d = (AppMain.OBS_ACTION2D_AMA_WORK)null; this.col_work = (AppMain.OBS_COLLISION_WORK)null; this.tbl_work = (AppMain.OBS_TBL_WORK)null; this.temp_ofst.Clear(); this.prev_temp_ofst.Clear(); this.rect_num = 0U; this.rect_work = (AppMain.ArrayPointer <AppMain.OBS_RECT_WORK>)(AppMain.OBS_RECT_WORK[]) null; }
// Token: 0x0600053F RID: 1343 RVA: 0x0002C71C File Offset: 0x0002A91C private static void gmGmkTarzanRopeUpdatePlayerMotion(OBS_OBJECT_WORK obj_work, int angle_target, int angle_current) { AppMain.UNREFERENCED_PARAMETER(obj_work); GMS_PLAYER_WORK gms_PLAYER_WORK = AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)]; OBS_OBJECT_WORK obj_work2 = gms_PLAYER_WORK.obj_work; AppMain.OBS_ACTION3D_NN_WORK obj_3d = obj_work2.obj_3d; float num = 34f; int num2 = AppMain.MTM_MATH_ABS(angle_target); int num3 = AppMain.MTM_MATH_ABS(angle_current); if (num2 < 1792 && num3 < 1792) { int a = AppMain.gmGmkTarzanRopeGetGimmickRotZ(gms_PLAYER_WORK); if (gms_PLAYER_WORK.act_state != 64 && AppMain.MTM_MATH_ABS(a) < 208) { GmPlayer.ActionChange(gms_PLAYER_WORK, 64); obj_work2.disp_flag |= 4U; } return; } if (gms_PLAYER_WORK.act_state == 64) { GmPlayer.ActionChange(gms_PLAYER_WORK, 63); obj_work2.disp_flag |= 4U; return; } if ((obj_work2.disp_flag & 1U) != 0U) { if (angle_target > 0 && angle_current > 0) { if (obj_3d.frame[0] > num) { obj_work2.disp_flag |= 16U; return; } } else if (angle_target < 0 && angle_current < 0 && obj_3d.frame[0] < num) { obj_work2.disp_flag |= 16U; return; } } else if (angle_target > 0 && angle_current > 0) { if (obj_3d.frame[0] < num) { obj_work2.disp_flag |= 16U; return; } } else if (angle_target < 0 && angle_current < 0 && obj_3d.frame[0] > num) { obj_work2.disp_flag |= 16U; } }
private static void ObjAction3dNNMaterialMotionLoad( AppMain.OBS_ACTION3D_NN_WORK obj_3d, int reg_file_id, AppMain.OBS_DATA_WORK data_work, string filename, int index, AppMain.AMS_AMB_HEADER archive) { AppMain.ObjAction3dNNMaterialMotionLoad(obj_3d, reg_file_id, data_work, filename, index, archive, 64, 16); }
public static void gmGmkLand3TvxRopeMain(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.OBS_ACTION3D_NN_WORK obj3d = obj_work.obj_3d; obj3d.mat_frame += obj3d.mat_speed; if ((double)obj3d.mat_frame < 120.0) { return; } obj3d.mat_frame -= 120f; }
// Token: 0x0600053A RID: 1338 RVA: 0x0002C2D4 File Offset: 0x0002A4D4 private static void gmGmkTarzanRopeDrawFunc(OBS_OBJECT_WORK obj_work) { AppMain.OBS_ACTION3D_NN_WORK obj_3d = obj_work.obj_3d; if (obj_3d.motion == null) { return; } obj_3d.frame[0] = AppMain.gmGmkTarzanRopeCalcFlame(obj_work, AppMain.gmGmkTarzanRopeGetUserTimerCurrentAngle(obj_work)); AppMain.ObjDrawActionSummary(obj_work); }
private static void gmGmkBumperDrawFunc(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.OBS_ACTION3D_NN_WORK obj3d = obj_work.obj_3d; if (obj3d.motion != null) { float startFrame = AppMain.amMotionMaterialGetStartFrame(obj3d.motion, obj3d.mat_act_id); float num = AppMain.amMotionMaterialGetEndFrame(obj3d.motion, obj3d.mat_act_id) - startFrame; float syncTime = (float)AppMain.gmGmkBumpereGameSystemGetSyncTime(); obj3d.mat_frame = syncTime % num; } AppMain.ObjDrawActionSummary(obj_work); }
// Token: 0x0600068A RID: 1674 RVA: 0x0003ADEC File Offset: 0x00038FEC private static void gmGmkEnBmprDrawFunc(AppMain.OBS_OBJECT_WORK obj_work) { AppMain.OBS_ACTION3D_NN_WORK obj_3d = obj_work.obj_3d; if (obj_3d.motion != null) { float num = AppMain.amMotionMaterialGetStartFrame(obj_3d.motion, obj_3d.mat_act_id); float num2 = AppMain.amMotionMaterialGetEndFrame(obj_3d.motion, obj_3d.mat_act_id); float num3 = num2 - num; float num4 = AppMain.gmGmkEnBmpreGameSystemGetSyncTime(); obj_3d.mat_frame = num4 % num3; } AppMain.ObjDrawActionSummary(obj_work); }
internal void Clear() { this.amb_header = (AppMain.AMS_AMB_HEADER)null; this.obj_3d_list = (AppMain.OBS_ACTION3D_NN_WORK[])null; this.obj_3d_list_render = (AppMain.OBS_ACTION3D_NN_WORK[])null; Array.Clear((Array)this.obj_work, 0, 16); this.nn_work = (AppMain.OBS_ACTION3D_NN_WORK)null; this.nn_work_num = 0; this.nn_regist_num = 0; this.pos.Clear(); this.mp_header = (AppMain.MP_HEADER)null; this.md_header = (AppMain.MD_HEADER)null; this.degSky = 0.0f; this.degSky2 = 0.0f; }
private static void ObjObjectCopyAction3dNNModel( AppMain.OBS_OBJECT_WORK obj_work, AppMain.OBS_ACTION3D_NN_WORK src_obj_3d, AppMain.OBS_ACTION3D_NN_WORK dest_obj_3d) { if (dest_obj_3d == null) { dest_obj_3d = obj_work.obj_3d == null ? new AppMain.OBS_ACTION3D_NN_WORK() : obj_work.obj_3d; dest_obj_3d.Clear(); obj_work.flag |= 134217728U; } obj_work.flag |= 536870912U; AppMain.ObjCopyAction3dNNModel(src_obj_3d, dest_obj_3d); obj_work.obj_3d = dest_obj_3d; }
// Token: 0x06001950 RID: 6480 RVA: 0x000E4F70 File Offset: 0x000E3170 public static void ObjObjectAction3dNNModelLoadTxb(OBS_OBJECT_WORK obj_work, AppMain.OBS_ACTION3D_NN_WORK obj_3d, AppMain.OBS_DATA_WORK data_work, string filename, int index, AMS_AMB_HEADER archive, string filename_tex, AMS_AMB_HEADER amb_tex, uint drawflag, AppMain.TXB_HEADER txb) { if (obj_3d == null) { if (obj_work.obj_3d != null) { obj_3d = obj_work.obj_3d; } else { obj_3d = new AppMain.OBS_ACTION3D_NN_WORK(); } obj_3d.Clear(); obj_work.flag |= 134217728U; } obj_work.obj_3d = obj_3d; AppMain.ObjAction3dNNModelLoadTxb(obj_3d, data_work, filename, index, archive, filename_tex, amb_tex, drawflag, txb); }