Example #1
0
 // Token: 0x0600002D RID: 45 RVA: 0x00002AAC File Offset: 0x00000CAC
 private static void amTrailMakeEffect(AppMain.AMS_TRAIL_PARAM param, ushort handleId, short flag)
 {
     AppMain.AMS_TRAIL_INTERFACE ams_TRAIL_INTERFACE = AppMain.pTr;
     ams_TRAIL_INTERFACE.trailNum += 1;
     AppMain.AMS_TRAIL_EFFECT ams_TRAIL_EFFECT = AppMain._amTrailEFMake(handleId);
     if (ams_TRAIL_EFFECT == null)
     {
         return;
     }
     ams_TRAIL_EFFECT.Procedure  = new AppMain.AMTREffectProc(AppMain._amTrailUpdateNormal);
     ams_TRAIL_EFFECT.Destractor = new AppMain.AMTREffectProc(AppMain._amTrailFinalizeNormal);
     ams_TRAIL_EFFECT.fEndFrame  = -1f;
     ams_TRAIL_EFFECT.flag       = flag;
     AppMain.AMS_TRAIL_PARAM ams_TRAIL_PARAM = ams_TRAIL_EFFECT.Work;
     ams_TRAIL_PARAM         = ams_TRAIL_PARAM.Assign(param);
     ams_TRAIL_PARAM.time    = ams_TRAIL_PARAM.life * AppMain.amEffectGetUnitFrame();
     ams_TRAIL_PARAM.trailId = AppMain.pTr.trailId;
     if (AppMain.pTr.trailEffect[(int)ams_TRAIL_PARAM.trailId] != null)
     {
         AppMain._amTrailEFDelete(AppMain.pTr.trailEffect[(int)ams_TRAIL_PARAM.trailId]);
     }
     AppMain.pTr.trailEffect[(int)ams_TRAIL_PARAM.trailId] = ams_TRAIL_EFFECT;
     AppMain._amTrailInitNormal(ams_TRAIL_EFFECT);
     AppMain.AMS_TRAIL_INTERFACE ams_TRAIL_INTERFACE2 = AppMain.pTr;
     ams_TRAIL_INTERFACE2.trailId += 1;
     if (AppMain.pTr.trailId >= 8)
     {
         AppMain.pTr.trailId = 0;
     }
 }
Example #2
0
 // Token: 0x06000034 RID: 52 RVA: 0x00002E24 File Offset: 0x00001024
 private static int _amTrailFinalizeNormal(AppMain.AMS_TRAIL_EFFECT pEffect)
 {
     AppMain.AMS_TRAIL_PARAM work = pEffect.Work;
     if (AppMain.pTr.trailNum > 0)
     {
         AppMain.AMS_TRAIL_INTERFACE ams_TRAIL_INTERFACE = AppMain.pTr;
         ams_TRAIL_INTERFACE.trailNum -= 1;
         if (AppMain.pTr.trailNum == 0)
         {
             AppMain.AMS_TRAIL_INTERFACE ams_TRAIL_INTERFACE2 = AppMain.pTr;
             ams_TRAIL_INTERFACE2.trailState &= short.MaxValue;
         }
     }
     AppMain.pTr.trailEffect[(int)work.trailId] = null;
     return(0);
 }