public static Offset<skeleton> Createskeleton(FlatBufferBuilder builder, VectorOffset bones = default(VectorOffset)) { builder.StartObject(1); skeleton.AddBones(builder, bones); return skeleton.Endskeleton(builder); }
public static Offset<SyncFrame> CreateSyncFrame(FlatBufferBuilder builder, VectorOffset frames = default(VectorOffset)) { builder.StartObject(1); SyncFrame.AddFrames(builder, frames); return SyncFrame.EndSyncFrame(builder); }
public static Offset<anchorPointsHolder> CreateanchorPointsHolder(FlatBufferBuilder builder, VectorOffset anchorPoints = default(VectorOffset)) { builder.StartObject(1); anchorPointsHolder.AddAnchorPoints(builder, anchorPoints); return anchorPointsHolder.EndanchorPointsHolder(builder); }
public static Offset<animationMeshList> CreateanimationMeshList(FlatBufferBuilder builder, VectorOffset timeSamples = default(VectorOffset)) { builder.StartObject(1); animationMeshList.AddTimeSamples(builder, timeSamples); return animationMeshList.EndanimationMeshList(builder); }
public static Offset<uvSwapItemHolder> CreateuvSwapItemHolder(FlatBufferBuilder builder, VectorOffset meshes = default(VectorOffset)) { builder.StartObject(1); uvSwapItemHolder.AddMeshes(builder, meshes); return uvSwapItemHolder.EnduvSwapItemHolder(builder); }
public static Offset<animation> Createanimation(FlatBufferBuilder builder, VectorOffset clips = default(VectorOffset)) { builder.StartObject(1); animation.AddClips(builder, clips); return animation.Endanimation(builder); }
public static Offset<uvSwapItemMesh> CreateuvSwapItemMesh(FlatBufferBuilder builder, StringOffset name = default(StringOffset), VectorOffset items = default(VectorOffset)) { builder.StartObject(2); uvSwapItemMesh.AddItems(builder, items); uvSwapItemMesh.AddName(builder, name); return uvSwapItemMesh.EnduvSwapItemMesh(builder); }
public static Offset<Imoveis> CreateImoveis(FlatBufferBuilder builder, VectorOffset casas = default(VectorOffset), VectorOffset aptos = default(VectorOffset)) { builder.StartObject(2); Imoveis.AddAptos(builder, aptos); Imoveis.AddCasas(builder, casas); return Imoveis.EndImoveis(builder); }
public static Offset<anchorPointData> CreateanchorPointData(FlatBufferBuilder builder, VectorOffset point = default(VectorOffset), StringOffset anim_clip_name = default(StringOffset)) { builder.StartObject(2); anchorPointData.AddAnimClipName(builder, anim_clip_name); anchorPointData.AddPoint(builder, point); return anchorPointData.EndanchorPointData(builder); }
public static Offset<animationUVSwapTimeSample> CreateanimationUVSwapTimeSample(FlatBufferBuilder builder, VectorOffset uvSwaps = default(VectorOffset), int time = 0) { builder.StartObject(2); animationUVSwapTimeSample.AddTime(builder, time); animationUVSwapTimeSample.AddUvSwaps(builder, uvSwaps); return animationUVSwapTimeSample.EndanimationUVSwapTimeSample(builder); }
public static Offset<animationMeshTimeSample> CreateanimationMeshTimeSample(FlatBufferBuilder builder, VectorOffset meshes = default(VectorOffset), int time = 0) { builder.StartObject(2); animationMeshTimeSample.AddTime(builder, time); animationMeshTimeSample.AddMeshes(builder, meshes); return animationMeshTimeSample.EndanimationMeshTimeSample(builder); }
public static Offset<CommandFrame> CreateCommandFrame(FlatBufferBuilder builder, uint ticks = 0, VectorOffset commands = default(VectorOffset)) { builder.StartObject(2); CommandFrame.AddCommands(builder, commands); CommandFrame.AddTicks(builder, ticks); return CommandFrame.EndCommandFrame(builder); }
public static Offset<SynchronizeSceneData> CreateSynchronizeSceneData(FlatBufferBuilder builder, int startTime = 0, int endTime = 0, VectorOffset actors = default(VectorOffset)) { builder.StartObject(3); SynchronizeSceneData.AddActors(builder, actors); SynchronizeSceneData.AddEndTime(builder, endTime); SynchronizeSceneData.AddStartTime(builder, startTime); return SynchronizeSceneData.EndSynchronizeSceneData(builder); }
public static Offset<animationBone> CreateanimationBone(FlatBufferBuilder builder, StringOffset name = default(StringOffset), VectorOffset start_pt = default(VectorOffset), VectorOffset end_pt = default(VectorOffset)) { builder.StartObject(3); animationBone.AddEndPt(builder, end_pt); animationBone.AddStartPt(builder, start_pt); animationBone.AddName(builder, name); return animationBone.EndanimationBone(builder); }
public static Offset<VariableData> CreateVariableData(FlatBufferBuilder builder, int id = 0, Offset<VariableParameters> parameters = default(Offset<VariableParameters>), VectorOffset keyFrames = default(VectorOffset)) { builder.StartObject(3); VariableData.AddKeyFrames(builder, keyFrames); VariableData.AddParameters(builder, parameters); VariableData.AddId(builder, id); return VariableData.EndVariableData(builder); }
public static Offset<ActorData> CreateActorData(FlatBufferBuilder builder, int id = 0, VectorOffset events = default(VectorOffset), VectorOffset variables = default(VectorOffset)) { builder.StartObject(3); ActorData.AddVariables(builder, variables); ActorData.AddEvents(builder, events); ActorData.AddId(builder, id); return ActorData.EndActorData(builder); }
public static Offset<uvSwapItemData> CreateuvSwapItemData(FlatBufferBuilder builder, VectorOffset local_offset = default(VectorOffset), VectorOffset global_offset = default(VectorOffset), VectorOffset scale = default(VectorOffset), int tag = 0) { builder.StartObject(4); uvSwapItemData.AddTag(builder, tag); uvSwapItemData.AddScale(builder, scale); uvSwapItemData.AddGlobalOffset(builder, global_offset); uvSwapItemData.AddLocalOffset(builder, local_offset); return uvSwapItemData.EnduvSwapItemData(builder); }
public static Offset<mesh> Createmesh(FlatBufferBuilder builder, VectorOffset points = default(VectorOffset), VectorOffset uvs = default(VectorOffset), VectorOffset indices = default(VectorOffset), VectorOffset regions = default(VectorOffset)) { builder.StartObject(4); mesh.AddRegions(builder, regions); mesh.AddIndices(builder, indices); mesh.AddUvs(builder, uvs); mesh.AddPoints(builder, points); return mesh.Endmesh(builder); }
public static Offset<animationUVSwap> CreateanimationUVSwap(FlatBufferBuilder builder, StringOffset name = default(StringOffset), VectorOffset local_offset = default(VectorOffset), VectorOffset global_offset = default(VectorOffset), VectorOffset scale = default(VectorOffset), bool enabled = false) { builder.StartObject(5); animationUVSwap.AddScale(builder, scale); animationUVSwap.AddGlobalOffset(builder, global_offset); animationUVSwap.AddLocalOffset(builder, local_offset); animationUVSwap.AddName(builder, name); animationUVSwap.AddEnabled(builder, enabled); return animationUVSwap.EndanimationUVSwap(builder); }
public static Offset<Island> CreateIsland(FlatBufferBuilder builder, StringOffset name = default(StringOffset), StringOffset owner = default(StringOffset), sbyte level = 0, Offset<TimeInterval> production = default(Offset<TimeInterval>), VectorOffset defences = default(VectorOffset)) { builder.StartObject(5); Island.AddDefences(builder, defences); Island.AddProduction(builder, production); Island.AddOwner(builder, owner); Island.AddName(builder, name); Island.AddLevel(builder, level); return Island.EndIsland(builder); }
public static Offset<animationMesh> CreateanimationMesh(FlatBufferBuilder builder, StringOffset name = default(StringOffset), bool use_dq = false, bool use_local_displacements = false, bool use_post_displacements = false, VectorOffset local_displacements = default(VectorOffset), VectorOffset post_displacements = default(VectorOffset)) { builder.StartObject(6); animationMesh.AddPostDisplacements(builder, post_displacements); animationMesh.AddLocalDisplacements(builder, local_displacements); animationMesh.AddName(builder, name); animationMesh.AddUsePostDisplacements(builder, use_post_displacements); animationMesh.AddUseLocalDisplacements(builder, use_local_displacements); animationMesh.AddUseDq(builder, use_dq); return animationMesh.EndanimationMesh(builder); }
public static Offset<Building> CreateBuilding(FlatBufferBuilder builder, StringOffset type = default(StringOffset), sbyte level = 0, Offset<Position> position = default(Offset<Position>), bool paused = false, Offset<TimeInterval> production = default(Offset<TimeInterval>), VectorOffset storage = default(VectorOffset)) { builder.StartObject(6); Building.AddStorage(builder, storage); Building.AddProduction(builder, production); Building.AddPosition(builder, position); Building.AddType(builder, type); Building.AddPaused(builder, paused); Building.AddLevel(builder, level); return Building.EndBuilding(builder); }
public static void AddDvec(FlatBufferBuilder builder, VectorOffset dvecOffset) { builder.AddOffset(8, dvecOffset.Value, 0); }
public static void AddCskillid(FlatBufferBuilder builder, VectorOffset cskillidOffset) { builder.AddOffset(36, cskillidOffset.Value, 0); }
public static void AddTitles(FlatBufferBuilder builder, VectorOffset titlesOffset) { builder.AddOffset(39, titlesOffset.Value, 0); }
public static void AddNodes(FlatBufferBuilder builder, VectorOffset nodesOffset) { builder.AddOffset(2, nodesOffset.Value, 0); }
public static void AddTestnestedflatbuffer(FlatBufferBuilder builder, VectorOffset testnestedflatbufferOffset) { builder.AddOffset(13, testnestedflatbufferOffset.Value, 0); }
public static void AddTestarrayofstring2(FlatBufferBuilder builder, VectorOffset testarrayofstring2Offset) { builder.AddOffset(28, testarrayofstring2Offset.Value, 0); }
public static void AddUnitLevels(FlatBufferBuilder builder, VectorOffset unitLevelsOffset) { builder.AddOffset(1, unitLevelsOffset.Value, 0); }
public static void AddShips(FlatBufferBuilder builder, VectorOffset shipsOffset) { builder.AddOffset(4, shipsOffset.Value, 0); }
public static void AddPlayerResources(FlatBufferBuilder builder, VectorOffset playerResourcesOffset) { builder.AddOffset(8, playerResourcesOffset.Value, 0); }
public static void AddBoxes(FlatBufferBuilder builder, VectorOffset boxesOffset) { builder.AddOffset(1, boxesOffset.Value, 0); }
public static void AddCategories(FlatBufferBuilder builder, VectorOffset categoriesOffset) { builder.AddOffset(0, categoriesOffset.Value, 0); }
public static void AddVariables(FlatBufferBuilder builder, VectorOffset variablesOffset) { builder.AddOffset(1, variablesOffset.Value, 0); }
public static void AddOutputs(FlatBufferBuilder builder, VectorOffset outputsOffset) { builder.AddOffset(3, outputsOffset.Value, 0); }
public static void AddCustomMetadata(FlatBufferBuilder builder, VectorOffset customMetadataOffset) { builder.AddOffset(6, customMetadataOffset.Value, 0); }
public static void AddChildren(FlatBufferBuilder builder, VectorOffset childrenOffset) { builder.AddOffset(5, childrenOffset.Value, 0); }
public static void AddBuildings(FlatBufferBuilder builder, VectorOffset buildingsOffset) { builder.AddOffset(15, buildingsOffset.Value, 0); }
public static void AddTestarrayofbools(FlatBufferBuilder builder, VectorOffset testarrayofboolsOffset) { builder.AddOffset(24, testarrayofboolsOffset.Value, 0); }
public static void AddInventory(FlatBufferBuilder builder, VectorOffset inventoryOffset) { builder.AddOffset(5, inventoryOffset.Value, 0); }
public static void AddTestarrayoftables(FlatBufferBuilder builder, VectorOffset testarrayoftablesOffset) { builder.AddOffset(11, testarrayoftablesOffset.Value, 0); }
public static void AddFvec(FlatBufferBuilder builder, VectorOffset fvecOffset) { builder.AddOffset(9, fvecOffset.Value, 0); }
public static void AddTest4(FlatBufferBuilder builder, VectorOffset test4Offset) { builder.AddOffset(9, test4Offset.Value, 0); }
public static void AddHeroLv(FlatBufferBuilder builder, VectorOffset heroLvOffset) { builder.AddOffset(9, heroLvOffset.Value, 0); }
public override void GenerateByte() { string path = "E:/FantasyPark/src/trunk/Tools_SourceCode/ExcelToFlatBuffer/ExcelToFlatBuffer/ExcelToFlatBuffer/bin/Debug/CompileCShap/Script/AutoGenerate/Bytes/Table_GhostType.bytes"; FlatBufferBuilder fbb = new FlatBufferBuilder(1); Offset <DRGhostType>[] offsets = new Offset <DRGhostType> [40]; offsets[0] = DRGhostType.CreateDRGhostType(fbb, 1, fbb.CreateString("数量"), 0, 14, -1, 1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("2|2|2|2|2|2|2"), fbb.CreateString("1"), fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("-1"), -1); offsets[1] = DRGhostType.CreateDRGhostType(fbb, 2, fbb.CreateString("八关回合"), 1, 8, 8, -1, 1, fbb.CreateString("(7,3,0)"), fbb.CreateString("(0,0,0,0,0,0,1)"), fbb.CreateString("2|1|1|1|1|1|1"), fbb.CreateString("0"), fbb.CreateString("0|1|2|4|8|12|15|20"), fbb.CreateString("1|1|1|1|1|1|1|1"), fbb.CreateString("(0,0,0,0,1,0,0)|(0,0,1,0,0,0,0)|(0,0,0,0,0,1,0)|(1,0,0,0,0,0,0)|(0,1,0,0,0,0,0)|(0,0,0,1,0,0,0)|(0,0,0,0,0,0,1)|(1,0,0,0,0,0,0)"), -1); offsets[2] = DRGhostType.CreateDRGhostType(fbb, 3, fbb.CreateString("九关回合"), 1, -1, 5, -1, 1, fbb.CreateString("(7,2,0)"), fbb.CreateString("(0,0,1,0,0,0,0)"), fbb.CreateString("1|1|1|1|2|1|0"), fbb.CreateString("0"), fbb.CreateString("0|1|3|5|8"), fbb.CreateString("1|1|2|1|1"), fbb.CreateString("(0,0,0,0,1,0,0)|(0,0,0,0,1,0,0)|(0,1,0,1,0,0,0)|(1,0,0,0,0,0,0)|(0,0,0,0,0,1,0)"), -1); offsets[3] = DRGhostType.CreateDRGhostType(fbb, 4, fbb.CreateString("数量"), 0, 12, -1, 3, -1, fbb.CreateString("-1"), fbb.CreateString("(0,0,0,0,3,0,0)"), fbb.CreateString("0|0|0|0|12|0|0"), fbb.CreateString("2"), fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("-1"), 11); offsets[4] = DRGhostType.CreateDRGhostType(fbb, 5, fbb.CreateString("回合,第1章18关"), 1, -1, 2, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|2|0|0|0|0"), fbb.CreateString("0"), fbb.CreateString("2|10"), fbb.CreateString("1|1"), fbb.CreateString("(0,0,1,0,0,0,0)|(0,0,1,0,0,0,0)"), -1); offsets[5] = DRGhostType.CreateDRGhostType(fbb, 6, fbb.CreateString("回合,第1章20关"), 1, -1, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("1|1|0|0|1|1|0"), fbb.CreateString("0"), fbb.CreateString("1|4|8|12"), fbb.CreateString("1|1|1|1"), fbb.CreateString("(1,0,0,0,0,0,0)|(0,1,0,0,0,0,0)|(0,0,0,0,0,1,0)|(0,0,0,0,1,0,0)"), -1); offsets[6] = DRGhostType.CreateDRGhostType(fbb, 7, fbb.CreateString("数量,14关"), 0, 10, -1, 2, -1, fbb.CreateString("-1"), fbb.CreateString("(0,0,0,0,0,0,2)"), fbb.CreateString("0|0|0|0|0|0|10"), fbb.CreateString("3"), fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("-1"), -1); offsets[7] = DRGhostType.CreateDRGhostType(fbb, 8, fbb.CreateString("回合,12关"), 1, -1, 3, -1, -1, fbb.CreateString("-1"), fbb.CreateString("(0,0,0,0,0,0,5)"), fbb.CreateString("0|3|0|0|0|0|0"), fbb.CreateString("0"), fbb.CreateString("2|8|16"), fbb.CreateString("1|1|1"), fbb.CreateString("(0,1,0,0,0,0,0)|(0,1,0,0,0,0,0)|(0,1,0,0,0,0,0)"), -1); offsets[8] = DRGhostType.CreateDRGhostType(fbb, 9, fbb.CreateString("九关二屏"), 1, -1, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("1|0|0|1|0|1|1"), fbb.CreateString("0"), fbb.CreateString("1|4|7|10"), fbb.CreateString("1|1|1|1"), fbb.CreateString("(0,0,0,0,0,0,1)|(1,0,0,0,0,0,0)|(0,0,0,1,0,0,0)|(0,0,0,0,0,1,0)"), -1); offsets[9] = DRGhostType.CreateDRGhostType(fbb, 10, fbb.CreateString("八关二屏"), 0, 10, 0, 2, -1, fbb.CreateString("(7,2,0)|(3,2,0)"), fbb.CreateString("(2,0,0,0,0,0,0)"), fbb.CreateString("10|0|0|0|0|0|0"), fbb.CreateString("4"), fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("-1"), -1); offsets[10] = DRGhostType.CreateDRGhostType(fbb, 11, fbb.CreateString("10关2屏"), 0, 12, -1, 3, 3, fbb.CreateString("(4,0,0)|(8,1,0)|(7,9,0)"), fbb.CreateString("(0,0,0,0,3,0,0)"), fbb.CreateString("0|0|0|0|12|0|0"), fbb.CreateString("2"), fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("-1"), -1); offsets[11] = DRGhostType.CreateDRGhostType(fbb, 12, fbb.CreateString("13关回合"), 1, -1, 2, -1, 2, fbb.CreateString("(3,12,0)|(5,12,0)"), fbb.CreateString("(0,2,0,0,0,0,0)"), fbb.CreateString("0|2|0|0|0|3|0"), fbb.CreateString("5"), fbb.CreateString("0|6"), fbb.CreateString("2|3"), fbb.CreateString("(0,2,0,0,0,0,0)|(0,0,0,0,0,3,0)"), -1); offsets[12] = DRGhostType.CreateDRGhostType(fbb, 181, fbb.CreateString("18关"), 1, -1, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|0|8|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|4|7|10"), fbb.CreateString("2|2|2|2"), fbb.CreateString("(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|"), -1); offsets[13] = DRGhostType.CreateDRGhostType(fbb, 191, fbb.CreateString("19关"), 1, -1, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|0|8|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|4|7|10"), fbb.CreateString("2|2|2|2"), fbb.CreateString("(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|"), -1); offsets[14] = DRGhostType.CreateDRGhostType(fbb, 201, fbb.CreateString("20关"), 1, -1, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|0|8|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|4|7|10"), fbb.CreateString("2|2|2|2"), fbb.CreateString("(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|"), -1); offsets[15] = DRGhostType.CreateDRGhostType(fbb, 251, fbb.CreateString("25关"), 1, -1, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|0|8|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|4|7|10"), fbb.CreateString("2|2|2|2"), fbb.CreateString("(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|"), -1); offsets[16] = DRGhostType.CreateDRGhostType(fbb, 261, fbb.CreateString("26关"), 1, -1, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|0|8|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|4|7|10"), fbb.CreateString("2|2|2|2"), fbb.CreateString("(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|"), -1); offsets[17] = DRGhostType.CreateDRGhostType(fbb, 271, fbb.CreateString("27关"), 1, -1, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|0|8|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|4|7|10"), fbb.CreateString("2|2|2|2"), fbb.CreateString("(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|(0,0,0,2,0,0,0)|"), -1); offsets[18] = DRGhostType.CreateDRGhostType(fbb, 761, fbb.CreateString("76"), 1, 8, 8, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|0|0|8|0|0"), fbb.CreateString("0"), fbb.CreateString("1|6|11|16|21|26|31|36"), fbb.CreateString("1|1|1|1|1|1|1|1"), fbb.CreateString("(0,0,0,0,1,0,0)|(0,0,0,0,1,0,0)|(0,0,0,0,1,0,0)|(0,0,0,0,1,0,0)|(0,0,0,0,1,0,0)|(0,0,0,0,1,0,0)|(0,0,0,0,1,0,0)|(0,0,0,0,1,0,0)"), -1); offsets[19] = DRGhostType.CreateDRGhostType(fbb, 911, fbb.CreateString("91"), 1, 3, 3, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|3|0|0|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|2|4"), fbb.CreateString("1|1|1"), fbb.CreateString("(0,1,0,0,0,0,0)|(0,1,0,0,0,0,0)|(0,1,0,0,0,0,0)"), -1); offsets[20] = DRGhostType.CreateDRGhostType(fbb, 921, fbb.CreateString("92"), 1, 4, 4, -1, 1, fbb.CreateString("(0,0,0)"), fbb.CreateString("(1,0,0,0,0,0,0)"), fbb.CreateString("1|1|1|1|2|1|1"), fbb.CreateString("0"), fbb.CreateString("0|1|2|4"), fbb.CreateString("1|1|1|1"), fbb.CreateString("(1,0,0,0,0,0,0)|(0,0,0,0,1,0,0)|(0,0,1,0,0,0,0)|(0,0,0,0,0,1,0)"), -1); offsets[21] = DRGhostType.CreateDRGhostType(fbb, 931, fbb.CreateString("93"), 1, 6, 6, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("6|0|0|0|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|3|5|7|9|11"), fbb.CreateString("1|1|1|1|1|1"), fbb.CreateString("(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)"), -1); offsets[22] = DRGhostType.CreateDRGhostType(fbb, 941, fbb.CreateString("94"), 1, 5, 5, -1, 1, fbb.CreateString("(4,0,0)"), fbb.CreateString("(0,0,0,1,0,0,0)"), fbb.CreateString("0|0|0|5|0|0|0"), fbb.CreateString("0"), fbb.CreateString("0|1|4|7|10"), fbb.CreateString("1|1|1|1|1"), fbb.CreateString("(0,0,0,1,0,0,0)|(0,0,0,1,0,0,0)|(0,0,0,1,0,0,0)|(0,0,0,1,0,0,0)|(0,0,0,1,0,0,0)"), -1); offsets[23] = DRGhostType.CreateDRGhostType(fbb, 361, fbb.CreateString("36关"), 1, 4, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|1|1|0|1|1"), fbb.CreateString("0"), fbb.CreateString("1|3|5|7"), fbb.CreateString("1|1|1|1"), fbb.CreateString("(0,0,0,0,0,0,1)|(0,0,0,0,0,1,0)|(0,0,0,1,0,0,0)|(0,0,0,1,0,0,0)"), -1); offsets[24] = DRGhostType.CreateDRGhostType(fbb, 371, fbb.CreateString("37关"), 1, 4, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|1|2|1|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|3|5|7"), fbb.CreateString("1|1|1|1"), fbb.CreateString("(0,1,0,0,0,0,0)|(0,0,0,1,0,0,0)|(0,0,1,0,0,0,0)|(0,0,1,0,0,0,0)"), -1); offsets[25] = DRGhostType.CreateDRGhostType(fbb, 951, fbb.CreateString("95"), 0, 2, -1, 2, -1, fbb.CreateString("-1"), fbb.CreateString("(1,0,0,1,0,0,0)"), fbb.CreateString("1|0|0|1|0|0|0"), fbb.CreateString("95"), fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("-1"), -1); offsets[26] = DRGhostType.CreateDRGhostType(fbb, 381, fbb.CreateString("38关"), 1, 10, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|10|0|0|0|0"), fbb.CreateString("0"), fbb.CreateString("10|15|20|25"), fbb.CreateString("1|2|3|4"), fbb.CreateString("(0,0,1,0,0,0,0)|(0,0,2,0,0,0,0)|(0,0,3,0,0,0,0)|(0,0,4,0,0,0,0)"), -1); offsets[27] = DRGhostType.CreateDRGhostType(fbb, 961, fbb.CreateString("96"), 1, 4, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|0|4|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|5|9|13"), fbb.CreateString("1|1|1|1"), fbb.CreateString("(0,0,0,1,0,0,0)|(0,0,0,1,0,0,0)|(0,0,0,1,0,0,0)|(0,0,0,1,0,0,0)"), -1); offsets[28] = DRGhostType.CreateDRGhostType(fbb, 971, fbb.CreateString("97"), 1, 4, 4, -1, 1, fbb.CreateString("(0,1,0)"), fbb.CreateString("(0,0,0,0,0,0,1)"), fbb.CreateString("3|0|0|3|3|0|3"), fbb.CreateString("0"), fbb.CreateString("0|2|4|6"), fbb.CreateString("1|1|1|1"), fbb.CreateString("(0,0,0,0,1,0,0)|(1,0,0,0,0,0,0)|(0,0,0,1,0,0,0)|(0,0,0,0,0,0,1)"), -1); offsets[29] = DRGhostType.CreateDRGhostType(fbb, 391, fbb.CreateString("39关"), 1, 10, 10, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("10|0|0|0|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|3|5|7|9|11|13|15|17|19"), fbb.CreateString("1|1|1|1|1|1|1|1|1|1"), fbb.CreateString("(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)"), -1); offsets[30] = DRGhostType.CreateDRGhostType(fbb, 981, fbb.CreateString("98"), 1, 8, 8, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("8|0|0|0|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|4|7|10|13|16|19|22"), fbb.CreateString("1|1|1|1|1|1|1|1"), fbb.CreateString("(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)"), -1); offsets[31] = DRGhostType.CreateDRGhostType(fbb, 991, fbb.CreateString("99"), 1, 4, 4, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("4|0|0|0|0|0|0"), fbb.CreateString("0"), fbb.CreateString("1|4|7|10"), fbb.CreateString("1|1|1|1"), fbb.CreateString("(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)|(1,0,0,0,0,0,0)"), -1); offsets[32] = DRGhostType.CreateDRGhostType(fbb, 1001, fbb.CreateString("100"), 1, 5, 5, -1, 1, fbb.CreateString("(8,2,0)"), fbb.CreateString("(0,1,0,0,0,0,0)"), fbb.CreateString("0|5|0|0|0|0|0"), fbb.CreateString("0"), fbb.CreateString("0|2|4|6|8"), fbb.CreateString("1|1|1|1|1"), fbb.CreateString("(0,1,0,0,0,0,0)|(0,1,0,0,0,0,0)|(0,1,0,0,0,0,0)|(0,1,0,0,0,0,0)|(0,1,0,0,0,0,0)"), -1); offsets[33] = DRGhostType.CreateDRGhostType(fbb, 401, fbb.CreateString("40关"), 1, 14, 14, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|0|0|0|0|14"), fbb.CreateString("0"), fbb.CreateString("1|3|5|7|9|11|13|15|17|19|21|23|25|27"), fbb.CreateString("1|1|1|1|1|1|1|1|1|1|1|1|1|1"), fbb.CreateString("(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)"), 402); offsets[34] = DRGhostType.CreateDRGhostType(fbb, 402, fbb.CreateString("40关"), 1, 14, 14, -1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|0|0|0|0|14"), fbb.CreateString("0"), fbb.CreateString("1|3|5|7|9|11|13|15|17|19|21|23|25|27"), fbb.CreateString("1|1|1|1|1|1|1|1|1|1|1|1|1|1"), fbb.CreateString("(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)|(0,0,0,0,0,0,1)"), -1); offsets[35] = DRGhostType.CreateDRGhostType(fbb, 100120, fbb.CreateString("12关数量"), 0, 4, -1, 1, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|0|0|0|4|0"), fbb.CreateString("100120"), fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("-1"), -1); offsets[36] = DRGhostType.CreateDRGhostType(fbb, 100131, fbb.CreateString("13关第1屏回合"), 1, 2, 2, -1, 1, fbb.CreateString("(3,3,0)"), fbb.CreateString("(0,0,0,1,0,0,0)"), fbb.CreateString("0|0|0|2|0|0|0"), fbb.CreateString("100131"), fbb.CreateString("0|3"), fbb.CreateString("1|1"), fbb.CreateString("(0,0,0,1,0,0,0)|(0,0,0,0,1,0,0)|"), 100132); offsets[37] = DRGhostType.CreateDRGhostType(fbb, 100132, fbb.CreateString("13关第2屏回合"), 1, -1, 3, -1, 1, fbb.CreateString("(5,2,0)"), fbb.CreateString("(0,1,0,0,0,0,0)"), fbb.CreateString("0|1|0|0|2|0|0"), fbb.CreateString("100132"), fbb.CreateString("0|3|6"), fbb.CreateString("1|1|1"), fbb.CreateString("(0,1,0,0,0,0,0)|(0,0,0,0,1,0,0)|(0,0,0,0,1,0,0)|"), -1); offsets[38] = DRGhostType.CreateDRGhostType(fbb, 100140, fbb.CreateString("14关回合"), 1, -1, 4, -1, 1, fbb.CreateString("(2,2,0)"), fbb.CreateString("(0,0,0,1,0,0,0)"), fbb.CreateString("0|0|0|2|0|4|0"), fbb.CreateString("100140"), fbb.CreateString("0|3|6|9"), fbb.CreateString("1|1|2|2"), fbb.CreateString("(0,0,0,1,0,0,0)|(0,0,0,1,0,0,0)|(0,0,0,1,0,0,0)|(0,0,0,1,0,0,0)|"), -1); offsets[39] = DRGhostType.CreateDRGhostType(fbb, 100150, fbb.CreateString("15关数量"), 0, 6, -1, 2, -1, fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("0|0|0|0|4|0|2"), fbb.CreateString("100150"), fbb.CreateString("-1"), fbb.CreateString("-1"), fbb.CreateString("-1"), -1); VectorOffset dataOff = Table_GhostType.CreateDataVector(fbb, offsets); var configOff = Table_GhostType.CreateTable_GhostType(fbb, dataOff); Table_GhostType.FinishTable_GhostTypeBuffer(fbb, configOff); using (var ms = new MemoryStream(fbb.DataBuffer.ToFullArray(), fbb.DataBuffer.Position, fbb.Offset)) { try { var data = ms.ToArray(); File.WriteAllBytes(path, data); Console.WriteLine("已生成:" + path.ToString()); } catch (Exception error) { Console.WriteLine(error.ToString()); } } }
public static void AddAvatarlockeds(FlatBufferBuilder builder, VectorOffset avatarlockedsOffset) { builder.AddOffset(12, avatarlockedsOffset.Value, 0); }
public static void AddTskillid(FlatBufferBuilder builder, VectorOffset tskillidOffset) { builder.AddOffset(37, tskillidOffset.Value, 0); }
public static void AddEquipUpgrade(FlatBufferBuilder builder, VectorOffset equipUpgradeOffset) { builder.AddOffset(17, equipUpgradeOffset.Value, 0); }
public static void AddPskillid(FlatBufferBuilder builder, VectorOffset pskillidOffset) { builder.AddOffset(35, pskillidOffset.Value, 0); }
public static void AddEquipStar(FlatBufferBuilder builder, VectorOffset equipStarOffset) { builder.AddOffset(18, equipStarOffset.Value, 0); }
public static void AddArray(FlatBufferBuilder builder, VectorOffset arrayOffset) { builder.AddOffset(0, arrayOffset.Value, 0); }
public static void AddData(FlatBufferBuilder builder, VectorOffset dataOffset) { builder.AddOffset(0, dataOffset.Value, 0); }
public static void AddSectors(FlatBufferBuilder builder, VectorOffset sectorsOffset) { builder.AddOffset(5, sectorsOffset.Value, 0); }
public static void AddItems(FlatBufferBuilder builder, VectorOffset itemsOffset) { builder.AddOffset(1, itemsOffset.Value, 0); }
public static void AddTechnologies(FlatBufferBuilder builder, VectorOffset technologiesOffset) { builder.AddOffset(3, technologiesOffset.Value, 0); }
public static Offset <AccountInfo> CreateAccountInfo(FlatBufferBuilder builder, int idx = 0, StringOffset accountIdOffset = default(StringOffset), int avatarId = 0, uint corpLv = 0, uint corpXp = 0, VectorOffset arousalsOffset = default(VectorOffset), VectorOffset skillsOffset = default(VectorOffset), VectorOffset skillpsOffset = default(VectorOffset), VectorOffset heroStarOffset = default(VectorOffset), VectorOffset heroLvOffset = default(VectorOffset), StringOffset nameOffset = default(StringOffset), uint vip = 0, VectorOffset avatarlockedsOffset = default(VectorOffset), int gs = 0, long pvpScore = 0, int pvpRank = 0, VectorOffset equipsOffset = default(VectorOffset), VectorOffset equipUpgradeOffset = default(VectorOffset), VectorOffset equipStarOffset = default(VectorOffset), VectorOffset avatarEquipsOffset = default(VectorOffset), VectorOffset allFashionsOffset = default(VectorOffset), VectorOffset generalsOffset = default(VectorOffset), VectorOffset genstarOffset = default(VectorOffset), VectorOffset genrelsOffset = default(VectorOffset), VectorOffset genrellvOffset = default(VectorOffset), VectorOffset avatarJadeOffset = default(VectorOffset), VectorOffset destGeneralJadeOffset = default(VectorOffset), int dg = 0, int dglv = 0, VectorOffset dgssOffset = default(VectorOffset), StringOffset guuidOffset = default(StringOffset), StringOffset gnameOffset = default(StringOffset), int gpos = 0, StringOffset postOffset = default(StringOffset), long postt = 0, VectorOffset pskillidOffset = default(VectorOffset), VectorOffset cskillidOffset = default(VectorOffset), VectorOffset tskillidOffset = default(VectorOffset), StringOffset titleOffset = default(StringOffset), VectorOffset titlesOffset = default(VectorOffset), Offset <Attr> heroAttrOffset = default(Offset <Attr>), int heroSwing = 0, uint magicPetfigure = 0) { builder.StartObject(43); AccountInfo.AddPostt(builder, postt); AccountInfo.AddPvpScore(builder, pvpScore); AccountInfo.AddMagicPetfigure(builder, magicPetfigure); AccountInfo.AddHeroSwing(builder, heroSwing); AccountInfo.AddHeroAttr(builder, heroAttrOffset); AccountInfo.AddTitles(builder, titlesOffset); AccountInfo.AddTitle(builder, titleOffset); AccountInfo.AddTskillid(builder, tskillidOffset); AccountInfo.AddCskillid(builder, cskillidOffset); AccountInfo.AddPskillid(builder, pskillidOffset); AccountInfo.AddPost(builder, postOffset); AccountInfo.AddGpos(builder, gpos); AccountInfo.AddGname(builder, gnameOffset); AccountInfo.AddGuuid(builder, guuidOffset); AccountInfo.AddDgss(builder, dgssOffset); AccountInfo.AddDglv(builder, dglv); AccountInfo.AddDg(builder, dg); AccountInfo.AddDestGeneralJade(builder, destGeneralJadeOffset); AccountInfo.AddAvatarJade(builder, avatarJadeOffset); AccountInfo.AddGenrellv(builder, genrellvOffset); AccountInfo.AddGenrels(builder, genrelsOffset); AccountInfo.AddGenstar(builder, genstarOffset); AccountInfo.AddGenerals(builder, generalsOffset); AccountInfo.AddAllFashions(builder, allFashionsOffset); AccountInfo.AddAvatarEquips(builder, avatarEquipsOffset); AccountInfo.AddEquipStar(builder, equipStarOffset); AccountInfo.AddEquipUpgrade(builder, equipUpgradeOffset); AccountInfo.AddEquips(builder, equipsOffset); AccountInfo.AddPvpRank(builder, pvpRank); AccountInfo.AddGs(builder, gs); AccountInfo.AddAvatarlockeds(builder, avatarlockedsOffset); AccountInfo.AddVip(builder, vip); AccountInfo.AddName(builder, nameOffset); AccountInfo.AddHeroLv(builder, heroLvOffset); AccountInfo.AddHeroStar(builder, heroStarOffset); AccountInfo.AddSkillps(builder, skillpsOffset); AccountInfo.AddSkills(builder, skillsOffset); AccountInfo.AddArousals(builder, arousalsOffset); AccountInfo.AddCorpXp(builder, corpXp); AccountInfo.AddCorpLv(builder, corpLv); AccountInfo.AddAvatarId(builder, avatarId); AccountInfo.AddAccountId(builder, accountIdOffset); AccountInfo.AddIdx(builder, idx); return(AccountInfo.EndAccountInfo(builder)); }
public static Offset<GameData> CreateGameData(FlatBufferBuilder builder, Offset<Workers> workers = default(Offset<Workers>), VectorOffset unitLevels = default(VectorOffset), int trophies = 0, VectorOffset technologies = default(VectorOffset), VectorOffset ships = default(VectorOffset), VectorOffset sectors = default(VectorOffset), VectorOffset currentQuests = default(VectorOffset), VectorOffset completedQuests = default(VectorOffset), VectorOffset playerResources = default(VectorOffset), StringOffset playerName = default(StringOffset), long nextPirateAttack = 0, VectorOffset leftOverResources = default(VectorOffset), VectorOffset islands = default(VectorOffset), sbyte fortressLevel = 0, VectorOffset defences = default(VectorOffset), VectorOffset buildings = default(VectorOffset)) { builder.StartObject(16); GameData.AddNextPirateAttack(builder, nextPirateAttack); GameData.AddBuildings(builder, buildings); GameData.AddDefences(builder, defences); GameData.AddIslands(builder, islands); GameData.AddLeftOverResources(builder, leftOverResources); GameData.AddPlayerName(builder, playerName); GameData.AddPlayerResources(builder, playerResources); GameData.AddCompletedQuests(builder, completedQuests); GameData.AddCurrentQuests(builder, currentQuests); GameData.AddSectors(builder, sectors); GameData.AddShips(builder, ships); GameData.AddTechnologies(builder, technologies); GameData.AddTrophies(builder, trophies); GameData.AddUnitLevels(builder, unitLevels); GameData.AddWorkers(builder, workers); GameData.AddFortressLevel(builder, fortressLevel); return GameData.EndGameData(builder); }
public static void AddArousals(FlatBufferBuilder builder, VectorOffset arousalsOffset) { builder.AddOffset(5, arousalsOffset.Value, 0); }
public static void AddCompletedQuests(FlatBufferBuilder builder, VectorOffset completedQuestsOffset) { builder.AddOffset(7, completedQuestsOffset.Value, 0); }
public static void AddSkillps(FlatBufferBuilder builder, VectorOffset skillpsOffset) { builder.AddOffset(7, skillpsOffset.Value, 0); }