Пример #1
0
 public static Offset <ReviveReq> CreateReviveReq(FlatBufferBuilder builder,
                                                  StringOffset accountIdOffset = default(StringOffset),
                                                  int hp  = 0,
                                                  int idx = 0)
 {
     builder.StartObject(3);
     ReviveReq.AddIdx(builder, idx);
     ReviveReq.AddHp(builder, hp);
     ReviveReq.AddAccountId(builder, accountIdOffset);
     return(ReviveReq.EndReviveReq(builder));
 }
Пример #2
0
 public static ReviveReq GetRootAsReviveReq(ByteBuffer _bb, ReviveReq obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }