private static AppMain.GMS_ENEMY_3D_WORK gmGmkDecoFrameMgrLoadObjNoModel( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.GMS_ENEMY_3D_WORK work = (AppMain.GMS_ENEMY_3D_WORK)AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_ENEMY_3D_WORK()), "GMK_DECO_FRAME_MGR"); work.ene_com.rect_work[0].flag &= 4294967291U; work.ene_com.rect_work[1].flag &= 4294967291U; return(work); }
private static AppMain.OBS_OBJECT_WORK GmGmkRockChaseManagerInit( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.OBS_OBJECT_WORK obsObjectWork = AppMain.GmGmkRockHookInit(eve_rec, pos_x, pos_y, type); AppMain.GMS_ENEMY_3D_WORK gmsEnemy3DWork = (AppMain.GMS_ENEMY_3D_WORK)obsObjectWork; ((AppMain.GMS_GMK_ROCK_CHASE_WORK)AppMain.GmEventMgrLocalEventBirth((ushort)307, pos_x, pos_y, eve_rec.flag, eve_rec.left, eve_rec.top, eve_rec.width, eve_rec.height, (byte)0)).hook_work = gmsEnemy3DWork; return(obsObjectWork); }
private static AppMain.OBS_OBJECT_WORK GmGmkBreakWall_C1Init( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.GMS_GMK_BWALL_WORK gmsGmkBwallWork = (AppMain.GMS_GMK_BWALL_WORK)AppMain.gmGmkBreakWallInit(eve_rec, pos_x, pos_y, type, 4); AppMain.gmGmkBreakWallStart((AppMain.OBS_OBJECT_WORK)gmsGmkBwallWork); gmsGmkBwallWork.gmk_work.ene_com.obj_work.disp_flag |= 4194304U; return((AppMain.OBS_OBJECT_WORK)gmsGmkBwallWork); }
// Token: 0x060003CF RID: 975 RVA: 0x0001E540 File Offset: 0x0001C740 private static AppMain.OBS_OBJECT_WORK GmGmkPressPillarInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_ENEMY_3D_WORK(), "GMK_P_PIL_TOP"); AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK; uint num = 0U; if (eve_rec.id == 285) { num = 1U; } AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_press_pillar_obj_3d_list[( int )(( UIntPtr )(2U + num))], gms_ENEMY_3D_WORK.obj_3d); obs_OBJECT_WORK.pos.z = -126976; obs_OBJECT_WORK.disp_flag |= 4194304U; obs_OBJECT_WORK.move_flag |= 512U; obs_OBJECT_WORK.move_flag |= 1040U; obs_OBJECT_WORK.flag |= 1U; obs_OBJECT_WORK.user_flag = 0U; AppMain.OBS_COLLISION_WORK col_work = gms_ENEMY_3D_WORK.ene_com.col_work; col_work.obj_col.obj = obs_OBJECT_WORK; col_work.obj_col.width = ( ushort )AppMain.GMD_GMK_PPIL_COL_WIDTH; col_work.obj_col.height = ( ushort )AppMain.GMD_GMK_PPIL_COL_HEIGHT; col_work.obj_col.ofst_x = ( short )(-col_work.obj_col.width / 2); col_work.obj_col.ofst_y = 0; if (eve_rec.id == 285) { col_work.obj_col.ofst_y = ( short )(-( short )col_work.obj_col.height); } if (eve_rec.id == 284) { AppMain.ObjObjectFieldRectSet(obs_OBJECT_WORK, ( short )(-AppMain.GMD_GMK_PPIL_COL_WIDTH / 2 + 2), -1, ( short )(AppMain.GMD_GMK_PPIL_COL_WIDTH / 2 - 2), AppMain.GMD_GMK_PPIL_COL_HEIGHT); } else { AppMain.ObjObjectFieldRectSet(obs_OBJECT_WORK, ( short )(-AppMain.GMD_GMK_PPIL_COL_WIDTH / 2 + 2), ( short )(-AppMain.GMD_GMK_PPIL_COL_HEIGHT), ( short )(AppMain.GMD_GMK_PPIL_COL_WIDTH / 2 - 2), -1); } obs_OBJECT_WORK.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPPillarTopWait); AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK2 = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), obs_OBJECT_WORK, 0, "GMK_P_PIL_BODY"); AppMain.GMS_EFFECT_3DNN_WORK gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK2; AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK2, AppMain.gm_gmk_press_pillar_obj_3d_list[( int )(( UIntPtr )num)], gms_EFFECT_3DNN_WORK.obj_3d); AppMain.ObjAction3dNNMaterialMotionLoad(gms_EFFECT_3DNN_WORK.obj_3d, 0, null, null, ( int )num, AppMain.readAMBFile(AppMain.ObjDataGet(953).pData)); AppMain.ObjDrawObjectActionSet3DNNMaterial(obs_OBJECT_WORK2, 0); obs_OBJECT_WORK2.pos.z = -131072; obs_OBJECT_WORK2.move_flag |= 256U; obs_OBJECT_WORK2.disp_flag |= 4194308U; obs_OBJECT_WORK2.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPPillarBodyFollow); obs_OBJECT_WORK2 = AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_EFFECT_3DNN_WORK(), obs_OBJECT_WORK, 0, "GMK_P_PIL_SPRING"); gms_EFFECT_3DNN_WORK = (AppMain.GMS_EFFECT_3DNN_WORK)obs_OBJECT_WORK2; AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK2, AppMain.gm_gmk_press_pillar_obj_3d_list[4], gms_EFFECT_3DNN_WORK.obj_3d); obs_OBJECT_WORK2.pos.z = -131072; obs_OBJECT_WORK2.move_flag |= 256U; obs_OBJECT_WORK2.disp_flag |= 4194304U; obs_OBJECT_WORK2.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPPillarSpringFollow); return(obs_OBJECT_WORK); }
// Token: 0x060004EE RID: 1262 RVA: 0x0002A370 File Offset: 0x00028570 private static AppMain.OBS_OBJECT_WORK gmGmkUpBumperInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.GMS_GMK_UPBUMPER_WORK gms_GMK_UPBUMPER_WORK = (AppMain.GMS_GMK_UPBUMPER_WORK)AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_GMK_UPBUMPER_WORK(), "Gmk_UpBumper"); AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = (AppMain.OBS_OBJECT_WORK)gms_GMK_UPBUMPER_WORK; AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)gms_GMK_UPBUMPER_WORK; AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_upbumper_obj_3d_list[0], gms_ENEMY_3D_WORK.obj_3d); obs_OBJECT_WORK.pos.z = -4096; obs_OBJECT_WORK.move_flag |= 256U; obs_OBJECT_WORK.disp_flag |= 4194304U; return(obs_OBJECT_WORK); }
// Token: 0x0600027D RID: 637 RVA: 0x00014808 File Offset: 0x00012A08 private static OBS_OBJECT_WORK GmGmkBoss5TriggerInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_GMK_BOSS5_TRIGGER_WORK(), "BOSS5_TRIGGER"); obs_OBJECT_WORK.flag |= 16U; obs_OBJECT_WORK.disp_flag &= 4294967263U; obs_OBJECT_WORK.move_flag |= 8448U; obs_OBJECT_WORK.move_flag &= 4294967167U; obs_OBJECT_WORK.ppFunc = AppMain.gmGmkBoss5TriggerMain; return(obs_OBJECT_WORK); }
private static AppMain.GMS_ENEMY_3D_WORK gmGmkFlipperLoadObjNoModel( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, int type) { AppMain.GMS_ENEMY_3D_WORK gmsEnemy3DWork = type != 2 ? (AppMain.GMS_ENEMY_3D_WORK)AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_GMK_FLIPPER_WORK()), "GMK_FLIPPER_U") : (AppMain.GMS_ENEMY_3D_WORK)AppMain.GMM_ENEMY_CREATE_RIDE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_GMK_FLIPPER_WORK()), "GMK_FLIPPER_LR"); gmsEnemy3DWork.ene_com.rect_work[0].flag &= 4294967291U; gmsEnemy3DWork.ene_com.rect_work[1].flag &= 4294967291U; return(gmsEnemy3DWork); }
public static AppMain.OBS_OBJECT_WORK GmGmkSteamPipeGateLInit( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.OBS_OBJECT_WORK obj_work = AppMain.gmGmkSteamPipeInit(eve_rec, pos_x, pos_y, type, (ushort)0); obj_work.pos.z += 65536; AppMain.gmGmkSteamPipeStart(obj_work, 5); return(obj_work); }
// Token: 0x0600075F RID: 1887 RVA: 0x000410FC File Offset: 0x0003F2FC private static AppMain.OBS_OBJECT_WORK GmGmkSwitchInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_GMK_SW_WORK(), "GMK_SWITCH"); AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK; AppMain.GMS_GMK_SW_WORK gms_GMK_SW_WORK = (AppMain.GMS_GMK_SW_WORK)obs_OBJECT_WORK; AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_switch_obj_3d_list[1], gms_ENEMY_3D_WORK.obj_3d); if (AppMain.GMM_MAIN_GET_ZONE_TYPE() == 2) { AppMain.ObjAction3dNNMaterialMotionLoad(gms_ENEMY_3D_WORK.obj_3d, 0, AppMain.ObjDataGet(933), null, 0, null, 1, 1); AppMain.ObjDrawAction3dActionSet3DNNMaterial(gms_ENEMY_3D_WORK.obj_3d, 0); obs_OBJECT_WORK.disp_flag |= 4U; } AppMain.ObjCopyAction3dNNModel(AppMain.gm_gmk_switch_obj_3d_list[0], gms_GMK_SW_WORK.obj_3d_base); obs_OBJECT_WORK.pos.z = -262144; obs_OBJECT_WORK.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkSwDispFunc); AppMain.OBS_COLLISION_WORK col_work = gms_ENEMY_3D_WORK.ene_com.col_work; col_work.obj_col.obj = obs_OBJECT_WORK; col_work.obj_col.width = 32; col_work.obj_col.height = 24; col_work.obj_col.ofst_x = -16; col_work.obj_col.ofst_y = -14; if (AppMain.g_gs_main_sys_info.stage_id == 9) { col_work.obj_col.obj = null; AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_ENEMY_3D_WORK.ene_com.rect_work[2]; obs_RECT_WORK.ppDef = new AppMain.OBS_RECT_WORK_Delegate1(AppMain.gmGmkSwitchDefFunc); obs_RECT_WORK.ppHit = null; AppMain.ObjRectAtkSet(obs_RECT_WORK, 0, 0); AppMain.ObjRectDefSet(obs_RECT_WORK, 65534, 0); AppMain.ObjRectWorkSet(obs_RECT_WORK, -16, -20, 16, -4); obs_RECT_WORK.flag |= 132U; } obs_OBJECT_WORK.move_flag |= 8448U; obs_OBJECT_WORK.disp_flag |= 4194304U; gms_ENEMY_3D_WORK.ene_com.enemy_flag |= 16384U; gms_GMK_SW_WORK.id = ( uint )AppMain.MTM_MATH_CLIP(( int )eve_rec.left, 0, 64); gms_GMK_SW_WORK.time = ( int )(eve_rec.width * 60) * 4096 + ( int )eve_rec.top * 4096; if (gms_GMK_SW_WORK.time != 0 && gms_GMK_SW_WORK.time < 12288) { gms_GMK_SW_WORK.time = 12288; } if (AppMain.gm_gmk_switch_state[( int )(( UIntPtr )gms_GMK_SW_WORK.id)].sw) { gms_GMK_SW_WORK.top_pos_y = -10; AppMain.gmGmkSwOnInit(obs_OBJECT_WORK, false); } else { gms_GMK_SW_WORK.top_pos_y = -14; AppMain.gmGmkSwOffInit(obs_OBJECT_WORK); } AppMain.gmGmkSwSetCol(gms_GMK_SW_WORK.gmk_work.ene_com.col_work, gms_GMK_SW_WORK.top_pos_y); return(obs_OBJECT_WORK); }
private static AppMain.GMS_ENEMY_3D_WORK gmGmkNeedleNeonLoadObj( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type, uint model_index) { AppMain.GMS_ENEMY_3D_WORK gmsEnemy3DWork = AppMain.gmGmkNeedleNeonLoadObjNoModel(eve_rec, pos_x, pos_y, type); AppMain.ObjObjectCopyAction3dNNModel(gmsEnemy3DWork.ene_com.obj_work, AppMain.g_gm_gmk_needle_neon_obj_3d_list[(int)model_index], gmsEnemy3DWork.obj_3d); return(gmsEnemy3DWork); }
// Token: 0x060008C0 RID: 2240 RVA: 0x0004F090 File Offset: 0x0004D290 private static AppMain.OBS_OBJECT_WORK GmGmkNeedleInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_GMK_NEEDLE_WORK(), "GMK_NEEDLE_MAIN"); AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK; AppMain.GMS_GMK_NEEDLE_WORK gms_GMK_NEEDLE_WORK = (AppMain.GMS_GMK_NEEDLE_WORK)gms_ENEMY_3D_WORK; gms_GMK_NEEDLE_WORK.needle_type = AppMain.GmGmkNeedleGetType(eve_rec.id); AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_needle_obj_3d_list[0], gms_ENEMY_3D_WORK.obj_3d); obs_OBJECT_WORK.ppOut = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkNeedleDrawFunc); gms_ENEMY_3D_WORK.ene_com.col_work.obj_col.obj = obs_OBJECT_WORK; gms_ENEMY_3D_WORK.ene_com.col_work.obj_col.width = ( ushort )AppMain.gm_gmk_col_rect_tbl[( int )gms_GMK_NEEDLE_WORK.needle_type][0]; gms_ENEMY_3D_WORK.ene_com.col_work.obj_col.height = ( ushort )AppMain.gm_gmk_col_rect_tbl[( int )gms_GMK_NEEDLE_WORK.needle_type][1]; gms_ENEMY_3D_WORK.ene_com.col_work.obj_col.ofst_x = ( short )AppMain.gm_gmk_col_rect_tbl[( int )gms_GMK_NEEDLE_WORK.needle_type][2]; gms_ENEMY_3D_WORK.ene_com.col_work.obj_col.ofst_y = ( short )AppMain.gm_gmk_col_rect_tbl[( int )gms_GMK_NEEDLE_WORK.needle_type][3]; gms_ENEMY_3D_WORK.ene_com.col_work.obj_col.dir = ( ushort )(16384 * gms_GMK_NEEDLE_WORK.needle_type); obs_OBJECT_WORK.pos.z = -4096; AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_ENEMY_3D_WORK.ene_com.rect_work[1]; AppMain.ObjRectWorkZSet(obs_RECT_WORK, ( short )AppMain.gm_gmk_atk_rect_tbl[( int )gms_GMK_NEEDLE_WORK.needle_type][0], ( short )AppMain.gm_gmk_atk_rect_tbl[( int )gms_GMK_NEEDLE_WORK.needle_type][1], -500, ( short )AppMain.gm_gmk_atk_rect_tbl[( int )gms_GMK_NEEDLE_WORK.needle_type][2], ( short )AppMain.gm_gmk_atk_rect_tbl[( int )gms_GMK_NEEDLE_WORK.needle_type][3], 500); if (AppMain.g_gs_main_sys_info.stage_id == 9) { if (gms_GMK_NEEDLE_WORK.needle_type == 1) { AppMain.OBS_RECT rect = obs_RECT_WORK.rect; rect.left -= 16; } else if (gms_GMK_NEEDLE_WORK.needle_type == 3) { AppMain.OBS_RECT rect2 = obs_RECT_WORK.rect; rect2.right += 16; } } obs_RECT_WORK.flag |= 4U; obs_RECT_WORK.flag |= 1024U; if (AppMain.g_gs_main_sys_info.stage_id == 14) { AppMain.ObjDrawObjectActionSet(obs_OBJECT_WORK, 0); obs_OBJECT_WORK.obj_3d.use_light_flag &= 4294967294U; obs_OBJECT_WORK.obj_3d.use_light_flag |= 4U; } obs_OBJECT_WORK.move_flag |= 8449U; obs_OBJECT_WORK.disp_flag |= 4194304U; gms_GMK_NEEDLE_WORK.state = 0U; AppMain.gmGmkNeedleFwInit(obs_OBJECT_WORK); obs_OBJECT_WORK.flag |= 1073741824U; gms_GMK_NEEDLE_WORK.color = uint.MaxValue; if (AppMain.g_gs_main_sys_info.stage_id == 2 || AppMain.g_gs_main_sys_info.stage_id == 3) { gms_GMK_NEEDLE_WORK.color = 4288717055U; } else if (AppMain.g_gs_main_sys_info.stage_id == 14) { gms_GMK_NEEDLE_WORK.color = 2694881535U; } return(obs_OBJECT_WORK); }
// Token: 0x06001026 RID: 4134 RVA: 0x0008C564 File Offset: 0x0008A764 private static AppMain.OBS_OBJECT_WORK GmEneUniuniInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_ENE_UNIUNI_WORK(), "ENE_UNIUNI"); AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK; AppMain.GMS_ENE_UNIUNI_WORK gms_ENE_UNIUNI_WORK = (AppMain.GMS_ENE_UNIUNI_WORK)obs_OBJECT_WORK; AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_ene_uniuni_obj_3d_list[0], gms_ENEMY_3D_WORK.obj_3d); AppMain.ObjObjectAction3dNNMotionLoad(obs_OBJECT_WORK, 0, true, AppMain.ObjDataGet(695), null, 0, null); AppMain.ObjDrawObjectSetToon(obs_OBJECT_WORK); obs_OBJECT_WORK.pos.z = 655360; AppMain.OBS_RECT_WORK obs_RECT_WORK = gms_ENEMY_3D_WORK.ene_com.rect_work[1]; AppMain.ObjRectWorkSet(obs_RECT_WORK, -8, 0, 8, 16); obs_RECT_WORK.flag |= 4U; obs_RECT_WORK = gms_ENEMY_3D_WORK.ene_com.rect_work[0]; AppMain.ObjRectWorkSet(obs_RECT_WORK, -16, -8, 16, 16); obs_RECT_WORK.flag |= 4U; gms_ENEMY_3D_WORK.ene_com.rect_work[2].flag &= 4294967291U; obs_RECT_WORK = gms_ENEMY_3D_WORK.ene_com.rect_work[2]; AppMain.ObjRectWorkSet(obs_RECT_WORK, -19, -16, 19, 16); obs_RECT_WORK.flag &= 4294967291U; obs_OBJECT_WORK.move_flag &= 4294967167U; obs_OBJECT_WORK.move_flag |= 256U; if ((eve_rec.flag & 1) == 0) { obs_OBJECT_WORK.disp_flag |= 1U; obs_OBJECT_WORK.dir.y = ( ushort )AppMain.AKM_DEGtoA16(45); } else { obs_OBJECT_WORK.dir.y = ( ushort )AppMain.AKM_DEGtoA16(-45); } obs_OBJECT_WORK.user_work = ( uint )(obs_OBJECT_WORK.pos.x + (( int )eve_rec.left << 12)); obs_OBJECT_WORK.user_flag = ( uint )(obs_OBJECT_WORK.pos.x + (( int )(eve_rec.left + ( sbyte )eve_rec.width) << 12)); gms_ENE_UNIUNI_WORK.spd_dec = 76; gms_ENE_UNIUNI_WORK.spd_dec_dist = 15360; gms_ENE_UNIUNI_WORK.len = 17.5f; gms_ENE_UNIUNI_WORK.len_target = 35.5f; gms_ENE_UNIUNI_WORK.len_spd = 1f; gms_ENE_UNIUNI_WORK.rot_x = AppMain.AKM_DEGtoA32(90f); gms_ENE_UNIUNI_WORK.rot_y = AppMain.AKM_DEGtoA32(0f); gms_ENE_UNIUNI_WORK.rot_z = AppMain.AKM_DEGtoA32(0f); gms_ENE_UNIUNI_WORK.num = 0; AppMain.gmEneUniuniWalkInit(obs_OBJECT_WORK); for (int i = 0; i < 4; i++) { AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK2 = AppMain.GmEventMgrLocalEventBirth(310, pos_x, pos_y, 0, 0, 0, 0, 0, 0); obs_OBJECT_WORK2.parent_obj = obs_OBJECT_WORK; AppMain.GMS_ENE_UNIUNI_WORK gms_ENE_UNIUNI_WORK2 = (AppMain.GMS_ENE_UNIUNI_WORK)obs_OBJECT_WORK2; gms_ENE_UNIUNI_WORK2.num = i; gms_ENE_UNIUNI_WORK.num++; } obs_OBJECT_WORK.obj_3d.use_light_flag &= 4294967294U; obs_OBJECT_WORK.obj_3d.use_light_flag |= 64U; return(obs_OBJECT_WORK); }
// Token: 0x06000FE2 RID: 4066 RVA: 0x0008A930 File Offset: 0x00088B30 private static AppMain.GMS_ENEMY_3D_WORK gmGmkRockLoadObjHook(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { int num = pos_y >> 17; int pos_y2 = num << 17; AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = AppMain.gmGmkRockLoadObjNoModel(eve_rec, pos_x, pos_y2, type, () => new AppMain.GMS_ENEMY_3D_WORK()); AppMain.OBS_OBJECT_WORK obj_work = gms_ENEMY_3D_WORK.ene_com.obj_work; AppMain.ObjObjectCopyAction3dNNModel(obj_work, AppMain.g_gm_gmk_rock_obj_3d_list[1], gms_ENEMY_3D_WORK.obj_3d); AppMain.ObjObjectAction3dNNMotionLoad(obj_work, 0, false, AppMain.ObjDataGet(818), null, 0, null); return(gms_ENEMY_3D_WORK); }
private static AppMain.GMS_ENEMY_3D_WORK gmGmkWaterAreaLoadObj( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.GMS_ENEMY_3D_WORK work = (AppMain.GMS_ENEMY_3D_WORK)AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_ENEMY_3D_WORK()), "GMK_WATER_AREA"); work.ene_com.rect_work[0].flag &= 4294967291U; work.ene_com.rect_work[1].flag &= 4294967291U; return(work); }
// Token: 0x06000FD9 RID: 4057 RVA: 0x0008A5AC File Offset: 0x000887AC private static OBS_OBJECT_WORK GmGmkRockChaseManagerInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GmGmkRockHookInit(eve_rec, pos_x, pos_y, type); AppMain.GMS_ENEMY_3D_WORK hook_work = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK; OBS_OBJECT_WORK work = AppMain.GmEventMgrLocalEventBirth(307, pos_x, pos_y, eve_rec.flag, eve_rec.left, eve_rec.top, eve_rec.width, eve_rec.height, 0); AppMain.GMS_GMK_ROCK_CHASE_WORK gms_GMK_ROCK_CHASE_WORK = (AppMain.GMS_GMK_ROCK_CHASE_WORK)work; gms_GMK_ROCK_CHASE_WORK.hook_work = hook_work; return(obs_OBJECT_WORK); }
private static AppMain.OBS_OBJECT_WORK GmGmkPopSteamLInit( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.OBS_OBJECT_WORK obsObjectWork = AppMain.gmGmkPopSteamInit(eve_rec, pos_x, pos_y, type, 3); obsObjectWork.dir.z = (ushort)49152; obsObjectWork.ppFunc = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPopSteamStart); return(obsObjectWork); }
public static AppMain.OBS_OBJECT_WORK GmGmkUpBumperLInit( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.GMS_GMK_UPBUMPER_WORK gmsGmkUpbumperWork = (AppMain.GMS_GMK_UPBUMPER_WORK)AppMain.gmGmkUpBumperInit(eve_rec, pos_x, pos_y, type); gmsGmkUpbumperWork.obj_type = 0; AppMain.gmGmkUpBumperStart(gmsGmkUpbumperWork.gmk_work.ene_com.obj_work); return(gmsGmkUpbumperWork.gmk_work.ene_com.obj_work); }
// Token: 0x060004E8 RID: 1256 RVA: 0x0002A008 File Offset: 0x00028208 public static AppMain.OBS_OBJECT_WORK GmGmkUpBumperRInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.gmGmkUpBumperInit(eve_rec, pos_x, pos_y, type); AppMain.GMS_GMK_UPBUMPER_WORK gms_GMK_UPBUMPER_WORK = (AppMain.GMS_GMK_UPBUMPER_WORK)obs_OBJECT_WORK; obs_OBJECT_WORK.disp_flag &= 4290772991U; obs_OBJECT_WORK.obj_3d.drawflag |= 32U; obs_OBJECT_WORK.dir.y = 16384; gms_GMK_UPBUMPER_WORK.obj_type = 1; AppMain.gmGmkUpBumperStart(gms_GMK_UPBUMPER_WORK.gmk_work.ene_com.obj_work); return(obs_OBJECT_WORK); }
private static AppMain.OBS_OBJECT_WORK GmGmkBumperInit( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { int num = (int)eve_rec.id - 146; AppMain.OBS_OBJECT_WORK objWork = AppMain.gmGmkBumperLoadObj(eve_rec, pos_x, pos_y, num).ene_com.obj_work; AppMain.gmGmkBumperInit(objWork, num); return(objWork); }
// Token: 0x060008AB RID: 2219 RVA: 0x0004E63C File Offset: 0x0004C83C private static AppMain.GMS_ENEMY_3D_WORK gmGmkRockRideLoadObj(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.GMS_GMK_ROCK_WORK gms_GMK_ROCK_WORK = (AppMain.GMS_GMK_ROCK_WORK)AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_GMK_ROCK_WORK(), "GMK_ROCK_RIDE"); AppMain.GMS_ENEMY_3D_WORK enemy_work = gms_GMK_ROCK_WORK.enemy_work; AppMain.OBS_OBJECT_WORK obj_work = gms_GMK_ROCK_WORK.enemy_work.ene_com.obj_work; enemy_work.ene_com.rect_work[0].flag &= 4294967291U; enemy_work.ene_com.rect_work[1].flag &= 4294967291U; AppMain.ObjObjectCopyAction3dNNModel(obj_work, AppMain.g_gm_gmk_rock_ride_obj_3d_list[0], enemy_work.obj_3d); obj_work.obj_3d.use_light_flag &= 4294967294U; obj_work.obj_3d.use_light_flag |= 64U; return(enemy_work); }
private static AppMain.OBS_OBJECT_WORK GmGmkSpCtplt315Init( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.GMS_GMK_SPCTPLT_WORK gmsGmkSpctpltWork = (AppMain.GMS_GMK_SPCTPLT_WORK)AppMain.gmGmkSpCtpltInit(eve_rec, pos_x, pos_y, type); gmsGmkSpctpltWork.ctplt_tilt = (ushort)57344; gmsGmkSpctpltWork.ctplt_id = (ushort)2; AppMain.gmGmkSpCtpltStart(gmsGmkSpctpltWork.gmk_work.ene_com.obj_work); return(gmsGmkSpctpltWork.gmk_work.ene_com.obj_work); }
private static AppMain.GMS_ENEMY_3D_WORK gmGmkRockLoadObjNoModel( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type, AppMain.TaskWorkFactoryDelegate work_size) { AppMain.GMS_ENEMY_3D_WORK work = (AppMain.GMS_ENEMY_3D_WORK)AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, work_size, "GMK_ROCK"); work.ene_com.rect_work[0].flag &= 4294967291U; work.ene_com.rect_work[1].flag &= 4294967291U; return(work); }
// Token: 0x0600121D RID: 4637 RVA: 0x0009E69C File Offset: 0x0009C89C private static AppMain.OBS_OBJECT_WORK GmGmkDrainTankInitOut(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = (AppMain.OBS_OBJECT_WORK)AppMain.g_gm_main_system.ply_work[(int)((UIntPtr)0)]; if (pos_x - 524288 < obs_OBJECT_WORK.pos.x) { return(null); } AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = AppMain.gmGmkDrainTankLoadObj(eve_rec, pos_x, pos_y, 1, 1U); AppMain.OBS_OBJECT_WORK obj_work = gms_ENEMY_3D_WORK.ene_com.obj_work; AppMain.gmGmkDrainTankOutInit(obj_work); return(obj_work); }
private static AppMain.OBS_OBJECT_WORK GmGmkNeedleNeonInitGlaer( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.UNREFERENCED_PARAMETER((object)eve_rec); AppMain.UNREFERENCED_PARAMETER((object)pos_x); AppMain.UNREFERENCED_PARAMETER((object)pos_y); AppMain.UNREFERENCED_PARAMETER((object)type); return((AppMain.OBS_OBJECT_WORK)null); }
// Token: 0x06000DC5 RID: 3525 RVA: 0x000797D0 File Offset: 0x000779D0 public static AppMain.OBS_OBJECT_WORK GmGmkSteamPipeJ4Init(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { ushort model = 13; if (AppMain.GMM_MAIN_GET_ZONE_TYPE() == 4) { model = 9; } AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.gmGmkSteamPipeInit(eve_rec, pos_x, pos_y, type, model); AppMain.gmGmkSteamPipeStart(obs_OBJECT_WORK, 3); return(obs_OBJECT_WORK); }
private static AppMain.OBS_OBJECT_WORK GmGmkRockFallInit( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.GMS_GMK_ROCK_FALL_WORK gmsGmkRockFallWork = (AppMain.GMS_GMK_ROCK_FALL_WORK)AppMain.gmGmkRockLoadObj(eve_rec, pos_x, pos_y, type, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_GMK_ROCK_FALL_WORK())); AppMain.OBS_OBJECT_WORK objWork = gmsGmkRockFallWork.enemy_work.ene_com.obj_work; AppMain.gmGmkRockFallInit(objWork); gmsGmkRockFallWork.wait_time = type == (byte)0 ? 0 : 30; return(objWork); }
private static AppMain.OBS_OBJECT_WORK GmGmkDashPanelInit( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.OBS_OBJECT_WORK work = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_ENEMY_3D_WORK()), "GMK_DASH_PANEL"); AppMain.GMS_ENEMY_3D_WORK gmsEnemy3DWork = (AppMain.GMS_ENEMY_3D_WORK)work; AppMain.ObjObjectCopyAction3dNNModel(work, AppMain.gm_gmk_dash_panel_obj_3d_list[0], gmsEnemy3DWork.obj_3d); AppMain.ObjObjectAction3dNNMotionLoad(work, 0, false, AppMain.ObjDataGet(827), (string)null, 0, (AppMain.AMS_AMB_HEADER)null); AppMain.ObjDrawObjectActionSet(work, 0); AppMain.ObjAction3dNNMaterialMotionLoad(gmsEnemy3DWork.obj_3d, 0, (AppMain.OBS_DATA_WORK)null, (string)null, 0, (AppMain.AMS_AMB_HEADER)AppMain.ObjDataGet(828).pData); AppMain.ObjDrawObjectActionSet3DNNMaterial(work, 0); work.pos.z = -131072; work.move_flag |= 8448U; work.disp_flag |= 4U; gmsEnemy3DWork.ene_com.rect_work[0].flag &= 4294967291U; gmsEnemy3DWork.ene_com.rect_work[1].flag &= 4294967291U; AppMain.OBS_RECT_WORK pRec = gmsEnemy3DWork.ene_com.rect_work[2]; pRec.ppHit = (AppMain.OBS_RECT_WORK_Delegate1)null; pRec.ppDef = new AppMain.OBS_RECT_WORK_Delegate1(AppMain.gmGmkDashPanelDefFunc); AppMain.ObjRectAtkSet(pRec, (ushort)0, (short)0); AppMain.ObjRectDefSet(pRec, (ushort)65534, (short)0); if (AppMain.g_gs_main_sys_info.stage_id == (ushort)9 && (eve_rec.id == (ushort)109 || eve_rec.id == (ushort)110)) { AppMain.ObjRectWorkSet(pRec, (short)-16, (short)-8, (short)16, (short)8); } else { AppMain.ObjRectWorkSet(pRec, (short)-8, (short)-8, (short)8, (short)8); } pRec.flag |= 1024U; if (eve_rec.id == (ushort)108) { work.dir.y = (ushort)32768; } else if (eve_rec.id == (ushort)109) { work.dir.z = (ushort)49152; } else if (eve_rec.id == (ushort)110) { work.dir.z = (ushort)16384; work.dir.y = (ushort)32768; } else { work.dir.z = (ushort)0; work.dir.y = (ushort)0; } work.ppFunc = (AppMain.MPP_VOID_OBS_OBJECT_WORK)null; return(work); }
// Token: 0x06000DD4 RID: 3540 RVA: 0x0007A1E4 File Offset: 0x000783E4 private static OBS_OBJECT_WORK GmGmkNeedleNeonInitStand(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type) { AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = AppMain.gmGmkNeedleNeonLoadObj(eve_rec, pos_x, pos_y, type, 2U); OBS_OBJECT_WORK obj_work = gms_ENEMY_3D_WORK.ene_com.obj_work; AppMain.gmGmkNeedleNeonStandInit(obj_work); OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GmEventMgrLocalEventBirth(337, obj_work.pos.x, obj_work.pos.y, eve_rec.flag, eve_rec.left, eve_rec.top, eve_rec.width, eve_rec.height, type); obs_OBJECT_WORK.parent_obj = obj_work; obs_OBJECT_WORK.user_work = ( uint )(obj_work.pos.y + 131072); return(obj_work); }
private static AppMain.GMS_ENEMY_3D_WORK gmGmkBumperLoadObjNoModel( AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, int type) { AppMain.UNREFERENCED_PARAMETER((object)type); AppMain.GMS_ENEMY_3D_WORK work = (AppMain.GMS_ENEMY_3D_WORK)AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, (AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_GMK_BUMPER_WORK()), "GMK_BUMPER"); work.ene_com.rect_work[0].flag &= 4294967291U; work.ene_com.rect_work[1].flag &= 4294967291U; return(work); }
// Token: 0x06000DB6 RID: 3510 RVA: 0x000793DC File Offset: 0x000775DC public static AppMain.OBS_OBJECT_WORK gmGmkSteamPipeInit(AppMain.GMS_EVE_RECORD_EVENT eve_rec, int pos_x, int pos_y, byte type, ushort model) { AppMain.UNREFERENCED_PARAMETER(type); AppMain.OBS_OBJECT_WORK obs_OBJECT_WORK = AppMain.GMM_ENEMY_CREATE_WORK(eve_rec, pos_x, pos_y, () => new AppMain.GMS_GMK_STEAMP_WORK(), "Gmk_SteamPipe"); AppMain.GMS_ENEMY_3D_WORK gms_ENEMY_3D_WORK = (AppMain.GMS_ENEMY_3D_WORK)obs_OBJECT_WORK; AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_steampipe_obj_3d_list[( int )model], gms_ENEMY_3D_WORK.obj_3d); obs_OBJECT_WORK.pos.z = ( int )(eve_rec.left * 8) * 4096; obs_OBJECT_WORK.move_flag |= 8448U; obs_OBJECT_WORK.disp_flag |= 4194304U; obs_OBJECT_WORK.flag |= 2U; return(obs_OBJECT_WORK); }