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), int damageTyp = 0, VectorOffset othersHpDOffset = default(VectorOffset), int avatarID = 0) { builder.StartObject(8); HPNotify.AddAvatarID(builder, avatarID); HPNotify.AddOthersHpD(builder, othersHpDOffset); HPNotify.AddDamageTyp(builder, damageTyp); HPNotify.AddBossArmor(builder, bossArmorOffset); HPNotify.AddBossHpD(builder, bossHpDOffset); HPNotify.AddPlayerHpD(builder, playerHpD); HPNotify.AddRoomID(builder, roomIDOffset); HPNotify.AddAccountId(builder, accountIdOffset); return(HPNotify.EndHPNotify(builder)); }
public static HPNotify GetRootAsHPNotify(ByteBuffer _bb, HPNotify obj) { return(obj.__init(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }