예제 #1
0
 public static Offset <FBVector2> CreateFBVector2(FlatBufferBuilder builder,
                                                  float x = 0.0f,
                                                  float y = 0.0f)
 {
     builder.StartObject(2);
     FBVector2.AddY(builder, y);
     FBVector2.AddX(builder, x);
     return(FBVector2.EndFBVector2(builder));
 }
예제 #2
0
 public static FBVector2 GetRootAsFBVector2(ByteBuffer _bb, FBVector2 obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }