Пример #1
0
 public static Offset <FfiResponses.StringPackage> CreateStringPackage(FlatBufferBuilder builder,
                                                                       FfiResponses.ResponseKind kind = FfiResponses.ResponseKind.GameStarted,
                                                                       uint ordering             = 0,
                                                                       StringOffset bufferOffset = default(StringOffset))
 {
     builder.StartTable(3);
     StringPackage.AddBuffer(builder, bufferOffset);
     StringPackage.AddOrdering(builder, ordering);
     StringPackage.AddKind(builder, kind);
     return(StringPackage.EndStringPackage(builder));
 }
Пример #2
0
 public static void AddKind(FlatBufferBuilder builder, FfiResponses.ResponseKind kind)
 {
     builder.AddUshort(0, (ushort)kind, 0);
 }
Пример #3
0
 public static Offset <FfiResponses.PosPackage> CreatePosPackage(FlatBufferBuilder builder, FfiResponses.ResponseKind Kind, uint Ordering, uint Id, float X, float Y)
 {
     builder.Prep(4, 20);
     builder.PutFloat(Y);
     builder.PutFloat(X);
     builder.PutUint(Id);
     builder.PutUint(Ordering);
     builder.Pad(2);
     builder.PutUshort((ushort)Kind);
     return(new Offset <FfiResponses.PosPackage>(builder.Offset));
 }
Пример #4
0
 public static Offset <FfiResponses.EmptyPackage> CreateEmptyPackage(FlatBufferBuilder builder, FfiResponses.ResponseKind Kind, uint Ordering)
 {
     builder.Prep(4, 8);
     builder.PutUint(Ordering);
     builder.Pad(2);
     builder.PutUshort((ushort)Kind);
     return(new Offset <FfiResponses.EmptyPackage>(builder.Offset));
 }