2 require_once('welcome_service_itf.php');
5 /////////////////////////////////////////////////////////////////
6 // WARNING : this is a generated file, don't change it !
7 /////////////////////////////////////////////////////////////////
10 $RSMGR_TSessionPartStatus_EnumValues[$arrayCounter++
] = "sps_play_subscribed";
11 $RSMGR_TSessionPartStatus_EnumValues[$arrayCounter++
] = "sps_play_invited";
12 $RSMGR_TSessionPartStatus_EnumValues[$arrayCounter++
] = "sps_edit_invited";
13 $RSMGR_TSessionPartStatus_EnumValues[$arrayCounter++
] = "sps_anim_invited";
14 $RSMGR_TSessionPartStatus_EnumValues[$arrayCounter++
] = "sps_playing";
15 $RSMGR_TSessionPartStatus_EnumValues[$arrayCounter++
] = "sps_editing";
16 $RSMGR_TSessionPartStatus_EnumValues[$arrayCounter++
] = "sps_animating";
17 $RSMGR_TSessionPartStatus_EnumValues[$arrayCounter] = "invalid";
18 $RSMGR_TSessionPartStatus_InvalidValue = $arrayCounter;
20 class RSMGR_TSessionPartStatus
24 function __construct()
26 global $RSMGR_TSessionPartStatus_InvalidValue;
27 $this->Value
= $RSMGR_TSessionPartStatus_InvalidValue;
32 global $RSMGR_TSessionPartStatus_EnumValues;
33 return $RSMGR_TSessionPartStatus_EnumValues[$this->Value
];
36 function fromString($strValue)
38 global $RSMGR_TSessionPartStatus_EnumValues;
39 foreach ($RSMGR_TSessionPartStatus_EnumValues as $k => $v)
48 $this->Value
= $RSMGR_TSessionPartStatus_InvalidValue;
56 function fromInt($intValue)
58 global $RSMGR_TSessionPartStatus_InvalidValue;
59 global $RSMGR_TSessionPartStatus_EnumValues;
60 if (array_key_exists($intValue, $RSMGR_TSessionPartStatus_EnumValues))
61 $this->Value
= $intValue;
63 $this->Value
= $RSMGR_TSessionPartStatus_InvalidValue;
68 /////////////////////////////////////////////////////////////////
69 // WARNING : this is a generated file, don't change it !
70 /////////////////////////////////////////////////////////////////
73 $RSMGR_TSessionType_EnumValues[$arrayCounter++
] = "st_edit";
74 $RSMGR_TSessionType_EnumValues[$arrayCounter++
] = "st_anim";
75 $RSMGR_TSessionType_EnumValues[$arrayCounter++
] = "st_outland";
76 $RSMGR_TSessionType_EnumValues[$arrayCounter++
] = "st_mainland";
77 $RSMGR_TSessionType_EnumValues[$arrayCounter] = "invalid";
78 $RSMGR_TSessionType_InvalidValue = $arrayCounter;
80 class RSMGR_TSessionType
84 function __construct()
86 global $RSMGR_TSessionType_InvalidValue;
87 $this->Value
= $RSMGR_TSessionType_InvalidValue;
92 global $RSMGR_TSessionType_EnumValues;
93 return $RSMGR_TSessionType_EnumValues[$this->Value
];
96 function fromString($strValue)
98 global $RSMGR_TSessionType_EnumValues;
99 foreach ($RSMGR_TSessionType_EnumValues as $k => $v)
101 if ($strValue === $v)
108 $this->Value
= $RSMGR_TSessionType_InvalidValue;
116 function fromInt($intValue)
118 global $RSMGR_TSessionType_InvalidValue;
119 global $RSMGR_TSessionType_EnumValues;
120 if (array_key_exists($intValue, $RSMGR_TSessionType_EnumValues))
121 $this->Value
= $intValue;
123 $this->Value
= $RSMGR_TSessionType_InvalidValue;
128 /////////////////////////////////////////////////////////////////
129 // WARNING : this is a generated file, don't change it !
130 /////////////////////////////////////////////////////////////////
133 $RSMGR_TSessionOrientation_EnumValues[$arrayCounter++
] = "so_newbie_training";
134 $RSMGR_TSessionOrientation_EnumValues[$arrayCounter++
] = "so_story_telling";
135 $RSMGR_TSessionOrientation_EnumValues[$arrayCounter++
] = "so_mistery";
136 $RSMGR_TSessionOrientation_EnumValues[$arrayCounter++
] = "so_hack_slash";
137 $RSMGR_TSessionOrientation_EnumValues[$arrayCounter++
] = "so_guild_training";
138 $RSMGR_TSessionOrientation_EnumValues[$arrayCounter++
] = "so_other";
139 $RSMGR_TSessionOrientation_EnumValues[$arrayCounter] = "invalid";
140 $RSMGR_TSessionOrientation_InvalidValue = $arrayCounter;
142 class RSMGR_TSessionOrientation
146 function __construct()
148 global $RSMGR_TSessionOrientation_InvalidValue;
149 $this->Value
= $RSMGR_TSessionOrientation_InvalidValue;
154 global $RSMGR_TSessionOrientation_EnumValues;
155 return $RSMGR_TSessionOrientation_EnumValues[$this->Value
];
158 function fromString($strValue)
160 global $RSMGR_TSessionOrientation_EnumValues;
161 foreach ($RSMGR_TSessionOrientation_EnumValues as $k => $v)
163 if ($strValue === $v)
170 $this->Value
= $RSMGR_TSessionOrientation_InvalidValue;
178 function fromInt($intValue)
180 global $RSMGR_TSessionOrientation_InvalidValue;
181 global $RSMGR_TSessionOrientation_EnumValues;
182 if (array_key_exists($intValue, $RSMGR_TSessionOrientation_EnumValues))
183 $this->Value
= $intValue;
185 $this->Value
= $RSMGR_TSessionOrientation_InvalidValue;
190 /////////////////////////////////////////////////////////////////
191 // WARNING : this is a generated file, don't change it !
192 /////////////////////////////////////////////////////////////////
195 $RSMGR_TSessionState_EnumValues[$arrayCounter++
] = "ss_planned";
196 $RSMGR_TSessionState_EnumValues[$arrayCounter++
] = "ss_open";
197 $RSMGR_TSessionState_EnumValues[$arrayCounter++
] = "ss_locked";
198 $RSMGR_TSessionState_EnumValues[$arrayCounter++
] = "ss_closed";
199 $RSMGR_TSessionState_EnumValues[$arrayCounter] = "invalid";
200 $RSMGR_TSessionState_InvalidValue = $arrayCounter;
202 class RSMGR_TSessionState
206 function __construct()
208 global $RSMGR_TSessionState_InvalidValue;
209 $this->Value
= $RSMGR_TSessionState_InvalidValue;
214 global $RSMGR_TSessionState_EnumValues;
215 return $RSMGR_TSessionState_EnumValues[$this->Value
];
218 function fromString($strValue)
220 global $RSMGR_TSessionState_EnumValues;
221 foreach ($RSMGR_TSessionState_EnumValues as $k => $v)
223 if ($strValue === $v)
230 $this->Value
= $RSMGR_TSessionState_InvalidValue;
238 function fromInt($intValue)
240 global $RSMGR_TSessionState_InvalidValue;
241 global $RSMGR_TSessionState_EnumValues;
242 if (array_key_exists($intValue, $RSMGR_TSessionState_EnumValues))
243 $this->Value
= $intValue;
245 $this->Value
= $RSMGR_TSessionState_InvalidValue;
250 /////////////////////////////////////////////////////////////////
251 // WARNING : this is a generated file, don't change it !
252 /////////////////////////////////////////////////////////////////
255 $RSMGR_TAnimMode_EnumValues[$arrayCounter++
] = "am_dm";
256 $RSMGR_TAnimMode_EnumValues[$arrayCounter++
] = "am_autonomous";
257 $RSMGR_TAnimMode_EnumValues[$arrayCounter] = "invalid";
258 $RSMGR_TAnimMode_InvalidValue = $arrayCounter;
260 class RSMGR_TAnimMode
264 function __construct()
266 global $RSMGR_TAnimMode_InvalidValue;
267 $this->Value
= $RSMGR_TAnimMode_InvalidValue;
272 global $RSMGR_TAnimMode_EnumValues;
273 return $RSMGR_TAnimMode_EnumValues[$this->Value
];
276 function fromString($strValue)
278 global $RSMGR_TAnimMode_EnumValues;
279 foreach ($RSMGR_TAnimMode_EnumValues as $k => $v)
281 if ($strValue === $v)
288 $this->Value
= $RSMGR_TAnimMode_InvalidValue;
296 function fromInt($intValue)
298 global $RSMGR_TAnimMode_InvalidValue;
299 global $RSMGR_TAnimMode_EnumValues;
300 if (array_key_exists($intValue, $RSMGR_TAnimMode_EnumValues))
301 $this->Value
= $intValue;
303 $this->Value
= $RSMGR_TAnimMode_InvalidValue;
308 /////////////////////////////////////////////////////////////////
309 // WARNING : this is a generated file, don't change it !
310 /////////////////////////////////////////////////////////////////
313 $RSMGR_TAccessType_EnumValues[$arrayCounter++
] = "at_public";
314 $RSMGR_TAccessType_EnumValues[$arrayCounter++
] = "at_private";
315 $RSMGR_TAccessType_EnumValues[$arrayCounter] = "invalid";
316 $RSMGR_TAccessType_InvalidValue = $arrayCounter;
318 class RSMGR_TAccessType
322 function __construct()
324 global $RSMGR_TAccessType_InvalidValue;
325 $this->Value
= $RSMGR_TAccessType_InvalidValue;
330 global $RSMGR_TAccessType_EnumValues;
331 return $RSMGR_TAccessType_EnumValues[$this->Value
];
334 function fromString($strValue)
336 global $RSMGR_TAccessType_EnumValues;
337 foreach ($RSMGR_TAccessType_EnumValues as $k => $v)
339 if ($strValue === $v)
346 $this->Value
= $RSMGR_TAccessType_InvalidValue;
354 function fromInt($intValue)
356 global $RSMGR_TAccessType_InvalidValue;
357 global $RSMGR_TAccessType_EnumValues;
358 if (array_key_exists($intValue, $RSMGR_TAccessType_EnumValues))
359 $this->Value
= $intValue;
361 $this->Value
= $RSMGR_TAccessType_InvalidValue;
366 /////////////////////////////////////////////////////////////////
367 // WARNING : this is a generated file, don't change it !
368 /////////////////////////////////////////////////////////////////
371 $RSMGR_TRuleType_EnumValues[$arrayCounter++
] = "rt_strict";
372 $RSMGR_TRuleType_EnumValues[$arrayCounter++
] = "rt_liberal";
373 $RSMGR_TRuleType_EnumValues[$arrayCounter] = "invalid";
374 $RSMGR_TRuleType_InvalidValue = $arrayCounter;
376 class RSMGR_TRuleType
380 function __construct()
382 global $RSMGR_TRuleType_InvalidValue;
383 $this->Value
= $RSMGR_TRuleType_InvalidValue;
388 global $RSMGR_TRuleType_EnumValues;
389 return $RSMGR_TRuleType_EnumValues[$this->Value
];
392 function fromString($strValue)
394 global $RSMGR_TRuleType_EnumValues;
395 foreach ($RSMGR_TRuleType_EnumValues as $k => $v)
397 if ($strValue === $v)
404 $this->Value
= $RSMGR_TRuleType_InvalidValue;
412 function fromInt($intValue)
414 global $RSMGR_TRuleType_InvalidValue;
415 global $RSMGR_TRuleType_EnumValues;
416 if (array_key_exists($intValue, $RSMGR_TRuleType_EnumValues))
417 $this->Value
= $intValue;
419 $this->Value
= $RSMGR_TRuleType_InvalidValue;
424 /////////////////////////////////////////////////////////////////
425 // WARNING : this is a generated file, don't change it !
426 /////////////////////////////////////////////////////////////////
429 $RSMGR_TLevelFilter_EnumValues[$arrayCounter++
] = "lf_a";
430 $RSMGR_TLevelFilter_EnumValues[$arrayCounter++
] = "lf_b";
431 $RSMGR_TLevelFilter_EnumValues[$arrayCounter++
] = "lf_c";
432 $RSMGR_TLevelFilter_EnumValues[$arrayCounter++
] = "lf_d";
433 $RSMGR_TLevelFilter_EnumValues[$arrayCounter++
] = "lf_e";
434 $RSMGR_TLevelFilter_EnumValues[$arrayCounter++
] = "lf_f";
435 $RSMGR_TLevelFilter_EnumValues[$arrayCounter] = "invalid";
436 $RSMGR_TLevelFilter_InvalidValue = $arrayCounter;
438 class RSMGR_TLevelFilter
442 function __construct()
444 global $RSMGR_TLevelFilter_InvalidValue;
445 $this->Value
= $RSMGR_TLevelFilter_InvalidValue;
450 global $RSMGR_TLevelFilter_EnumValues;
451 return $RSMGR_TLevelFilter_EnumValues[$this->Value
];
454 function fromString($strValue)
456 global $RSMGR_TLevelFilter_EnumValues;
457 foreach ($RSMGR_TLevelFilter_EnumValues as $k => $v)
459 if ($strValue === $v)
466 $this->Value
= $RSMGR_TLevelFilter_InvalidValue;
474 function fromInt($intValue)
476 global $RSMGR_TLevelFilter_InvalidValue;
477 global $RSMGR_TLevelFilter_EnumValues;
478 if (array_key_exists($intValue, $RSMGR_TLevelFilter_EnumValues))
479 $this->Value
= $intValue;
481 $this->Value
= $RSMGR_TLevelFilter_InvalidValue;
486 /////////////////////////////////////////////////////////////////
487 // WARNING : this is a generated file, don't change it !
488 /////////////////////////////////////////////////////////////////
491 $RSMGR_TEstimatedDuration_EnumValues[$arrayCounter++
] = "et_short";
492 $RSMGR_TEstimatedDuration_EnumValues[$arrayCounter++
] = "et_medium";
493 $RSMGR_TEstimatedDuration_EnumValues[$arrayCounter++
] = "et_long";
494 $RSMGR_TEstimatedDuration_EnumValues[$arrayCounter] = "invalid";
495 $RSMGR_TEstimatedDuration_InvalidValue = $arrayCounter;
497 class RSMGR_TEstimatedDuration
501 function __construct()
503 global $RSMGR_TEstimatedDuration_InvalidValue;
504 $this->Value
= $RSMGR_TEstimatedDuration_InvalidValue;
509 global $RSMGR_TEstimatedDuration_EnumValues;
510 return $RSMGR_TEstimatedDuration_EnumValues[$this->Value
];
513 function fromString($strValue)
515 global $RSMGR_TEstimatedDuration_EnumValues;
516 foreach ($RSMGR_TEstimatedDuration_EnumValues as $k => $v)
518 if ($strValue === $v)
525 $this->Value
= $RSMGR_TEstimatedDuration_InvalidValue;
533 function fromInt($intValue)
535 global $RSMGR_TEstimatedDuration_InvalidValue;
536 global $RSMGR_TEstimatedDuration_EnumValues;
537 if (array_key_exists($intValue, $RSMGR_TEstimatedDuration_EnumValues))
538 $this->Value
= $intValue;
540 $this->Value
= $RSMGR_TEstimatedDuration_InvalidValue;
545 /////////////////////////////////////////////////////////////////
546 // WARNING : this is a generated file, don't change it !
547 /////////////////////////////////////////////////////////////////
550 $RSMGR_TRaceFilter_EnumValues[$arrayCounter++
] = "rf_fyros";
551 $RSMGR_TRaceFilter_EnumValues[$arrayCounter++
] = "rf_matis";
552 $RSMGR_TRaceFilter_EnumValues[$arrayCounter++
] = "rf_tryker";
553 $RSMGR_TRaceFilter_EnumValues[$arrayCounter++
] = "rf_zorai";
554 $RSMGR_TRaceFilter_EnumValues[$arrayCounter] = "invalid";
555 $RSMGR_TRaceFilter_InvalidValue = $arrayCounter;
557 class RSMGR_TRaceFilter
561 function __construct()
563 global $RSMGR_TRaceFilter_InvalidValue;
564 $this->Value
= $RSMGR_TRaceFilter_InvalidValue;
569 global $RSMGR_TRaceFilter_EnumValues;
570 return $RSMGR_TRaceFilter_EnumValues[$this->Value
];
573 function fromString($strValue)
575 global $RSMGR_TRaceFilter_EnumValues;
576 foreach ($RSMGR_TRaceFilter_EnumValues as $k => $v)
578 if ($strValue === $v)
585 $this->Value
= $RSMGR_TRaceFilter_InvalidValue;
593 function fromInt($intValue)
595 global $RSMGR_TRaceFilter_InvalidValue;
596 global $RSMGR_TRaceFilter_EnumValues;
597 if (array_key_exists($intValue, $RSMGR_TRaceFilter_EnumValues))
598 $this->Value
= $intValue;
600 $this->Value
= $RSMGR_TRaceFilter_InvalidValue;
605 /////////////////////////////////////////////////////////////////
606 // WARNING : this is a generated file, don't change it !
607 /////////////////////////////////////////////////////////////////
610 $RSMGR_TReligionFilter_EnumValues[$arrayCounter++
] = "rf_kami";
611 $RSMGR_TReligionFilter_EnumValues[$arrayCounter++
] = "rf_karavan";
612 $RSMGR_TReligionFilter_EnumValues[$arrayCounter++
] = "rf_neutral";
613 $RSMGR_TReligionFilter_EnumValues[$arrayCounter] = "invalid";
614 $RSMGR_TReligionFilter_InvalidValue = $arrayCounter;
616 class RSMGR_TReligionFilter
620 function __construct()
622 global $RSMGR_TReligionFilter_InvalidValue;
623 $this->Value
= $RSMGR_TReligionFilter_InvalidValue;
628 global $RSMGR_TReligionFilter_EnumValues;
629 return $RSMGR_TReligionFilter_EnumValues[$this->Value
];
632 function fromString($strValue)
634 global $RSMGR_TReligionFilter_EnumValues;
635 foreach ($RSMGR_TReligionFilter_EnumValues as $k => $v)
637 if ($strValue === $v)
644 $this->Value
= $RSMGR_TReligionFilter_InvalidValue;
652 function fromInt($intValue)
654 global $RSMGR_TReligionFilter_InvalidValue;
655 global $RSMGR_TReligionFilter_EnumValues;
656 if (array_key_exists($intValue, $RSMGR_TReligionFilter_EnumValues))
657 $this->Value
= $intValue;
659 $this->Value
= $RSMGR_TReligionFilter_InvalidValue;
664 /////////////////////////////////////////////////////////////////
665 // WARNING : this is a generated file, don't change it !
666 /////////////////////////////////////////////////////////////////
669 $RSMGR_TGuildFilter_EnumValues[$arrayCounter++
] = "gf_only_my_guild";
670 $RSMGR_TGuildFilter_EnumValues[$arrayCounter++
] = "gf_any_player";
671 $RSMGR_TGuildFilter_EnumValues[$arrayCounter] = "invalid";
672 $RSMGR_TGuildFilter_InvalidValue = $arrayCounter;
674 class RSMGR_TGuildFilter
678 function __construct()
680 global $RSMGR_TGuildFilter_InvalidValue;
681 $this->Value
= $RSMGR_TGuildFilter_InvalidValue;
686 global $RSMGR_TGuildFilter_EnumValues;
687 return $RSMGR_TGuildFilter_EnumValues[$this->Value
];
690 function fromString($strValue)
692 global $RSMGR_TGuildFilter_EnumValues;
693 foreach ($RSMGR_TGuildFilter_EnumValues as $k => $v)
695 if ($strValue === $v)
702 $this->Value
= $RSMGR_TGuildFilter_InvalidValue;
710 function fromInt($intValue)
712 global $RSMGR_TGuildFilter_InvalidValue;
713 global $RSMGR_TGuildFilter_EnumValues;
714 if (array_key_exists($intValue, $RSMGR_TGuildFilter_EnumValues))
715 $this->Value
= $intValue;
717 $this->Value
= $RSMGR_TGuildFilter_InvalidValue;
722 /////////////////////////////////////////////////////////////////
723 // WARNING : this is a generated file, don't change it !
724 /////////////////////////////////////////////////////////////////
727 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard00";
728 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard01";
729 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard02";
730 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard03";
731 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard04";
732 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard05";
733 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard06";
734 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard07";
735 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard08";
736 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard09";
737 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard10";
738 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard11";
739 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard12";
740 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard13";
741 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard14";
742 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard15";
743 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard16";
744 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard17";
745 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard18";
746 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard19";
747 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard20";
748 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard21";
749 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard22";
750 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard23";
751 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard24";
752 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard25";
753 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard26";
754 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard27";
755 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard28";
756 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard29";
757 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard30";
758 $RSMGR_TShardFilter_EnumValues[$arrayCounter++
] = "sf_shard31";
759 $RSMGR_TShardFilter_EnumValues[$arrayCounter] = "invalid";
760 $RSMGR_TShardFilter_InvalidValue = $arrayCounter;
762 class RSMGR_TShardFilter
766 function __construct()
768 global $RSMGR_TShardFilter_InvalidValue;
769 $this->Value
= $RSMGR_TShardFilter_InvalidValue;
774 global $RSMGR_TShardFilter_EnumValues;
775 return $RSMGR_TShardFilter_EnumValues[$this->Value
];
778 function fromString($strValue)
780 global $RSMGR_TShardFilter_EnumValues;
781 foreach ($RSMGR_TShardFilter_EnumValues as $k => $v)
783 if ($strValue === $v)
790 $this->Value
= $RSMGR_TShardFilter_InvalidValue;
798 function fromInt($intValue)
800 global $RSMGR_TShardFilter_InvalidValue;
801 global $RSMGR_TShardFilter_EnumValues;
802 if (array_key_exists($intValue, $RSMGR_TShardFilter_EnumValues))
803 $this->Value
= $intValue;
805 $this->Value
= $RSMGR_TShardFilter_InvalidValue;
810 /////////////////////////////////////////////////////////////////
811 // WARNING : this is a generated file, don't change it !
812 /////////////////////////////////////////////////////////////////
815 $RSMGR_TSessionEvent_EnumValues[$arrayCounter++
] = "se_char_enter";
816 $RSMGR_TSessionEvent_EnumValues[$arrayCounter++
] = "se_char_leave";
817 $RSMGR_TSessionEvent_EnumValues[$arrayCounter++
] = "se_session_closing";
818 $RSMGR_TSessionEvent_EnumValues[$arrayCounter] = "invalid";
819 $RSMGR_TSessionEvent_InvalidValue = $arrayCounter;
821 class RSMGR_TSessionEvent
825 function __construct()
827 global $RSMGR_TSessionEvent_InvalidValue;
828 $this->Value
= $RSMGR_TSessionEvent_InvalidValue;
833 global $RSMGR_TSessionEvent_EnumValues;
834 return $RSMGR_TSessionEvent_EnumValues[$this->Value
];
837 function fromString($strValue)
839 global $RSMGR_TSessionEvent_EnumValues;
840 foreach ($RSMGR_TSessionEvent_EnumValues as $k => $v)
842 if ($strValue === $v)
849 $this->Value
= $RSMGR_TSessionEvent_InvalidValue;
857 function fromInt($intValue)
859 global $RSMGR_TSessionEvent_InvalidValue;
860 global $RSMGR_TSessionEvent_EnumValues;
861 if (array_key_exists($intValue, $RSMGR_TSessionEvent_EnumValues))
862 $this->Value
= $intValue;
864 $this->Value
= $RSMGR_TSessionEvent_InvalidValue;
869 /////////////////////////////////////////////////////////////////
870 // WARNING : this is a generated file, don't change it !
871 /////////////////////////////////////////////////////////////////
873 require_once('../tools/nel_message.php');
875 class CRingSessionManagerWeb
extends CCallbackClient
878 function scheduleSession($charId, $sessionType, $sessionTitle, $sessionDesc, $sessionLevel, $ruleType, $estimatedDuration, $subscriptionSlot, $animMode, $raceFilter, $religionFilter, $guildFilter, $shardFilter, $levelFilter, $language, $orientation, $subscriptionClosed, $autoInvite)
881 $msg->setName("SSS");
884 $msg->serialUint32($charId);
885 $msg->serialEnum($sessionType);
886 $msg->serialString($sessionTitle);
887 $msg->serialString($sessionDesc);
888 $msg->serialEnum($sessionLevel);
889 $msg->serialEnum($ruleType);
890 $msg->serialEnum($estimatedDuration);
891 $msg->serialUint32($subscriptionSlot);
892 $msg->serialEnum($animMode);
893 $msg->serialEnum($raceFilter);
894 $msg->serialEnum($religionFilter);
895 $msg->serialEnum($guildFilter);
896 $msg->serialEnum($shardFilter);
897 $msg->serialEnum($levelFilter);
898 $msg->serialString($language);
899 $msg->serialEnum($orientation);
900 $msg->serialUint32($subscriptionClosed);
901 $msg->serialUint32($autoInvite);
903 return parent
::sendMessage($msg);
908 function setSessionStartParams($charId, $sessionId, $initialIslandLocation, $initialEntryPointLocation, $initialSeason)
911 $msg->setName("SSSP");
914 $msg->serialUint32($charId);
915 $msg->serialUint32($sessionId);
916 $msg->serialUint32($initialIslandLocation);
917 $msg->serialUint32($initialEntryPointLocation);
918 $msg->serialUint32($initialSeason);
920 return parent
::sendMessage($msg);
925 function getSessionInfo($charId, $sessionId)
928 $msg->setName("GSI");
931 $msg->serialUint32($charId);
932 $msg->serialUint32($sessionId);
934 return parent
::sendMessage($msg);
939 function updateSessionInfo($charId, $sessionId, $sessionTitle, $plannedDate, $sessionDesc, $sessionLevel, $estimatedDuration, $subscriptionSlot, $raceFilter, $religionFilter, $guildFilter, $shardFilter, $levelFilter, $subscriptionClosed, $autoInvite, $language, $orientation)
942 $msg->setName("USS");
945 $msg->serialUint32($charId);
946 $msg->serialUint32($sessionId);
947 $msg->serialString($sessionTitle);
948 $msg->serialUint32($plannedDate);
949 $msg->serialString($sessionDesc);
950 $msg->serialEnum($sessionLevel);
951 $msg->serialEnum($estimatedDuration);
952 $msg->serialUint32($subscriptionSlot);
953 $msg->serialEnum($raceFilter);
954 $msg->serialEnum($religionFilter);
955 $msg->serialEnum($guildFilter);
956 $msg->serialEnum($shardFilter);
957 $msg->serialEnum($levelFilter);
958 $msg->serialUint32($subscriptionClosed);
959 $msg->serialUint32($autoInvite);
960 $msg->serialString($language);
961 $msg->serialEnum($orientation);
963 return parent
::sendMessage($msg);
968 function cancelSession($charId, $sessionId)
971 $msg->setName("CANSS");
974 $msg->serialUint32($charId);
975 $msg->serialUint32($sessionId);
977 return parent
::sendMessage($msg);
982 function startSession($charId, $sessionId)
985 $msg->setName("STSS");
988 $msg->serialUint32($charId);
989 $msg->serialUint32($sessionId);
991 return parent
::sendMessage($msg);
996 function closeSession($charId, $sessionId)
999 $msg->setName("CLSS");
1002 $msg->serialUint32($charId);
1003 $msg->serialUint32($sessionId);
1005 return parent
::sendMessage($msg);
1010 function closeEditSession($charId)
1012 $msg = new CMessage
;
1013 $msg->setName("CLESS");
1016 $msg->serialUint32($charId);
1018 return parent
::sendMessage($msg);
1023 function addFriendCharacter($userId, $friendCharId)
1025 $msg = new CMessage
;
1026 $msg->setName("AFC");
1029 $msg->serialUint32($userId);
1030 $msg->serialUint32($friendCharId);
1032 return parent
::sendMessage($msg);
1037 function removeFriendCharacter($userId, $friendCharId)
1039 $msg = new CMessage
;
1040 $msg->setName("RFC");
1043 $msg->serialUint32($userId);
1044 $msg->serialUint32($friendCharId);
1046 return parent
::sendMessage($msg);
1051 function addBannedCharacter($userId, $bannedCharId)
1053 $msg = new CMessage
;
1054 $msg->setName("ABC");
1057 $msg->serialUint32($userId);
1058 $msg->serialUint32($bannedCharId);
1060 return parent
::sendMessage($msg);
1065 function removeBannedCharacter($userId, $bannedCharId)
1067 $msg = new CMessage
;
1068 $msg->setName("RBC");
1071 $msg->serialUint32($userId);
1072 $msg->serialUint32($bannedCharId);
1074 return parent
::sendMessage($msg);
1079 function addFriendDMCharacter($userId, $friendDMCharId)
1081 $msg = new CMessage
;
1082 $msg->setName("AFDC");
1085 $msg->serialUint32($userId);
1086 $msg->serialUint32($friendDMCharId);
1088 return parent
::sendMessage($msg);
1093 function removeFriendDMCharacter($userId, $friendDMCharId)
1095 $msg = new CMessage
;
1096 $msg->setName("RFDC");
1099 $msg->serialUint32($userId);
1100 $msg->serialUint32($friendDMCharId);
1102 return parent
::sendMessage($msg);
1107 function setKnownCharacterComments($userId, $charId, $relation, $comments)
1109 $msg = new CMessage
;
1110 $msg->setName("SKCC");
1113 $msg->serialUint32($userId);
1114 $msg->serialUint32($charId);
1115 $msg->serialString($relation);
1116 $msg->serialString($comments);
1118 return parent
::sendMessage($msg);
1123 function inviteCharacter($ownerCharId, $sessionId, $invitedCharId, $charRole)
1125 $msg = new CMessage
;
1126 $msg->setName("IC");
1129 $msg->serialUint32($ownerCharId);
1130 $msg->serialUint32($sessionId);
1131 $msg->serialUint32($invitedCharId);
1132 $msg->serialEnum($charRole);
1134 return parent
::sendMessage($msg);
1139 function removeInvitedCharacter($ownerCharId, $sessionId, $removedCharId)
1141 $msg = new CMessage
;
1142 $msg->setName("RIC");
1145 $msg->serialUint32($ownerCharId);
1146 $msg->serialUint32($sessionId);
1147 $msg->serialUint32($removedCharId);
1149 return parent
::sendMessage($msg);
1154 function subscribeSession($charId, $sessionId)
1156 $msg = new CMessage
;
1157 $msg->setName("SBS");
1160 $msg->serialUint32($charId);
1161 $msg->serialUint32($sessionId);
1163 return parent
::sendMessage($msg);
1168 function unsubscribeSession($charId, $sessionId)
1170 $msg = new CMessage
;
1171 $msg->setName("USBS");
1174 $msg->serialUint32($charId);
1175 $msg->serialUint32($sessionId);
1177 return parent
::sendMessage($msg);
1182 function joinSession($charId, $sessionId, $clientApplication)
1184 $msg = new CMessage
;
1185 $msg->setName("JSS");
1188 $msg->serialUint32($charId);
1189 $msg->serialUint32($sessionId);
1190 $msg->serialString($clientApplication);
1192 return parent
::sendMessage($msg);
1197 function joinMainland($charId, $clientApplication)
1199 $msg = new CMessage
;
1200 $msg->setName("JML");
1203 $msg->serialUint32($charId);
1204 $msg->serialString($clientApplication);
1206 return parent
::sendMessage($msg);
1211 function joinEditSession($charId, $clientApplication)
1213 $msg = new CMessage
;
1214 $msg->setName("JES");
1217 $msg->serialUint32($charId);
1218 $msg->serialString($clientApplication);
1220 return parent
::sendMessage($msg);
1225 function hibernateEditSession($charId)
1227 $msg = new CMessage
;
1228 $msg->setName("HES");
1231 $msg->serialUint32($charId);
1233 return parent
::sendMessage($msg);
1238 function getShards($charId)
1240 $msg = new CMessage
;
1241 $msg->setName("GSH");
1244 $msg->serialUint32($charId);
1246 return parent
::sendMessage($msg);
1251 function kickCharacter($ownerCharId, $sessionId, $kickedCharId)
1253 $msg = new CMessage
;
1254 $msg->setName("KC");
1257 $msg->serialUint32($ownerCharId);
1258 $msg->serialUint32($sessionId);
1259 $msg->serialUint32($kickedCharId);
1261 return parent
::sendMessage($msg);
1266 function unkickCharacter($ownerCharId, $sessionId, $unkickedCharId)
1268 $msg = new CMessage
;
1269 $msg->setName("UKC");
1272 $msg->serialUint32($ownerCharId);
1273 $msg->serialUint32($sessionId);
1274 $msg->serialUint32($unkickedCharId);
1276 return parent
::sendMessage($msg);
1281 function inviteGuild($charId, $sessionId, $guildId)
1283 $msg = new CMessage
;
1284 $msg->setName("IG");
1287 $msg->serialUint32($charId);
1288 $msg->serialUint32($sessionId);
1289 $msg->serialUint32($guildId);
1291 return parent
::sendMessage($msg);
1296 function removeInvitedGuild($charId, $sessionId, $guildId)
1298 $msg = new CMessage
;
1299 $msg->setName("RIG");
1302 $msg->serialUint32($charId);
1303 $msg->serialUint32($sessionId);
1304 $msg->serialUint32($guildId);
1306 return parent
::sendMessage($msg);
1311 function setScenarioInfo($charId, $sessionId, $title, $numPlayer, $playType)
1313 $msg = new CMessage
;
1314 $msg->setName("SSCI");
1317 $msg->serialUint32($charId);
1318 $msg->serialUint32($sessionId);
1319 $msg->serialString($title);
1320 $msg->serialUint32($numPlayer);
1321 $msg->serialString($playType);
1323 return parent
::sendMessage($msg);
1328 function addJournalEntry($charId, $sessionId, $entryType, $text)
1330 $msg = new CMessage
;
1331 $msg->setName("AJE");
1334 $msg->serialUint32($charId);
1335 $msg->serialUint32($sessionId);
1336 $msg->serialString($entryType);
1337 $msg->serialString($text);
1339 return parent
::sendMessage($msg);
1344 function setPlayerRating($charId, $sessionId, $rateFun, $rateDifficulty, $rateAccessibility, $rateOriginality, $rateDirection)
1346 $msg = new CMessage
;
1347 $msg->setName("SPR");
1350 $msg->serialUint32($charId);
1351 $msg->serialUint32($sessionId);
1352 $msg->serialUint32($rateFun);
1353 $msg->serialUint32($rateDifficulty);
1354 $msg->serialUint32($rateAccessibility);
1355 $msg->serialUint32($rateOriginality);
1356 $msg->serialUint32($rateDirection);
1358 return parent
::sendMessage($msg);
1364 function waitCallback()
1366 $message = parent
::waitMessage();
1368 if ($message == false)
1371 switch($message->MsgName
)
1374 $this->invokeResult_skel($message);
1377 $this->scheduleSessionResult_skel($message);
1380 $this->sessionInfoResult_skel($message);
1383 $this->joinSessionResult_skel($message);
1386 $this->joinSessionResultExt_skel($message);
1389 $this->getShardsResult_skel($message);
1399 function invokeResult_skel(&$message)
1401 $message->serialUint32($userId);
1402 $message->serialUint32($resultCode);
1403 $message->serialString($resultString);
1405 $this->invokeResult($userId, $resultCode, $resultString);
1408 function scheduleSessionResult_skel(&$message)
1410 $message->serialUint32($charId);
1411 $message->serialUint32($sessionId);
1412 $message->serialUInt8($result);
1413 $message->serialString($resultString);
1415 $this->scheduleSessionResult($charId, $sessionId, $result, $resultString);
1418 function sessionInfoResult_skel(&$message)
1420 $message->serialUint32($charId);
1421 $message->serialUint32($sessionId);
1423 $raceFilter = new RSMGR_TRaceFilter
;
1424 $message->serialEnum($raceFilter);
1426 $religionFilter = new RSMGR_TReligionFilter
;
1427 $message->serialEnum($religionFilter);
1429 $guildFilter = new RSMGR_TGuildFilter
;
1430 $message->serialEnum($guildFilter);
1432 $shardFilter = new RSMGR_TShardFilter
;
1433 $message->serialEnum($shardFilter);
1435 $levelFilter = new RSMGR_TLevelFilter
;
1436 $message->serialEnum($levelFilter);
1437 $message->serialUint32($subscriptionClosed);
1438 $message->serialUint32($autoInvite);
1439 $message->serialString($language);
1441 $orientation = new RSMGR_TSessionOrientation
;
1442 $message->serialEnum($orientation);
1443 $message->serialString($description);
1445 $this->sessionInfoResult($charId, $sessionId, $raceFilter, $religionFilter, $guildFilter, $shardFilter, $levelFilter, $subscriptionClosed, $autoInvite, $language, $orientation, $description);
1448 function joinSessionResult_skel(&$message)
1450 $message->serialUint32($userId);
1451 $message->serialUint32($sessionId);
1452 $message->serialUint32($result);
1453 $message->serialString($shardAddr);
1455 $participantStatus = new RSMGR_TSessionPartStatus
;
1456 $message->serialEnum($participantStatus);
1458 $this->joinSessionResult($userId, $sessionId, $result, $shardAddr, $participantStatus);
1461 function joinSessionResultExt_skel(&$message)
1463 $message->serialUint32($userId);
1464 $message->serialUint32($sessionId);
1465 $message->serialUint32($result);
1466 $message->serialString($shardAddr);
1468 $participantStatus = new RSMGR_TSessionPartStatus
;
1469 $message->serialEnum($participantStatus);
1470 $message->serialUint32($securityCheckForFastDisconnection);
1472 $this->joinSessionResultExt($userId, $sessionId, $result, $shardAddr, $participantStatus, $securityCheckForFastDisconnection);
1475 function getShardsResult_skel(&$message)
1477 $message->serialUint32($userId);
1478 $message->serialString($result);
1480 $this->getShardsResult($userId, $result);
1484 /////////////////////////////////////////////////////////////////
1485 // Copy paste this part of code in your derived class
1486 // and implement code to ract to incoming message
1487 /////////////////////////////////////////////////////////////////
1488 // Generic response to invoke.
1489 // result contains 0 if no error, more than 0 in case of error
1491 function invokeResult($userId, $resultCode, $resultString)
1495 // result is : 0 : session have been created fine
1496 // 1 : invalid session type
1497 // 2 : invalid level
1498 // 3 : unknown character
1500 // 5 : invalid access type
1501 // 6 : invalid rule type
1502 // 7 : invalid duration
1504 // 9 : free trial account can't create anim session
1505 // 10 : user is ban from ring anim session
1507 function scheduleSessionResult($charId, $sessionId, $result, $resultString)
1511 // session info result (anim)
1513 function sessionInfoResult($charId, $sessionId, $raceFilter, $religionFilter, $guildFilter, $shardFilter, $levelFilter, $subscriptionClosed, $autoInvite, $language, $orientation, $description)
1517 // Return the result of the session joining attempt
1518 // If join is ok, the shardAddr contain <ip:port> of the
1519 // Front end that waits for the player to come in and the.
1520 // participation mode for the character (editor, animator or player).
1521 // If ok, the web must return a page with a lua script.
1522 // that trigger the action handler 'on_connect_to_shard' :
1523 // <lua>runAH(nul, "on_connect_to_shard", "cookie=cookieValue|fsAddr=shardAddr|mode=participantStatus");<lua>
1524 // result : 0 : ok the client can join the session
1525 // 1 : char not found
1526 // 2 : session not found
1527 // 3 : no session participant for this character (not used for a mainland shard)
1528 // 4 : can't find session server (not used for a mainland shard)
1529 // 5 : shard hosting session is not reachable
1530 // 6 : nel user info not found
1531 // 7 : ring user not found
1532 // 8 : welcome service rejected connection request
1533 // 9 : session service shutdown (not used for a mainland shard)
1534 // 10 : no mainland shard found (joinMainland only)
1535 // 11 : internal error
1536 // 12 : failed to request for access permission
1537 // 13 : can't find access permission for user and domain
1538 // 14 : Welcome service is closed for you
1539 // 15 : Session is not open
1540 // 16 : User banned from ring
1541 // 17 : Newcomer flag missmatch
1542 // 18 : Can't find session log to validate session access
1543 // 19 : Can't find scenario info to validate session access
1544 // 20 : Scenario is not allowed to free trial players
1546 function joinSessionResult($userId, $sessionId, $result, $shardAddr, $participantStatus)
1550 // See joinSessionResult.
1551 // Adds a security code.
1553 function joinSessionResultExt($userId, $sessionId, $result, $shardAddr, $participantStatus, $securityCheckForFastDisconnection)
1557 // Return the list of online shards on which the user is allowed to connect,
1558 // and their current dynamic attributes. Other attributes (e.g. names)
1559 // can be queried from the database. Offline shards are the ones in the database
1560 // of the same domain but not listed in the result.
1561 // Then the client will have to call joinShard to connect on an online shard.
1563 function getShardsResult($userId, $result)
1570 /////////////////////////////////////////////////////////////////
1571 // WARNING : this is a generated file, don't change it !
1572 /////////////////////////////////////////////////////////////////
1574 require_once('../tools/nel_message.php');
1576 class CSessionBrowserServerWeb
extends CCallbackClient
1579 function authenticate($userId, $cookie)
1581 $msg = new CMessage
;
1582 $msg->setName("AUTH");
1585 $msg->serialUint32($userId);
1586 $msg->serialUint32($cookie);
1588 return parent
::sendMessage($msg);
1593 function getSessionList($charId)
1595 $msg = new CMessage
;
1596 $msg->setName("GSL");
1599 $msg->serialUint32($charId);
1601 return parent
::sendMessage($msg);
1606 function getCharList($charId, $sessionId)
1608 $msg = new CMessage
;
1609 $msg->setName("GCL");
1612 $msg->serialUint32($charId);
1613 $msg->serialUint32($sessionId);
1615 return parent
::sendMessage($msg);
1620 function inviteCharacterByName($charId, $invitedCharName)
1622 $msg = new CMessage
;
1623 $msg->setName("ICBN");
1626 $msg->serialUint32($charId);
1627 $msg->serialUint32($invitedCharName);
1629 return parent
::sendMessage($msg);
1634 function getMyRatings($charId, $sessionId)
1636 $msg = new CMessage
;
1637 $msg->setName("GMSR");
1640 $msg->serialUint32($charId);
1641 $msg->serialUint32($sessionId);
1643 return parent
::sendMessage($msg);
1648 function getSessionAverageScores($sessionId)
1650 $msg = new CMessage
;
1651 $msg->setName("GSAS");
1654 $msg->serialUint32($sessionId);
1656 return parent
::sendMessage($msg);
1661 function getScenarioAverageScores($md5)
1663 $msg = new CMessage
;
1664 $msg->setName("GSCAS");
1667 $msg->serialUint32($md5);
1669 return parent
::sendMessage($msg);
1674 function getRingRatings($charId)
1676 $msg = new CMessage
;
1677 $msg->setName("GRR");
1680 $msg->serialUint32($charId);
1682 return parent
::sendMessage($msg);
1687 function getRingPoints($charId)
1689 $msg = new CMessage
;
1690 $msg->setName("GRP");
1693 $msg->serialUint32($charId);
1695 return parent
::sendMessage($msg);
1700 function forwardToDss($charId, $msg)
1702 $msg = new CMessage
;
1703 $msg->setName("DSS_FW");
1706 $msg->serialUint32($charId);
1707 $msg->serialUint32($msg);
1709 return parent
::sendMessage($msg);
1715 function waitCallback()
1717 $message = parent
::waitMessage();
1719 if ($message == false)
1722 switch($message->MsgName
)
1725 $this->sessionList_skel($message);
1728 $this->charList_skel($message);
1731 $this->playerRatings_skel($message);
1734 $this->sessionAverageScores_skel($message);
1737 $this->scenarioAverageScores_skel($message);
1740 $this->ringRatings_skel($message);
1743 $this->ringPoints_skel($message);
1753 function sessionList_skel(&$message)
1755 $message->serialUint32($charId);
1756 $message->serialUint32($sessions);
1758 $this->sessionList($charId, $sessions);
1761 function charList_skel(&$message)
1763 $message->serialUint32($charId);
1764 $message->serialUint32($sessionId);
1765 $message->serialUint32($characters);
1767 $this->charList($charId, $sessionId, $characters);
1770 function playerRatings_skel(&$message)
1772 $message->serialUint32($charId);
1773 $message->serialUint32($scenarioRated);
1774 $message->serialUint32($rateFun);
1775 $message->serialUint32($rateDifficulty);
1776 $message->serialUint32($rateAccessibility);
1777 $message->serialUint32($rateOriginality);
1778 $message->serialUint32($rateDirection);
1780 $this->playerRatings($charId, $scenarioRated, $rateFun, $rateDifficulty, $rateAccessibility, $rateOriginality, $rateDirection);
1783 function sessionAverageScores_skel(&$message)
1785 $message->serialUint32($scenarioRated);
1786 $message->serialUint32($rateFun);
1787 $message->serialUint32($rateDifficulty);
1788 $message->serialUint32($rateAccessibility);
1789 $message->serialUint32($rateOriginality);
1790 $message->serialUint32($rateDirection);
1791 $message->serialUint32($rrpTotal);
1793 $this->sessionAverageScores($scenarioRated, $rateFun, $rateDifficulty, $rateAccessibility, $rateOriginality, $rateDirection, $rrpTotal);
1796 function scenarioAverageScores_skel(&$message)
1798 $message->serialUint32($scenarioRated);
1799 $message->serialUint32($rateFun);
1800 $message->serialUint32($rateDifficulty);
1801 $message->serialUint32($rateAccessibility);
1802 $message->serialUint32($rateOriginality);
1803 $message->serialUint32($rateDirection);
1804 $message->serialUint32($rrpTotal);
1806 $this->scenarioAverageScores($scenarioRated, $rateFun, $rateDifficulty, $rateAccessibility, $rateOriginality, $rateDirection, $rrpTotal);
1809 function ringRatings_skel(&$message)
1811 $message->serialUint32($charId);
1812 $message->serialUint32($authorRating);
1813 $message->serialUint32($AMRating);
1814 $message->serialUint32($masterlessRating);
1816 $this->ringRatings($charId, $authorRating, $AMRating, $masterlessRating);
1819 function ringPoints_skel(&$message)
1821 $message->serialUint32($charId);
1822 $message->serialUint32($ringPoints);
1823 $message->serialUint32($maxRingPoints);
1825 $this->ringPoints($charId, $ringPoints, $maxRingPoints);
1829 /////////////////////////////////////////////////////////////////
1830 // Copy paste this part of code in your derived class
1831 // and implement code to ract to incoming message
1832 /////////////////////////////////////////////////////////////////
1833 // Return the list of available session
1835 function sessionList($charId, $sessions)
1839 // Return the list of player characters in the session
1841 function charList($charId, $sessionId, $characters)
1845 // Return current player rating of the current session scenario
1847 function playerRatings($charId, $scenarioRated, $rateFun, $rateDifficulty, $rateAccessibility, $rateOriginality, $rateDirection)
1851 // Return average scores of a session
1853 function sessionAverageScores($scenarioRated, $rateFun, $rateDifficulty, $rateAccessibility, $rateOriginality, $rateDirection, $rrpTotal)
1857 // Return average scores of a scenario
1859 function scenarioAverageScores($scenarioRated, $rateFun, $rateDifficulty, $rateAccessibility, $rateOriginality, $rateDirection, $rrpTotal)
1863 // Return the author rating, the AM rating and the Masterless rating
1865 function ringRatings($charId, $authorRating, $AMRating, $masterlessRating)
1869 // Return the ring points of the character
1871 function ringPoints($charId, $ringPoints, $maxRingPoints)