Ejemplo n.º 1
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RJR || Settings.s.game == Settings.Game.RFR || Settings.s.game == Settings.Game.RO)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(Children));
         }
         if (!s.HasSerializerFlags(CSerializerObject.Flags.Flags0) && s.HasFlags(SerializeFlags.Flags6))
         {
             SerializeField(s, nameof(ChildrenObjId));
             SerializeField(s, nameof(LinkedChildren));
         }
     }
     else if (Settings.s.game == Settings.Game.COL)
     {
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(Children));
         }
     }
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.VH)
     {
         SerializeField(s, nameof(Path__0));
         SerializeField(s, nameof(CArray_Generic_Event__1));
         SerializeField(s, nameof(bool__2));
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(EventSpawn__3));
         }
     }
     else
     {
         SerializeField(s, nameof(actorToSpawn));
         SerializeField(s, nameof(onSpawnEvents));
         SerializeField(s, nameof(autoStart));
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(spawnDataAutoStart));
         }
         SerializeField(s, nameof(SpawnObjectRef));
         SerializeField(s, nameof(SpawnPosRef));
         SerializeField(s, nameof(KEY));
         SerializeField(s, nameof(BoneGroups));
         SerializeField(s, nameof(KEY));
         SerializeField(s, nameof(BoneGroups));
     }
 }
Ejemplo n.º 3
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RL)
     {
         SerializeField(s, nameof(defaultUpdate));
         SerializeField(s, nameof(draw2D));
         SerializeField(s, nameof(amvPath));
         if (s.HasFlags(SerializeFlags.Flags8))
         {
             SerializeField(s, nameof(texture));
         }
         SerializeField(s, nameof(material));
         SerializeField(s, nameof(useEditor));
         SerializeField(s, nameof(useDataAnims));
         SerializeField(s, nameof(useActorScale));
         SerializeField(s, nameof(stopDuration));
         SerializeField(s, nameof(animPackage));
     }
     else
     {
         SerializeField(s, nameof(defaultUpdate));
         SerializeField(s, nameof(draw2D));
         SerializeField(s, nameof(amvPath));
         if (s.HasFlags(SerializeFlags.Flags8))
         {
             SerializeField(s, nameof(texture));
         }
         SerializeField(s, nameof(material));
         SerializeField(s, nameof(useEditor));
         SerializeField(s, nameof(useDataAnims));
         SerializeField(s, nameof(useActorScale));
         SerializeField(s, nameof(stopDuration));
     }
 }
Ejemplo n.º 4
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RO)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(TextLabel), type: typeof(CString));
             SerializeField(s, nameof(lineId));
             SerializeField(s, nameof(drawUsingEngine));
             SerializeField(s, nameof(drawBoxWidth));
             SerializeField(s, nameof(drawBoxHeight));
             SerializeField(s, nameof(textSize));
             SerializeField(s, nameof(textColor));
             SerializeField(s, nameof(backgroundColor));
             SerializeField(s, nameof(centerText));
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(TextLabel));
             SerializeField(s, nameof(lineId));
             SerializeField(s, nameof(drawUsingEngine));
             SerializeField(s, nameof(drawBoxWidth));
             SerializeField(s, nameof(drawBoxHeight));
             SerializeField(s, nameof(textSize));
             SerializeField(s, nameof(textColor));
             SerializeField(s, nameof(backgroundColor));
             SerializeField(s, nameof(centerText));
         }
     }
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RJR || Settings.s.game == Settings.Game.RFR || Settings.s.game == Settings.Game.RO)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(endPos));
             SerializeField(s, nameof(useBeginTexture));
             SerializeField(s, nameof(useEndTexture));
             SerializeField(s, nameof(initIteration));
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(endPos));
             SerializeField(s, nameof(useBeginTexture));
             SerializeField(s, nameof(useEndTexture));
             SerializeField(s, nameof(initIteration));
             SerializeField(s, nameof(lianaOnTrigger));
             SerializeField(s, nameof(flipTexture));
         }
     }
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RL)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(minAngle));
             SerializeField(s, nameof(maxAngle));
             SerializeField(s, nameof(mode));
             SerializeField(s, nameof(lockOnMinReached), boolAsByte: true);
             SerializeField(s, nameof(lockOnMaxReached), boolAsByte: true);
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(minAngle));
             SerializeField(s, nameof(maxAngle));
             SerializeField(s, nameof(mode));
             SerializeField(s, nameof(lockOnMinReached));
             SerializeField(s, nameof(lockOnMaxReached));
         }
     }
 }
Ejemplo n.º 7
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RL || Settings.s.game == Settings.Game.COL)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(isPassword), boolAsByte: true);
             SerializeField(s, nameof(dialogMaxChar));
             SerializeField(s, nameof(dialogAcceptSpace));
             SerializeField(s, nameof(dialogNameRaw));
             SerializeField(s, nameof(dialogNameLoc));
             SerializeField(s, nameof(style2));
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(isPassword));
             SerializeField(s, nameof(dialogMaxChar));
             SerializeField(s, nameof(dialogAcceptSpace));
             SerializeField(s, nameof(dialogNameRaw));
             SerializeField(s, nameof(dialogNameLoc));
             SerializeField(s, nameof(style));
         }
     }
 }
Ejemplo n.º 8
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.VH)
     {
         SerializeField(s, nameof(fact));
         if (s.HasFlags(SerializeFlags.Editor))
         {
             SerializeFieldAsChoiceList(s, nameof(ComponentList), "Invalid");
             SerializeFieldAsChoiceList(s, nameof(StateList));                     // No empty for this
         }
         else
         {
             SerializeField(s, nameof(ComponentList));
             SerializeField(s, nameof(StateList));
         }
     }
     else
     {
         SerializeField(s, nameof(fact));
         if (s.HasFlags(SerializeFlags.Editor))
         {
             SerializeFieldAsChoiceList(s, nameof(ComponentList), "Invalid");
             SerializeFieldAsChoiceList(s, nameof(StateList));                     // No empty for this
         }
         else
         {
             SerializeField(s, nameof(ComponentList));
             SerializeField(s, nameof(StateList));
         }
     }
 }
Ejemplo n.º 9
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RFR)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(int__0));
             SerializeField(s, nameof(float__1));
             SerializeField(s, nameof(Enum_RFR_0__2));
             SerializeField(s, nameof(int__3));
             SerializeField(s, nameof(CList_Ray_BezierTreeAIComponent_Branch__4));
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(startActivated));
             SerializeField(s, nameof(branchSpeed));
             SerializeField(s, nameof(polylineMode));
             SerializeField(s, nameof(flipTexture));
             SerializeField(s, nameof(branches));
         }
     }
 }
Ejemplo n.º 10
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (s.HasFlags(SerializeFlags.Default))
     {
         SerializeField(s, nameof(StringID__0));
         SerializeField(s, nameof(StringID__1_));
         SerializeField(s, nameof(bool__2));
         SerializeField(s, nameof(Vector2__3));
         SerializeField(s, nameof(float__4));
         SerializeField(s, nameof(bool__5));
         SerializeField(s, nameof(bool__6));
         SerializeField(s, nameof(bool__7));
         SerializeField(s, nameof(bool__8_));
         SerializeField(s, nameof(CArray_W1W_ItemType__9));
         SerializeField(s, nameof(CArray_W1W_ItemType__10));
         SerializeField(s, nameof(CArray_EventSender__11));
         SerializeField(s, nameof(CArray_EventSender__12));
         SerializeField(s, nameof(CArray_EventSender__13));
         SerializeField(s, nameof(CArray_EventSender__14));
         SerializeField(s, nameof(CArray_EventSender__15));
         SerializeField(s, nameof(bool__16_));
         SerializeField(s, nameof(EventSender__17));
         SerializeField(s, nameof(bool__18_));
         SerializeField(s, nameof(bool__19_));
     }
     if (s.HasFlags(SerializeFlags.Persistent))
     {
     }
     SerializeField(s, nameof(Path__20));
     SerializeField(s, nameof(bool__21));
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RFR)
     {
         SerializeField(s, nameof(Enum_RFR_0__0));
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(int__1));
             SerializeField(s, nameof(float__2));
             SerializeField(s, nameof(float__3));
             SerializeField(s, nameof(float__4));
         }
     }
     else
     {
         SerializeField(s, nameof(uvMode));
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(startOpen));
             SerializeField(s, nameof(widthStart));
             SerializeField(s, nameof(widthBase));
             SerializeField(s, nameof(speed));
         }
     }
 }
