Похожие чаты

Hi, I have a system that consists of many containers

with dynamically polymorphic objects. Right now every container has two methods: to serialize and deserialize its content. Every object that can be stored in the container has its serialization/deserialization code separated from them already.
I want to unbind these containers from the serialization/deserialization code (so it can be injected, probably?). It's because I don't want to force the users of my lib to be bound to the specific way of serialization I've choosen.
But I don't know where to even start reworking this, and how should it look like ideally. Can you give some advices or maybe you've seen some good implementations of such libraries?
Maybe I'm overcomplicating it also, and I just need to give the users ability to get and set the raw data and do whatever they want with it...

The language of implementation: C++. The system I'm talking about: ECS for a game.

1 ответов

27 просмотров

Lemme get this straight, you've created a system to serialize/deserialize the components and this system has a collection of components and these collections/containers are what which implements how to serialize and deserialize the components it holds. I dunno if it will be effective but you've already given the users freedom to create their own serialize/deserialize system so providing means for people so they can create these containers so they can just use your system would be a start.

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта