MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | AUTO_LOADING: |
| 2 | Rumata 26.08.92 |
| 3 | |
| 4 | DER NEUE AUTOLOAD-MECHANISMUS |
| 5 | |
| 6 | FUNKTIONEN: |
| 7 | void SetProp( P_AUTOLOADOBJ, mixed wert ); |
| 8 | mixed QueryProp( P_AUTOLOADOBJ ); |
| 9 | |
| 10 | ERLAEUTERUNG: |
| 11 | Es gibt jetzt eine Property P_AUTOLOADOBJ, die jedes Objekt |
| 12 | setzen kann. Ist der Wert dieser Property nicht 0, so gilt |
| 13 | das Objekt als Autoloading-Objekt. |
| 14 | WICHTIG: Auch Werte wie "" oder ({ }) sind nicht 0. |
| 15 | |
| 16 | Mit der Funktion QueryProp( P_AUTOLOADOBJ ) kann dieser Wert |
| 17 | abgefragt werden. |
| 18 | |
| 19 | BEMERKUNGEN: |
| 20 | Die Property P_AUTOLOADOBJ sollte nicht mit der |
| 21 | Property P_AUTO_LOAD verwechselt werden. Diese speichert |
| 22 | die Autoload-Informationen im Spieler. |
| 23 | |
| 24 | Die Property P_AUTOLOADOBJ kann selbstverstaendlich auch als |
| 25 | Built-in-Property implementiert werden. |
| 26 | |
| 27 | BEISPIEL: |
| 28 | Ein einfaches Beispiel steht in *** |
| 29 | Ein leistungsfaehiges Beispiel steht in /obj/tools/muschel.c |
| 30 | |
| 31 | SIEHE AUCH: |
| 32 | "doc/MG/properties" |