Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| fr:packed_sheets [2017/01/30 10:04] – démarage trad fr osquallo | fr:packed_sheets [2021/12/03 18:19] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 4: | Ligne 4: | ||
| ====== Packed sheet ====== | ====== Packed sheet ====== | ||
| <WRAP info> | <WRAP info> | ||
| - | Je ne sais pas si les infos sont deja sur le wiki (pas sous ce nom en tout cas et rien vu d' | + | Je ne sais pas si les infos sont déjà |
| Et au pire on peux toujours l’enlever si c'est déjà décrit ailleurs. | Et au pire on peux toujours l’enlever si c'est déjà décrit ailleurs. | ||
| Ligne 13: | Ligne 13: | ||
| </ | </ | ||
| + | Un " | ||
| - | A packed sheet is a way of storing multiple Georges sheets in a binary format. What a packed sheet does is load all of the sheets/ | ||
| - | Process of Loading | ||
| - | For packed sheets, you must declare a class that will be used by the form packer: | + | ===== Processus de chargement ===== |
| - | ===== Create a class (or struct) | + | Pour un " |
| + | |||
| + | ==== Créer une class ( ou struct ) qui dis se conformer a l'interface | ||
| <code cpp> | <code cpp> | ||
| Ligne 28: | Ligne 29: | ||
| /** | /** | ||
| - | * \brief | + | * \brief |
| */ | */ | ||
| Ligne 37: | Ligne 38: | ||
| /** | /** | ||
| - | * \brief | + | * \brief |
| */ | */ | ||
| Ligne 46: | Ligne 47: | ||
| /** | /** | ||
| - | * \brief | + | * \brief |
| - | * The coder needs to increment the number each time the packed sheet changes and the serial method | + | * Le codeur dois augmenter ce nombre à chaque fois que le packed sheet change et que la methode de sérialisation |
| + | * est mise à jour pour que le code supprime les vieux Packed sheets. | ||
| * is updated so the code will discard old packed sheets. | * is updated so the code will discard old packed sheets. | ||
| Ligne 54: | Ligne 56: | ||
| * | * | ||
| - | * \return uint This must always return an integer. Unsigned is probably best. | + | * \return uint Cela dois toujours renvoyer un entier. Non-signé " |
| */ | */ | ||
| Ligne 62: | Ligne 64: | ||
| /** | /** | ||
| + | |||
| + | * \brief Ici vous pouvez écrire du code personnalisé pour le moment ou le loader dosi supprime de vieux packed sheets. | ||
| - | | + | * \note Rarement utilisé. |
| - | + | ||
| - | | + | |
| */ | */ | ||
| Ligne 74: | Ligne 76: | ||
| </ | </ | ||
| - | Loader Structure/ | + | === Loader Structure/ |
| - | A good example of a packed | + | * Un bon exemple de " |
| - | | + | * ReadGeorges devrai faire quelques chose comme charger les variables |
| - | | + | * Serial est la sérialisation de base du NeL. C'est pour le moment ou loadForm |
| - | | + | * Removed() est appelé quand le cycle de mise à jour du loader détermine que le fichier qui a crée cet objet particulier n'est plus dans le système. Essentiellement il va juste nettoyer les membre de la class comme le ferai un destructeur. |
| - | getVersion() | + | |
| - | Now that you have your class that conforms to the requirements of the packer | + | Maintenant que vous avez une classe conforme au prérequis des packer |
| - | ===== Declare a container for all the loaded | + | Now that you have your class that conforms to the requirements of the packer and loader you have to create a conteneur for the form loader to populate with sheets. This must always be like a map similar to the one below. |
| + | |||
| + | ===== Déclarer un conteneur pour tous les "sheets" chargés: ===== | ||
| <code cpp> | <code cpp> | ||
| - | Usually | + | Habituellement |
| - | ===== Call the packed sheet loader: | + | |
| + | ==== Appel du "packed sheet loader": ==== | ||
| <code cpp> | <code cpp> | ||
| - | Essentially what loadForm | + | Essentielement ce que loadForm |
| - | Loading | + | |
| + | === Notes sur le chargement === | ||
| The packed sheet form loader requires that the file extension be .packed_sheets - however the logic lets you get away with .packed_sheetsbar for example. As a matter of practice though the packed sheet extension should stay with the standard. | The packed sheet form loader requires that the file extension be .packed_sheets - however the logic lets you get away with .packed_sheetsbar for example. As a matter of practice though the packed sheet extension should stay with the standard. | ||
| Ligne 106: | Ligne 112: | ||
| loadForm is a template function, as seen above it will deduce it's argument from the '' | loadForm is a template function, as seen above it will deduce it's argument from the '' | ||
| - | Summary | + | ===== Résumé |
| As you have defined you own class to hold packed data, and as you declared you own container to hold them (in fact, the container MUST be a std:: | As you have defined you own class to hold packed data, and as you declared you own container to hold them (in fact, the container MUST be a std:: | ||