Ejemplo n.º 12
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RJR ||
         Settings.s.game == Settings.Game.RO ||
         Settings.s.game == Settings.Game.RFR ||
         Settings.s.game == Settings.Game.RL ||
         Settings.s.game == Settings.Game.COL)
     {
         SerializeField(s, nameof(sender), type: typeof(uint));
     }
     else if (Settings.s.game == Settings.Game.VH)
     {
         if (s.HasFlags(SerializeFlags.Flags_xC0))
         {
             SerializeField(s, nameof(sender));
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Flags18 | SerializeFlags.Flags19))                   // 0x0C0000 :thinking:
         {
             SerializeField(s, nameof(sender));
         }
     }
 }
Ejemplo n.º 13
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.COL)
     {
         SerializeField(s, nameof(build));
         SerializeField(s, nameof(offset));
         SerializeField(s, nameof(extremity));
         SerializeField(s, nameof(extremity2));
         SerializeField(s, nameof(flip), boolAsByte: true);
         SerializeField(s, nameof(methode));
         SerializeField(s, nameof(distMaxToSkipParallelEdge));
         SerializeField(s, nameof(smoothFactor));
         if (s.HasFlags(SerializeFlags.Flags10))
         {
             SerializeField(s, nameof(isSmooth), boolAsByte: true);
         }
     }
     else
     {
         SerializeField(s, nameof(build));
         SerializeField(s, nameof(offset));
         SerializeField(s, nameof(extremity));
         SerializeField(s, nameof(extremity2));
         SerializeField(s, nameof(flip));
         SerializeField(s, nameof(methode));
         SerializeField(s, nameof(distMaxToSkipParallelEdge));
         SerializeField(s, nameof(smoothFactor));
         if (s.HasFlags(SerializeFlags.Flags10))
         {
             SerializeField(s, nameof(isSmooth));
         }
     }
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RL)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(canFlip), boolAsByte: true);
             SerializeField(s, nameof(size));
             SerializeField(s, nameof(inPos));
             SerializeField(s, nameof(inSide));
             SerializeField(s, nameof(outPos));
             SerializeField(s, nameof(outSide));
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(canFlip));
             SerializeField(s, nameof(size));
             SerializeField(s, nameof(inPos));
             SerializeField(s, nameof(inSide));
             SerializeField(s, nameof(outPos));
             SerializeField(s, nameof(outSide));
         }
     }
 }
Ejemplo n.º 15
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RO || Settings.s.game == Settings.Game.RJR || Settings.s.game == Settings.Game.RFR)
     {
     }
     else if (Settings.s.game == Settings.Game.RL || Settings.s.game == Settings.Game.COL)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(localOffset));
             SerializeField(s, nameof(localScale));
         }
         if (s.HasFlags(SerializeFlags.Flags_xC0))
         {
             SerializeField(s, nameof(useShapeTransform));
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(localOffset));
             SerializeField(s, nameof(localScale));
         }
         if (s.HasFlags(SerializeFlags.Flags_xC0))
         {
             SerializeField(s, nameof(useShapeTransform));
         }
         SerializeField(s, nameof(useEditableShape));
         SerializeField(s, nameof(editableShape));
     }
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RL)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(triggerOnStick));
             SerializeField(s, nameof(triggerOnHit));
             SerializeField(s, nameof(triggerOnDRC));
         }
         if (s.HasFlags(SerializeFlags.Persistent))
         {
             SerializeField(s, nameof(activator));
             SerializeField(s, nameof(triggerCount));
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(triggerOnStick));
             SerializeField(s, nameof(triggerOnHit));
             SerializeField(s, nameof(triggerOnDRC));
         }
         if (s.HasFlags(SerializeFlags.Persistent))
         {
             SerializeField(s, nameof(triggerCount));
         }
     }
 }
Ejemplo n.º 17
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RL)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(distanceFromCheckpoint));
             SerializeField(s, nameof(speedFactor));
         }
         if (s.HasFlags(SerializeFlags.Persistent))
         {
             SerializeField(s, nameof(hasMoved), boolAsByte: true);
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(distanceFromCheckpoint));
             SerializeField(s, nameof(speedFactor));
         }
         if (s.HasFlags(SerializeFlags.Persistent))
         {
             SerializeField(s, nameof(hasMoved));
         }
     }
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RFR || Settings.s.game == Settings.Game.RO)
     {
         SerializeField(s, nameof(StartFrame));
         SerializeField(s, nameof(Offset));
         SerializeField(s, nameof(Duration));
         SerializeField(s, nameof(TrackLine));
         SerializeField(s, nameof(Channel));
         if (s.HasFlags(SerializeFlags.Flags_x30))
         {
             SerializeField(s, nameof(Selected));
             SerializeField(s, nameof(DisabledForTesting));
         }
     }
     else
     {
         SerializeField(s, nameof(StartFrame));
         SerializeField(s, nameof(Offset));
         SerializeField(s, nameof(Duration));
         SerializeField(s, nameof(TrackLine));
         SerializeField(s, nameof(Channel));
         if (s.HasFlags(SerializeFlags.Flags_x30))
         {
             SerializeField(s, nameof(Selected));
             SerializeField(s, nameof(DisabledForTesting));
             SerializeField(s, nameof(uid));
         }
         SerializeField(s, nameof(EventMode));
     }
 }
Ejemplo n.º 19
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (s.HasFlags(SerializeFlags.Default))
     {
         SerializeField(s, nameof(DEBUG_StartOnPattern));
         SerializeField(s, nameof(DEBUG_StartOnPhase));
         SerializeField(s, nameof(Alpha));
         SerializeField(s, nameof(SpawnFlowBySec));
         SerializeField(s, nameof(SpawnForceCoeff));
         SerializeField(s, nameof(SpawnRandom));
         SerializeField(s, nameof(IsLooping));
         SerializeField(s, nameof(DeactivateRoll));
         SerializeField(s, nameof(SinusSpeedX));
         SerializeField(s, nameof(SinusSpeedY));
         SerializeField(s, nameof(SinusAmplitudeX));
         SerializeField(s, nameof(SinusAmplitudeY));
         SerializeField(s, nameof(SinusLoopX));
         SerializeField(s, nameof(SinusLoopY));
         SerializeField(s, nameof(ModulateSpeedCoef));
         SerializeField(s, nameof(StartSpeed));
         SerializeField(s, nameof(StartingBackTan));
         SerializeField(s, nameof(StartingFrontTan));
         SerializeField(s, nameof(SlowDownDist));
         SerializeField(s, nameof(Phase3_OrientCoeff));
         SerializeField(s, nameof(Phase3_OrientBlend));
     }
     if (s.HasFlags(SerializeFlags.Persistent))
     {
         SerializeField(s, nameof(AppearanceDone));
     }
 }
Ejemplo n.º 20
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RL)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(startOpen), boolAsByte: true);
             SerializeField(s, nameof(openDuration));
             SerializeField(s, nameof(closedDuration));
             SerializeField(s, nameof(sendTapAlways));
             SerializeField(s, nameof(invertSentOpenCloseEvent), boolAsByte: true);
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(startOpen));
             SerializeField(s, nameof(openDuration));
             SerializeField(s, nameof(closedDuration));
             SerializeField(s, nameof(sendTapAlways));
             SerializeField(s, nameof(invertSentOpenCloseEvent));
         }
     }
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RL)
     {
         SerializeField(s, nameof(waitForTrigger));
         if (s.HasFlags(SerializeFlags.Default))
         {
             if (s.HasFlags(SerializeFlags.Editor))
             {
                 SerializeFieldAsChoiceList(s, nameof(bubblePrize));
             }
             else
             {
                 SerializeField(s, nameof(bubblePrize));
             }
         }
     }
     else
     {
         SerializeField(s, nameof(waitForTrigger));
         if (s.HasFlags(SerializeFlags.Default))
         {
             if (s.HasFlags(SerializeFlags.Editor))
             {
                 SerializeFieldAsChoiceList(s, nameof(bubblePrize));
             }
             else
             {
                 SerializeField(s, nameof(bubblePrize));
             }
         }
     }
 }
