Difference between revisions of "TwostateXML"

From Elite Wiki
(XML example AI)
 
m
Line 1: Line 1:
<dict>
 
<key>STATE_1</key>
 
 
<dict>
 
<dict>
<key>ENTER</key>
+
<key>STATE_1</key>
<array>
+
<dict>
<string></string>
+
<key>ENTER</key>
</array>
+
<array>
<key>MESSAGE_A</key>
+
<string></string>
<array>
+
</array>
<string>method1: value</string>
+
<key>MESSAGE_A</key>
<string>method2</string>
+
<array>
<string>method3</string>
+
<string>method1: value</string>
</array>
+
<string>method2</string>
<key>MESSAGE_B</key>
+
<string>method3</string>
<array>
+
</array>
<string>method4</string>
+
<key>MESSAGE_B</key>
<string>setStateTo: STATE_2</string>
+
<array>
<key>EXIT</key>
+
<string>method4</string>
<array>
+
<string>setStateTo: STATE_2</string>
<string></string>
+
<key>EXIT</key>
</array>
+
<array>
<key>UPDATE</key>
+
<string></string>
<array>
+
</array>
<string></string>
+
<key>UPDATE</key>
</array>
+
<array>
  +
<string></string>
  +
</array>
  +
</dict>
  +
<key>STATE_2</key>
  +
<dict>
  +
<key>ENTER</key>
  +
<array>
  +
<string></string>
  +
</array>
  +
<key>MESSAGE_A</key>
  +
<array>
  +
<string>method1: another_value</string>
  +
<string>method5</string>
  +
</array>
  +
<key>MESSAGE_B</key>
  +
<array>
  +
<string>method6</string>
  +
<string>method7</string>
  +
<string>setStateTo: STATE_1</string>
  +
<key>EXIT</key>
  +
<array>
  +
<string></string>
  +
</array>
  +
<key>UPDATE</key>
  +
<array>
  +
<string></string>
  +
</array>
  +
</dict>
 
</dict>
 
</dict>
<key>STATE_2</key>
 
<dict>
 
<key>ENTER</key>
 
<array>
 
<string></string>
 
</array>
 
<key>MESSAGE_A</key>
 
<array>
 
<string>method1: another_value</string>
 
<string>method5</string>
 
</array>
 
<key>MESSAGE_B</key>
 
<array>
 
<string>method6</string>
 
<string>method7</string>
 
<string>setStateTo: STATE_1</string>
 
<key>EXIT</key>
 
<array>
 
<string></string>
 
</array>
 
<key>UPDATE</key>
 
<array>
 
<string></string>
 
</array>
 
</dict>
 
</dict>
 
   
[[Methods for AI]]
 
  +
[[Methods_for_AI]]
 
[[Category:OXP_Howto]]
 
[[Category:OXP_Howto]]

Revision as of 15:58, 23 January 2006

<dict>
 <key>STATE_1</key>
 <dict>
  <key>ENTER</key>
  <array>
   <string></string>
  </array>
  <key>MESSAGE_A</key>
  <array>
   <string>method1: value</string>
   <string>method2</string>
   <string>method3</string>
  </array>
  <key>MESSAGE_B</key>
  <array>
   <string>method4</string>
   <string>setStateTo: STATE_2</string>
  <key>EXIT</key>
  <array>
   <string></string>
  </array>
  <key>UPDATE</key>
  <array>
   <string></string>
  </array>
 </dict>
 <key>STATE_2</key>
 <dict>
  <key>ENTER</key>
  <array>
   <string></string>
  </array>
  <key>MESSAGE_A</key>
  <array>
   <string>method1: another_value</string>
   <string>method5</string>
  </array>
  <key>MESSAGE_B</key>
  <array>
   <string>method6</string>
   <string>method7</string>
   <string>setStateTo: STATE_1</string>
  <key>EXIT</key>
  <array>
   <string></string>
  </array>
  <key>UPDATE</key>
  <array>
   <string></string>
  </array>
 </dict>
</dict>

Methods_for_AI