Skip to content

Commit

Permalink
Merge Allow back maximum state bag data size (mr-562)
Browse files Browse the repository at this point in the history
720b1f3 - tweak(server): allow back maximum state bag data size
  • Loading branch information
prikolium-cfx committed Oct 21, 2024
2 parents 5d79501 + 720b1f3 commit 7b57097
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/components/net-packet/include/StateBag.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace net::packet
class StateBag : public SerializableComponent
{
public:
net::SerializableProperty<std::string_view, net::storage_type::ConstrainedStreamTail<1, 131072>> data;
net::SerializableProperty<std::string_view, net::storage_type::ConstrainedStreamTail<1, 256 * 1024.0>> data;

template <typename T>
bool Process(T& stream)
Expand Down Expand Up @@ -45,8 +45,8 @@ class StateBagV2 : public SerializableComponent
{
public:
net::SerializableProperty<std::string_view, net::storage_type::ConstrainedBytesArray<1, 128>> stateBagName;
net::SerializableProperty<std::string_view, net::storage_type::ConstrainedBytesArray<1, 512>> key;
net::SerializableProperty<std::string_view, net::storage_type::ConstrainedStreamTail<1, 4096>> data;
net::SerializableProperty<std::string_view, net::storage_type::ConstrainedBytesArray<1, 1024>> key;
net::SerializableProperty<std::string_view, net::storage_type::ConstrainedStreamTail<1, 256 * 1024.0>> data;

StateBagV2() = default;

Expand Down

0 comments on commit 7b57097

Please sign in to comment.