Ejemplo n.º 22
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RJR || Settings.s.game == Settings.Game.RFR || Settings.s.game == Settings.Game.RO)
     {
         if (s.HasFlags(SerializeFlags.Flags_x30 | SerializeFlags.Default))
         {
             SerializeField(s, nameof(POINTS));
         }
     }
     else if (Settings.s.game == Settings.Game.COL)
     {
         SerializeField(s, nameof(PolyPointList));
         SerializeField(s, nameof(AABB));
         if (s.HasFlags(SerializeFlags.Flags10))
         {
             SerializeField(s, nameof(AABB));
         }
     }
     else
     {
         SerializeField(s, nameof(PolyPointList));
         SerializeField(s, nameof(AABB));
         if (s.HasFlags(SerializeFlags.Flags10))
         {
             SerializeField(s, nameof(connection));
         }
     }
 }
Ejemplo n.º 23
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (s.HasFlags(SerializeFlags.Default))
     {
         SerializeField(s, nameof(bool__1));
         SerializeField(s, nameof(Enum_VH_0__2));
         SerializeField(s, nameof(bool__3));
         SerializeField(s, nameof(float__4));
         SerializeField(s, nameof(float__5));
         SerializeField(s, nameof(float__6));
         SerializeField(s, nameof(float__7));
         SerializeField(s, nameof(float__8));
         SerializeField(s, nameof(Path__9));
         SerializeField(s, nameof(bool__10));
         SerializeField(s, nameof(bool__11));
         SerializeField(s, nameof(float__12));
         SerializeField(s, nameof(StringID__13));
         SerializeField(s, nameof(Generic_Event__14));
         SerializeField(s, nameof(Generic_Event__15));
         SerializeField(s, nameof(Generic_Event__16));
         SerializeField(s, nameof(Generic_Event__17));
         SerializeField(s, nameof(Generic_Event__18));
         SerializeField(s, nameof(Generic_Event__19));
         SerializeField(s, nameof(Generic_Event__20));
         SerializeField(s, nameof(Generic_Event__21));
         SerializeField(s, nameof(Generic_Event__22));
         SerializeField(s, nameof(Generic_Event__23));
     }
     if (s.HasFlags(SerializeFlags.Persistent))
     {
         SerializeField(s, nameof(bool__0_));
     }
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (s.HasFlags(SerializeFlags.Flags_xC0))
     {
         SerializeField(s, nameof(max));
         SerializeField(s, nameof(heightUnderLeftCorner));
         SerializeField(s, nameof(heightUnderRightCorner));
         SerializeField(s, nameof(hookLengthLeft));
         SerializeField(s, nameof(hookLengthRight));
     }
     if (s.HasFlags(SerializeFlags.Default))
     {
         SerializeField(s, nameof(onlyOneTrigger));
         SerializeField(s, nameof(setUpEnabled));
         SerializeField(s, nameof(osciSummitHeight));
         SerializeField(s, nameof(osciAngularAccel));
         SerializeField(s, nameof(osciAngularSpeedInit));
         SerializeField(s, nameof(acceptCheckPointSave));
     }
     if (s.HasFlags(SerializeFlags.Persistent))
     {
         SerializeField(s, nameof(cornerLowerLeft));
         SerializeField(s, nameof(cornerLowerRight));
         SerializeField(s, nameof(cornerUpperLeft));
         SerializeField(s, nameof(cornerUpperRight));
         SerializeField(s, nameof(checkpointAngle));
         SerializeField(s, nameof(checkpointPos));
         SerializeField(s, nameof(isStill));
         SerializeField(s, nameof(trunkIsStoped));
     }
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RL)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(shape));
             SerializeField(s, nameof(savePosOnCheckpoint));
         }
         if (s.HasFlags(SerializeFlags.Persistent))
         {
             SerializeField(s, nameof(isBroken));
             SerializeField(s, nameof(checkpointAngle));
             SerializeField(s, nameof(checkpointPos));
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(shape));
             SerializeField(s, nameof(savePosOnCheckpoint));
             SerializeField(s, nameof(canTriggerMagnet));
         }
         if (s.HasFlags(SerializeFlags.Persistent))
         {
             SerializeField(s, nameof(isBroken));
             SerializeField(s, nameof(checkpointAngle));
             SerializeField(s, nameof(checkpointPos));
         }
     }
 }
