Exemplo n.º 1
0
 public static Offset <AcDataInfo> CreateAcDataInfo(FlatBufferBuilder builder,
                                                    int idx = 0,
                                                    StringOffset idOffset          = default(StringOffset),
                                                    StringOffset characterIDOffset = default(StringOffset),
                                                    StringOffset typOffset         = default(StringOffset),
                                                    StringOffset ididOffset        = default(StringOffset),
                                                    StringOffset nameIDsOffset     = default(StringOffset),
                                                    StringOffset stageIDsOffset    = default(StringOffset),
                                                    StringOffset factionOffset     = default(StringOffset),
                                                    uint isPlayer             = 0,
                                                    uint speed                = 0,
                                                    uint angleSpeed           = 0,
                                                    uint hitPoint             = 0,
                                                    uint hpSectionNum         = 0,
                                                    uint thresholdMin         = 0,
                                                    uint thresholdMax         = 0,
                                                    uint thresholdRatio       = 0,
                                                    uint guard                = 0,
                                                    float shieldAbsorbRate    = 0.0f,
                                                    uint physicalDamage       = 0,
                                                    uint physicalResist       = 0,
                                                    float critRate            = 0.0f,
                                                    float critDamage          = 0.0f,
                                                    StringOffset equip1Offset = default(StringOffset),
                                                    StringOffset equip2Offset = default(StringOffset),
                                                    StringOffset auraOffset   = default(StringOffset),
                                                    uint cantbeBlackHole      = 0,
                                                    uint cantbeSpecialHit     = 0)
 {
     builder.StartObject(27);
     AcDataInfo.AddCantbeSpecialHit(builder, cantbeSpecialHit);
     AcDataInfo.AddCantbeBlackHole(builder, cantbeBlackHole);
     AcDataInfo.AddAura(builder, auraOffset);
     AcDataInfo.AddEquip2(builder, equip2Offset);
     AcDataInfo.AddEquip1(builder, equip1Offset);
     AcDataInfo.AddCritDamage(builder, critDamage);
     AcDataInfo.AddCritRate(builder, critRate);
     AcDataInfo.AddPhysicalResist(builder, physicalResist);
     AcDataInfo.AddPhysicalDamage(builder, physicalDamage);
     AcDataInfo.AddShieldAbsorbRate(builder, shieldAbsorbRate);
     AcDataInfo.AddGuard(builder, guard);
     AcDataInfo.AddThresholdRatio(builder, thresholdRatio);
     AcDataInfo.AddThresholdMax(builder, thresholdMax);
     AcDataInfo.AddThresholdMin(builder, thresholdMin);
     AcDataInfo.AddHpSectionNum(builder, hpSectionNum);
     AcDataInfo.AddHitPoint(builder, hitPoint);
     AcDataInfo.AddAngleSpeed(builder, angleSpeed);
     AcDataInfo.AddSpeed(builder, speed);
     AcDataInfo.AddIsPlayer(builder, isPlayer);
     AcDataInfo.AddFaction(builder, factionOffset);
     AcDataInfo.AddStageIDs(builder, stageIDsOffset);
     AcDataInfo.AddNameIDs(builder, nameIDsOffset);
     AcDataInfo.AddIdid(builder, ididOffset);
     AcDataInfo.AddTyp(builder, typOffset);
     AcDataInfo.AddCharacterID(builder, characterIDOffset);
     AcDataInfo.AddId(builder, idOffset);
     AcDataInfo.AddIdx(builder, idx);
     return(AcDataInfo.EndAcDataInfo(builder));
 }
Exemplo n.º 2
0
 public static AcDataInfo GetRootAsAcDataInfo(ByteBuffer _bb, AcDataInfo obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }