00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00031
00032 #pragma once
00033
00034 #include "event_value.h"
00035
00039 class CL_NetGameEvent
00040 {
00041 public:
00042
00046 CL_NetGameEvent(const CL_String &name);
00047
00052 CL_NetGameEvent(const CL_String &name, const CL_NetGameEventValue &arg1);
00053
00059 CL_NetGameEvent(const CL_String &name, const CL_NetGameEventValue &arg1, const CL_NetGameEventValue &arg2);
00060
00067 CL_NetGameEvent(const CL_String &name, const CL_NetGameEventValue &arg1, const CL_NetGameEventValue &arg2, const CL_NetGameEventValue &arg3);
00068
00076 CL_NetGameEvent(const CL_String &name, const CL_NetGameEventValue &arg1, const CL_NetGameEventValue &arg2, const CL_NetGameEventValue &arg3, const CL_NetGameEventValue &arg4);
00077
00086 CL_NetGameEvent(const CL_String &name, const CL_NetGameEventValue &arg1, const CL_NetGameEventValue &arg2, const CL_NetGameEventValue &arg3, const CL_NetGameEventValue &arg4, const CL_NetGameEventValue &arg5);
00087
00091 CL_String get_name() const { return name; };
00092
00093 unsigned int get_argument_count() const;
00094
00100 CL_NetGameEventValue get_argument(unsigned int index) const;
00101
00105 void add_argument(const CL_NetGameEventValue &value);
00106
00110 CL_String to_string() const;
00111
00112 private:
00113
00119 CL_String to_string(const CL_NetGameEventValue &v) const;
00120
00121 CL_String name;
00122 std::vector<CL_NetGameEventValue> arguments;
00123 };
00124
00126