Ejemplo n.º 26
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RO || Settings.s.game == Settings.Game.RJR || Settings.s.game == Settings.Game.RFR)
     {
         SerializeField(s, nameof(texture));
         SerializeField(s, nameof(nbFrames));
         SerializeField(s, nameof(trailFaidingTime));
         SerializeField(s, nameof(thicknessBegin));
         SerializeField(s, nameof(thicknessEnd));
         SerializeField(s, nameof(alphaBegin));
         SerializeField(s, nameof(alphaEnd));
         SerializeField(s, nameof(trailBlending));
         SerializeField(s, nameof(fadeLength));
         SerializeField(s, nameof(blendmode));
         SerializeField(s, nameof(color));
         SerializeField(s, nameof(attachBone));
     }
     else if (Settings.s.game == Settings.Game.RL)
     {
         if (s.HasFlags(SerializeFlags.Flags8))
         {
             SerializeField(s, nameof(texture));
         }
         SerializeField(s, nameof(material));
         SerializeField(s, nameof(nbFrames));
         SerializeField(s, nameof(trailFaidingTime));
         SerializeField(s, nameof(thicknessBegin));
         SerializeField(s, nameof(thicknessEnd));
         SerializeField(s, nameof(alphaBegin));
         SerializeField(s, nameof(alphaEnd));
         SerializeField(s, nameof(trailBlending));
         SerializeField(s, nameof(fadeLength));
         SerializeField(s, nameof(tesselateMaxLength));
         SerializeField(s, nameof(tesselateMinLength));
         SerializeField(s, nameof(color));
         SerializeField(s, nameof(attachBone));
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Flags8))
         {
             SerializeField(s, nameof(texture));
         }
         SerializeField(s, nameof(material));
         SerializeField(s, nameof(nbFrames));
         SerializeField(s, nameof(fixTrailLenght));
         SerializeField(s, nameof(trailFaidingTime));
         SerializeField(s, nameof(thicknessBegin));
         SerializeField(s, nameof(thicknessEnd));
         SerializeField(s, nameof(alphaBegin));
         SerializeField(s, nameof(alphaEnd));
         SerializeField(s, nameof(trailBlending));
         SerializeField(s, nameof(fadeLength));
         SerializeField(s, nameof(tesselateMaxLength));
         SerializeField(s, nameof(tesselateMinLength));
         SerializeField(s, nameof(color));
         SerializeField(s, nameof(attachBone));
     }
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RL)
     {
         SerializeField(s, nameof(lumsGiven));
         SerializeField(s, nameof(lumsDrcGiven));
         if (s.HasFlags(SerializeFlags.Persistent))
         {
             SerializeField(s, nameof(breakablePropsState));
             SerializeField(s, nameof(breakablePropsPaint));
         }
     }
     else
     {
         SerializeField(s, nameof(lumsGiven));
         SerializeField(s, nameof(lumsDrcGiven));
         if (s.HasFlags(SerializeFlags.Persistent))
         {
             SerializeField(s, nameof(breakablePropsState));
         }
         SerializeField(s, nameof(breakablePropsPaint));
         SerializeField(s, nameof(breakablePropsPaint));
     }
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RL)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(onHoldEvent));
             SerializeField(s, nameof(onReleaseEvent));
             SerializeField(s, nameof(useTapGauge), type: typeof(byte));
         }
     }
     else if (Settings.s.game == Settings.Game.COL)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(onHoldEvent));
             SerializeField(s, nameof(onReleaseEvent));
             SerializeField(s, nameof(useTapGauge), boolAsByte: true);
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(onHoldEvent));
             SerializeField(s, nameof(onReleaseEvent));
             SerializeField(s, nameof(minTimeBeforeHoldEventSend));
         }
     }
 }
