अर्थ#
purposelookup: X4 एट्रिब्यूट का स्कीमा प्रकार: आधार प्रकार, सीमाएँ और संभावित मान।
XSD प्रकार XML पर सीमाएँ लगाता है; यह Lua का वापसी मान या event.param के डेटा का प्रकार घोषित नहीं करता। स्कीमा के अनुसार सही मान गेम में प्रभाव होने का प्रमाण नहीं है।
स्कीमा की संरचना#
libraries/common.xsd
| प्रॉपर्टी | मान |
|---|---|
| प्रकार की संरचना | union |
| यूनियन के सदस्य | expression |
अतिरिक्त इनलाइन यूनियन शाखाः
| प्रॉपर्टी | मान |
|---|---|
| प्रकार की संरचना | restriction |
| आधार प्रकार | xs:string |
| सीमा | मान |
|---|---|
enumeration |
purpose.trade |
enumeration |
purpose.fight |
enumeration |
purpose.build |
enumeration |
purpose.mine |
enumeration |
purpose.auxiliary |
enumeration |
purpose.hack |
enumeration |
purpose.scan |
enumeration |
purpose.production |
enumeration |
purpose.storage |
enumeration |
purpose.connection |
enumeration |
purpose.habitation |
enumeration |
purpose.defence |
enumeration |
purpose.docking |
enumeration |
purpose.venture |
enumeration |
purpose.welfare |
enumeration |
purpose.processing |
enumeration |
purpose.salvage |
enumeration |
purpose.dismantling |
enumeration |
purpose.rig |
restriction आधार प्रकार को सीमित करता है; union अपनी किसी एक शाखा को स्वीकार करता है; list खाली स्थान से अलग किए गए आइटम बताता है। एक restriction के enumeration मान वैकल्पिक मान होते हैं। pattern में XML Schema के रेगुलर एक्सप्रेशन हैं, Lua पैटर्न या JavaScript RegExp नहीं। आधार प्रकार से मिली सीमाएँ भी लागू रहती हैं।
उदाहरण और परिणाम#
संदर्भ उदाहरणों के लिए नीचे दिए गए विशेषता पृष्ठों का उपयोग करें। एक सामान्य निष्पादित उदाहरण केवल एक प्रकार के नाम से नहीं लिया जाता है।
इनमें उपयोग होता है#
| तत्व | एट्रिब्यूट | स्कीमा |
|---|---|---|
find_cluster |
primarypurpose |
libraries/common.xsd |
find_dockingbay |
primarypurpose |
libraries/common.xsd |
find_object |
primarypurpose |
libraries/common.xsd |
find_object_component |
primarypurpose |
libraries/common.xsd |
find_room |
primarypurpose |
libraries/common.xsd |
find_sector |
primarypurpose |
libraries/common.xsd |
find_sector_in_range |
primarypurpose |
libraries/common.xsd |
find_ship |
primarypurpose |
libraries/common.xsd |
find_ship_by_true_owner |
primarypurpose |
libraries/common.xsd |
find_station |
primarypurpose |
libraries/common.xsd |
find_station_by_true_owner |
primarypurpose |
libraries/common.xsd |
match_content |
primarypurpose |
libraries/common.xsd |