예제 #1
0
 public static Offset <HPNotify> CreateHPNotify(FlatBufferBuilder builder,
                                                StringOffset accountIdOffset = default(StringOffset),
                                                StringOffset roomIDOffset    = default(StringOffset),
                                                int playerHpD = 0,
                                                VectorOffset bossHpDOffset   = default(VectorOffset),
                                                VectorOffset bossArmorOffset = default(VectorOffset))
 {
     builder.StartObject(5);
     HPNotify.AddBossArmor(builder, bossArmorOffset);
     HPNotify.AddBossHpD(builder, bossHpDOffset);
     HPNotify.AddPlayerHpD(builder, playerHpD);
     HPNotify.AddRoomID(builder, roomIDOffset);
     HPNotify.AddAccountId(builder, accountIdOffset);
     return(HPNotify.EndHPNotify(builder));
 }
예제 #2
0
 public static HPNotify GetRootAsHPNotify(ByteBuffer _bb, HPNotify obj)
 {
     return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }