コード例 #1
0
    private static void gmGmkPistonRodStay(AppMain.OBS_OBJECT_WORK obj_work)
    {
        AppMain.GMS_GMK_PISTONROD_WORK gmkPistonrodWork = (AppMain.GMS_GMK_PISTONROD_WORK)obj_work;
        int num = AppMain.MTM_MATH_ABS(obj_work.parent_obj.pos.y - gmkPistonrodWork.fulcrum) / 8;

        obj_work.scale.y = num;
    }
コード例 #2
0
 // Token: 0x060013C9 RID: 5065 RVA: 0x000AF54C File Offset: 0x000AD74C
 private static void gmGmkPistonRod_Create(AppMain.OBS_OBJECT_WORK parent_obj)
 {
     AppMain.GMS_GMK_PISTONROD_WORK gms_GMK_PISTONROD_WORK = (AppMain.GMS_GMK_PISTONROD_WORK)AppMain.GMM_EFFECT_CREATE_WORK(() => new AppMain.GMS_GMK_PISTONROD_WORK(), null, 0, "Gmk_PistonRod");
     AppMain.OBS_OBJECT_WORK        obs_OBJECT_WORK        = (AppMain.OBS_OBJECT_WORK)gms_GMK_PISTONROD_WORK;
     AppMain.ObjObjectCopyAction3dNNModel(obs_OBJECT_WORK, AppMain.gm_gmk_piston_obj_3d_list[1], gms_GMK_PISTONROD_WORK.eff_work.obj_3d);
     obs_OBJECT_WORK.parent_obj    = parent_obj;
     obs_OBJECT_WORK.parent_ofst.x = 0;
     obs_OBJECT_WORK.parent_ofst.y = 65536;
     obs_OBJECT_WORK.parent_ofst.z = -524288;
     obs_OBJECT_WORK.dir.z         = ( ushort )(parent_obj.dir.z ^ 32768);
     if (obs_OBJECT_WORK.dir.z == 0)
     {
         obs_OBJECT_WORK.parent_ofst.y = -obs_OBJECT_WORK.parent_ofst.y;
     }
     obs_OBJECT_WORK.flag          |= 1024U;
     obs_OBJECT_WORK.move_flag     |= 256U;
     obs_OBJECT_WORK.disp_flag     |= 4194304U;
     obs_OBJECT_WORK.disp_flag     &= 4294967039U;
     obs_OBJECT_WORK.flag          |= 2U;
     obs_OBJECT_WORK.ppFunc         = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPistonRodStay);
     gms_GMK_PISTONROD_WORK.fulcrum = parent_obj.pos.y + obs_OBJECT_WORK.parent_ofst.y;
 }
コード例 #3
0
 private static void gmGmkPistonRod_Create(AppMain.OBS_OBJECT_WORK parent_obj)
 {
     AppMain.GMS_GMK_PISTONROD_WORK work     = (AppMain.GMS_GMK_PISTONROD_WORK)AppMain.GMM_EFFECT_CREATE_WORK((AppMain.TaskWorkFactoryDelegate)(() => (object)new AppMain.GMS_GMK_PISTONROD_WORK()), (AppMain.OBS_OBJECT_WORK)null, (ushort)0, "Gmk_PistonRod");
     AppMain.OBS_OBJECT_WORK        obj_work = (AppMain.OBS_OBJECT_WORK)work;
     AppMain.ObjObjectCopyAction3dNNModel(obj_work, AppMain.gm_gmk_piston_obj_3d_list[1], work.eff_work.obj_3d);
     obj_work.parent_obj    = parent_obj;
     obj_work.parent_ofst.x = 0;
     obj_work.parent_ofst.y = 65536;
     obj_work.parent_ofst.z = -524288;
     obj_work.dir.z         = (ushort)((uint)parent_obj.dir.z ^ 32768U);
     if (obj_work.dir.z == (ushort)0)
     {
         obj_work.parent_ofst.y = -obj_work.parent_ofst.y;
     }
     obj_work.flag      |= 1024U;
     obj_work.move_flag |= 256U;
     obj_work.disp_flag |= 4194304U;
     obj_work.disp_flag &= 4294967039U;
     obj_work.flag      |= 2U;
     obj_work.ppFunc     = new AppMain.MPP_VOID_OBS_OBJECT_WORK(AppMain.gmGmkPistonRodStay);
     work.fulcrum        = parent_obj.pos.y + obj_work.parent_ofst.y;
 }