public bool MutateColor(MyGame.Example.Color color) { int o = __p.__offset(4); if (o != 0) { __p.bb.Put(o + __p.bb_pos, (byte)color); return(true); } else { return(false); } }
public static void AddColor(FlatBufferBuilder builder, MyGame.Example.Color color) { builder.AddByte(0, (byte)color, 2); }
public static Offset <MyGame.Example.TestSimpleTableWithEnum> CreateTestSimpleTableWithEnum(FlatBufferBuilder builder, MyGame.Example.Color color = MyGame.Example.Color.Green) { builder.StartTable(1); TestSimpleTableWithEnum.AddColor(builder, color); return(TestSimpleTableWithEnum.EndTestSimpleTableWithEnum(builder)); }
public TestSimpleTableWithEnumT() { this.Color = MyGame.Example.Color.Green; }
public static Offset <MyGame.Example.Vec3> CreateVec3(FlatBufferBuilder builder, float X, float Y, float Z, double Test1, MyGame.Example.Color Test2, short test3_A, sbyte test3_B) { builder.Prep(8, 32); builder.Pad(2); builder.Prep(2, 4); builder.Pad(1); builder.PutSbyte(test3_B); builder.PutShort(test3_A); builder.Pad(1); builder.PutByte((byte)Test2); builder.PutDouble(Test1); builder.Pad(4); builder.PutFloat(Z); builder.PutFloat(Y); builder.PutFloat(X); return(new Offset <MyGame.Example.Vec3>(builder.Offset)); }
public void MutateTest2(MyGame.Example.Color test2) { __p.bb.Put(__p.bb_pos + 24, (byte)test2); }