Ejemplo n.º 29
0
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (s.HasFlags(SerializeFlags.Default))
     {
         SerializeField(s, nameof(float__14));
         SerializeField(s, nameof(float__15));
         SerializeField(s, nameof(float__16));
         SerializeField(s, nameof(float__17_2));
         SerializeField(s, nameof(float__18));
         SerializeField(s, nameof(float__19));
         SerializeField(s, nameof(float__20));
         SerializeField(s, nameof(float__21));
         SerializeField(s, nameof(float__22));
         SerializeField(s, nameof(float__23));
         SerializeField(s, nameof(float__24));
         SerializeField(s, nameof(Path__25));
         SerializeField(s, nameof(Path__26));
         SerializeField(s, nameof(float__27));
         SerializeField(s, nameof(bool__28));
         SerializeField(s, nameof(bool__29));
         SerializeField(s, nameof(bool__30));
         SerializeField(s, nameof(bool__31));
         SerializeField(s, nameof(bool__32));
         SerializeField(s, nameof(float__33));
         SerializeField(s, nameof(float__34));
         SerializeField(s, nameof(uint__35));
         SerializeField(s, nameof(float__36));
         SerializeField(s, nameof(Enum_VH_0__37));
         SerializeField(s, nameof(EventSender__38));
         SerializeField(s, nameof(EventSender__39));
         SerializeField(s, nameof(EventSender__40));
         SerializeField(s, nameof(EventSender__41));
         SerializeField(s, nameof(EventSender__42));
         SerializeField(s, nameof(float__43_2));
         SerializeField(s, nameof(float__44_2));
         SerializeField(s, nameof(float__45_2));
         SerializeField(s, nameof(float__46_2));
         SerializeField(s, nameof(float__47));
         SerializeField(s, nameof(float__48));
     }
     if (s.HasFlags(SerializeFlags.Persistent))
     {
         SerializeField(s, nameof(uint__0));
         SerializeField(s, nameof(bool__1));
         SerializeField(s, nameof(Enum_VH_0__2));
         SerializeField(s, nameof(bool__3));
         SerializeField(s, nameof(bool__4));
         SerializeField(s, nameof(bool__5));
         SerializeField(s, nameof(float__6));
         SerializeField(s, nameof(float__7));
         SerializeField(s, nameof(int__8));
         SerializeField(s, nameof(uint__9));
         SerializeField(s, nameof(uint__10));
         SerializeField(s, nameof(uint__11));
         SerializeField(s, nameof(uint__12));
         SerializeField(s, nameof(bool__13));
     }
 }
 protected override void SerializeImpl(CSerializerObject s)
 {
     base.SerializeImpl(s);
     if (Settings.s.game == Settings.Game.RL)
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(tutoType2));
             SerializeField(s, nameof(scale));
             SerializeField(s, nameof(offset));
             SerializeField(s, nameof(offsetUseActorFlip));
             SerializeField(s, nameof(angleOffset));
             SerializeField(s, nameof(holdMinTime));
             SerializeField(s, nameof(pos));
             SerializeField(s, nameof(displayTuto), boolAsByte: true);
             SerializeField(s, nameof(flip), boolAsByte: true);
             SerializeField(s, nameof(isPos2D), boolAsByte: true);
             SerializeField(s, nameof(activateByTrigger));
             SerializeField(s, nameof(cyclePauseDuration));
             SerializeField(s, nameof(cycleDisplayDuration));
             SerializeField(s, nameof(testSceneDepthRef), boolAsByte: true);
             if (!Settings.s.isCatchThemAll)
             {
                 SerializeField(s, nameof(AMActionCountMax));
             }
         }
         if (s.HasFlags(SerializeFlags.Persistent))
         {
             SerializeField(s, nameof(tutoSucceeded));
         }
     }
     else
     {
         if (s.HasFlags(SerializeFlags.Default))
         {
             SerializeField(s, nameof(tutoType));
             SerializeField(s, nameof(scale));
             SerializeField(s, nameof(offset));
             SerializeField(s, nameof(offsetUseActorFlip));
             SerializeField(s, nameof(angleOffset));
             SerializeField(s, nameof(holdMinTime));
             SerializeField(s, nameof(pos));
             SerializeField(s, nameof(displayTuto));
             SerializeField(s, nameof(flip));
             SerializeField(s, nameof(isPos2D));
             SerializeField(s, nameof(activateByTrigger));
             SerializeField(s, nameof(cyclePauseDuration));
             SerializeField(s, nameof(cycleDisplayDuration));
             SerializeField(s, nameof(testSceneDepthRef));
             SerializeField(s, nameof(AMActionCountMax));
         }
         if (s.HasFlags(SerializeFlags.Persistent))
         {
             SerializeField(s, nameof(tutoSucceeded));
         }
     }
 }