[C#] Prepares for official Nuget release (#7496)

* Define nuget package

* C# Switch to Google.FlatBuffers namespace

* Add Source Link for nuget package

* Add Strong Name signing of Google.FlatBuffers
This commit is contained in:
Derek Bailey
2022-09-01 10:17:34 -07:00
committed by GitHub
parent 5634dc3d0d
commit c5a609dc20
68 changed files with 116 additions and 143 deletions

View File

@@ -51,7 +51,7 @@ using System.Buffers.Binary;
#warning ENABLE_SPAN_T requires UNSAFE_BYTEBUFFER to also be defined
#endif
namespace FlatBuffers
namespace Google.FlatBuffers
{
public abstract class ByteBufferAllocator
{

View File

@@ -16,7 +16,7 @@
using System;
namespace FlatBuffers
namespace Google.FlatBuffers
{
/// <summary>
/// Class that collects utility functions around `ByteBuffer`.

View File

@@ -23,7 +23,7 @@ using System.Text;
/// @addtogroup flatbuffers_csharp_api
/// @{
namespace FlatBuffers
namespace Google.FlatBuffers
{
/// <summary>
/// Responsible for building up and accessing a FlatBuffer formatted byte

View File

@@ -19,7 +19,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FlatBuffers
namespace Google.FlatBuffers
{
public static class FlatBufferConstants
{

View File

@@ -1,23 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TargetFrameworks>netstandard2.1;netstandard2.0;net46</TargetFrameworks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
</PropertyGroup>
<PropertyGroup Condition="'$(UNSAFE_BYTEBUFFER)' == 'true'">
<DefineConstants>$(DefineConstants);UNSAFE_BYTEBUFFER</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition="'$(BYTEBUFFER_NO_BOUNDS_CHECK)' == 'true'">
<DefineConstants>$(DefineConstants);BYTEBUFFER_NO_BOUNDS_CHECK</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(ENABLE_SPAN_T)' == 'true'">
<DefineConstants>$(DefineConstants);ENABLE_SPAN_T</DefineConstants>
</PropertyGroup>
<ItemGroup Condition="('$(ENABLE_SPAN_T)' == 'true') And (('$(TargetFramework)' == 'netstandard2.0') Or ('$(TargetFramework)' == 'net46'))">
<PackageReference Include="System.Memory" Version="4.5.4" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,46 @@
<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<TargetFrameworks>netstandard2.1;netstandard2.0;net46</TargetFrameworks>
<Description>A cross-platform memory efficient serialization library</Description>
<PackageVersion>2.0.8-beta.1</PackageVersion>
<Authors>Google LLC</Authors>
<PackageProjectUrl>https://github.com/google/flatbuffers</PackageProjectUrl>
<RepositoryUrl>https://github.com/google/flatbuffers</RepositoryUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<PackageIcon>flatbuffers.png</PackageIcon>
<PackageTags>Google;FlatBuffers;Serialization;Buffer;Binary;zero copy</PackageTags>
<Copyright>Copyright 2022 Google LLC</Copyright>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>flatbuffers.snk</AssemblyOriginatorKeyFile>
<DelaySign>false</DelaySign>
</PropertyGroup>
<PropertyGroup Condition="'$(UNSAFE_BYTEBUFFER)' == 'true'">
<DefineConstants>$(DefineConstants);UNSAFE_BYTEBUFFER</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition="'$(BYTEBUFFER_NO_BOUNDS_CHECK)' == 'true'">
<DefineConstants>$(DefineConstants);BYTEBUFFER_NO_BOUNDS_CHECK</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(ENABLE_SPAN_T)' == 'true'">
<DefineConstants>$(DefineConstants);ENABLE_SPAN_T</DefineConstants>
</PropertyGroup>
<ItemGroup Condition="('$(ENABLE_SPAN_T)' == 'true') And (('$(TargetFramework)' == 'netstandard2.0') Or ('$(TargetFramework)' == 'net46'))">
<PackageReference Include="System.Memory" Version="4.5.4" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="" />
<None Include="flatbuffers.png" Pack="true" PackagePath="" />
</ItemGroup>
</Project>

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
namespace FlatBuffers
namespace Google.FlatBuffers
{
/// <summary>
/// This is the base for both structs and tables.

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
namespace FlatBuffers
namespace Google.FlatBuffers
{
/// <summary>
/// Offset class for typesafe assignments.

View File

@@ -1,52 +0,0 @@
/*
* Copyright 2014 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("FlatBuffers")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FlatBuffers")]
[assembly: AssemblyCopyright("Copyright (c) 2015 Google Inc")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("91c32e64-ef20-47df-9c9f-cec9207bc6df")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
namespace FlatBuffers
namespace Google.FlatBuffers
{
/// <summary>
/// All structs in the generated code derive from this class, and add their own accessors.

View File

@@ -18,7 +18,7 @@ using System;
using System.Text;
using System.Runtime.InteropServices;
namespace FlatBuffers
namespace Google.FlatBuffers
{
/// <summary>
/// All tables in the generated code derive from this struct, and add their own accessors.

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

View File

@@ -226,7 +226,7 @@ flatc(
# For Rust we currently generate two independent schemas, with namespace_test2
# duplicating the types in namespace_test1
flatc(
RUST_OPTS,
RUST_OPTS + CS_OPTS,
prefix="namespace_test",
schema=[
"namespace_test/namespace_test1.fbs",

View File

@@ -226,7 +226,7 @@ class CSharpGenerator : public BaseGenerator {
if (needs_includes) {
code += "using global::System;\n";
code += "using global::System.Collections.Generic;\n";
code += "using global::FlatBuffers;\n\n";
code += "using global::Google.FlatBuffers;\n\n";
}
code += classcode;
if (!namespace_name.empty()) { code += "\n}\n"; }
@@ -1307,9 +1307,9 @@ class CSharpGenerator : public BaseGenerator {
code += "Offset<" + struct_def.name + ">";
code += "[] offsets) {\n";
code += " Array.Sort(offsets,\n";
code += " (Offset<" + struct_def.name +
"> o1, Offset<" + struct_def.name + "> o2) =>\n";
code += " "+ GenKeyGetter(struct_def, key_field);
code += " (Offset<" + struct_def.name + "> o1, Offset<" +
struct_def.name + "> o2) =>\n";
code += " " + GenKeyGetter(struct_def, key_field);
code += ");\n";
code += " return builder.CreateVectorOfTables(offsets);\n }\n";
@@ -1463,8 +1463,10 @@ class CSharpGenerator : public BaseGenerator {
}
code += "\n";
// Pack()
code += " public static int Pack(FlatBuffers.FlatBufferBuilder builder, " +
union_name + " _o) {\n";
code +=
" public static int Pack(Google.FlatBuffers.FlatBufferBuilder "
"builder, " +
union_name + " _o) {\n";
code += " switch (_o.Type) {\n";
for (auto it = enum_def.Vals().begin(); it != enum_def.Vals().end(); ++it) {
auto &ev = **it;

View File

@@ -17,7 +17,7 @@
using BenchmarkDotNet.Attributes;
using MyGame.Example;
namespace FlatBuffers.Benchmarks
namespace Google.FlatBuffers.Benchmarks
{
//[EtwProfiler] - needs elevated privileges
[MemoryDiagnoser]

View File

@@ -16,7 +16,7 @@
using BenchmarkDotNet.Running;
namespace FlatBuffers.Benchmarks
namespace Google.FlatBuffers.Benchmarks
{
public static class Program
{

View File

@@ -19,7 +19,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FlatBuffers.Test
namespace Google.FlatBuffers.Test
{
public class AssertFailedException : Exception

View File

@@ -17,7 +17,7 @@
using System;
using System.Runtime.InteropServices;
namespace FlatBuffers.Test
namespace Google.FlatBuffers.Test
{
[FlatBuffersTestClass]
public class ByteBufferTests

View File

@@ -16,7 +16,7 @@
using System;
namespace FlatBuffers.Test
namespace Google.FlatBuffers.Test
{
[FlatBuffersTestClass]
public class FlatBufferBuilderTests

View File

@@ -21,7 +21,7 @@ using MyGame.Example;
using optional_scalars;
using KeywordTest;
namespace FlatBuffers.Test
namespace Google.FlatBuffers.Test
{
[FlatBuffersTestClass]
public class FlatBuffersExampleTests

View File

@@ -16,7 +16,7 @@
using System;
namespace FlatBuffers.Test
namespace Google.FlatBuffers.Test
{
[FlatBuffersTestClass]
public class FlatBuffersFuzzTests

View File

@@ -19,7 +19,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FlatBuffers.Test
namespace Google.FlatBuffers.Test
{
[AttributeUsage(AttributeTargets.Class)]
public class FlatBuffersTestClassAttribute : Attribute

View File

@@ -16,7 +16,7 @@
using System;
namespace FlatBuffers.Test
namespace Google.FlatBuffers.Test
{
[AttributeUsage(AttributeTargets.Method)]
public class FlatBuffersTestMethodAttribute : Attribute

View File

@@ -16,7 +16,7 @@
using System;
namespace FlatBuffers.Test
namespace Google.FlatBuffers.Test
{
internal static class FuzzTestData
{

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
namespace FlatBuffers.Test
namespace Google.FlatBuffers.Test
{
/// <summary>
/// Lcg Pseudo RNG

View File

@@ -19,7 +19,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Reflection;
namespace FlatBuffers.Test
namespace Google.FlatBuffers.Test
{
static class Program
{

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
namespace FlatBuffers.Test
namespace Google.FlatBuffers.Test
{
/// <summary>
/// A test Table object that gives easy access to the slot data

View File

@@ -7,7 +7,7 @@ namespace KeywordTest
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct KeywordsInTable : IFlatbufferObject
{

View File

@@ -28,7 +28,7 @@ public class KeywordsInUnionUnion {
public KeywordTest.KeywordsInTableT Asinternal() { return this.As<KeywordTest.KeywordsInTableT>(); }
public static KeywordsInUnionUnion Frominternal(KeywordTest.KeywordsInTableT _internal) { return new KeywordsInUnionUnion{ Type = KeywordsInUnion.@internal, Value = _internal }; }
public static int Pack(FlatBuffers.FlatBufferBuilder builder, KeywordsInUnionUnion _o) {
public static int Pack(Google.FlatBuffers.FlatBufferBuilder builder, KeywordsInUnionUnion _o) {
switch (_o.Type) {
default: return 0;
case KeywordsInUnion.@static: return KeywordTest.KeywordsInTable.Pack(builder, _o.Asstatic()).Value;

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct Ability : IFlatbufferObject
{

View File

@@ -31,7 +31,7 @@ public class AnyUnion {
public MyGame.Example2.MonsterT AsMyGame_Example2_Monster() { return this.As<MyGame.Example2.MonsterT>(); }
public static AnyUnion FromMyGame_Example2_Monster(MyGame.Example2.MonsterT _mygame_example2_monster) { return new AnyUnion{ Type = Any.MyGame_Example2_Monster, Value = _mygame_example2_monster }; }
public static int Pack(FlatBuffers.FlatBufferBuilder builder, AnyUnion _o) {
public static int Pack(Google.FlatBuffers.FlatBufferBuilder builder, AnyUnion _o) {
switch (_o.Type) {
default: return 0;
case Any.Monster: return MyGame.Example.Monster.Pack(builder, _o.AsMonster()).Value;

View File

@@ -31,7 +31,7 @@ public class AnyAmbiguousAliasesUnion {
public MyGame.Example.MonsterT AsM3() { return this.As<MyGame.Example.MonsterT>(); }
public static AnyAmbiguousAliasesUnion FromM3(MyGame.Example.MonsterT _m3) { return new AnyAmbiguousAliasesUnion{ Type = AnyAmbiguousAliases.M3, Value = _m3 }; }
public static int Pack(FlatBuffers.FlatBufferBuilder builder, AnyAmbiguousAliasesUnion _o) {
public static int Pack(Google.FlatBuffers.FlatBufferBuilder builder, AnyAmbiguousAliasesUnion _o) {
switch (_o.Type) {
default: return 0;
case AnyAmbiguousAliases.M1: return MyGame.Example.Monster.Pack(builder, _o.AsM1()).Value;

View File

@@ -31,7 +31,7 @@ public class AnyUniqueAliasesUnion {
public MyGame.Example2.MonsterT AsM2() { return this.As<MyGame.Example2.MonsterT>(); }
public static AnyUniqueAliasesUnion FromM2(MyGame.Example2.MonsterT _m2) { return new AnyUniqueAliasesUnion{ Type = AnyUniqueAliases.M2, Value = _m2 }; }
public static int Pack(FlatBuffers.FlatBufferBuilder builder, AnyUniqueAliasesUnion _o) {
public static int Pack(Google.FlatBuffers.FlatBufferBuilder builder, AnyUniqueAliasesUnion _o) {
switch (_o.Type) {
default: return 0;
case AnyUniqueAliases.M: return MyGame.Example.Monster.Pack(builder, _o.AsM()).Value;

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct ArrayStruct : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct ArrayTable : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
/// an example documentation comment: "monster object"
public struct Monster : IFlatbufferObject

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct NestedStruct : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct Referrable : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct Stat : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct StructOfStructs : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct StructOfStructsOfStructs : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct Test : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
internal partial struct TestSimpleTableWithEnum : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct TypeAliases : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct Vec3 : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame.Example2
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct Monster : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct InParentNamespace : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace MyGame
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct MonsterExtra : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace NamespaceA.NamespaceB
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct StructInNestedNS : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace NamespaceA.NamespaceB
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct TableInNestedNS : IFlatbufferObject
{

View File

@@ -25,7 +25,7 @@ public class UnionInNestedNSUnion {
public NamespaceA.NamespaceB.TableInNestedNST AsTableInNestedNS() { return this.As<NamespaceA.NamespaceB.TableInNestedNST>(); }
public static UnionInNestedNSUnion FromTableInNestedNS(NamespaceA.NamespaceB.TableInNestedNST _tableinnestedns) { return new UnionInNestedNSUnion{ Type = UnionInNestedNS.TableInNestedNS, Value = _tableinnestedns }; }
public static int Pack(FlatBuffers.FlatBufferBuilder builder, UnionInNestedNSUnion _o) {
public static int Pack(Google.FlatBuffers.FlatBufferBuilder builder, UnionInNestedNSUnion _o) {
switch (_o.Type) {
default: return 0;
case UnionInNestedNS.TableInNestedNS: return NamespaceA.NamespaceB.TableInNestedNS.Pack(builder, _o.AsTableInNestedNS()).Value;

View File

@@ -7,7 +7,7 @@ namespace NamespaceA
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct SecondTableInA : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace NamespaceA
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct TableInFirstNS : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace NamespaceC
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct TableInC : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace NamespaceB
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public enum Color : sbyte

View File

@@ -7,7 +7,7 @@ namespace NamespaceA.NamespaceB
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public enum Color : sbyte

View File

@@ -7,7 +7,7 @@ namespace NamespaceA.NamespaceB
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct ColorTestTable : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace optional_scalars
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct ScalarStuff : IFlatbufferObject
{

View File

@@ -7,7 +7,7 @@ namespace type_field_collsion
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct Collision : IFlatbufferObject
{

View File

@@ -4,7 +4,7 @@
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct Attacker : IFlatbufferObject
{

View File

@@ -4,7 +4,7 @@
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct BookReader : IFlatbufferObject
{

View File

@@ -37,7 +37,7 @@ public class CharacterUnion {
public string AsUnused() { return this.As<string>(); }
public static CharacterUnion FromUnused(string _unused) { return new CharacterUnion{ Type = Character.Unused, Value = _unused }; }
public static int Pack(FlatBuffers.FlatBufferBuilder builder, CharacterUnion _o) {
public static int Pack(Google.FlatBuffers.FlatBufferBuilder builder, CharacterUnion _o) {
switch (_o.Type) {
default: return 0;
case Character.MuLan: return Attacker.Pack(builder, _o.AsMuLan()).Value;

View File

@@ -4,7 +4,7 @@
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct FallingTub : IFlatbufferObject
{

View File

@@ -25,7 +25,7 @@ public class GadgetUnion {
public HandFanT AsHandFan() { return this.As<HandFanT>(); }
public static GadgetUnion FromHandFan(HandFanT _handfan) { return new GadgetUnion{ Type = Gadget.HandFan, Value = _handfan }; }
public static int Pack(FlatBuffers.FlatBufferBuilder builder, GadgetUnion _o) {
public static int Pack(Google.FlatBuffers.FlatBufferBuilder builder, GadgetUnion _o) {
switch (_o.Type) {
default: return 0;
case Gadget.FallingTub: return FallingTub.Pack(builder, _o.AsFallingTub()).Value;

View File

@@ -4,7 +4,7 @@
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct HandFan : IFlatbufferObject
{

View File

@@ -4,7 +4,7 @@
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct Movie : IFlatbufferObject
{

View File

@@ -4,7 +4,7 @@
using global::System;
using global::System.Collections.Generic;
using global::FlatBuffers;
using global::Google.FlatBuffers;
public struct Rapunzel : IFlatbufferObject
{