Go to the documentation of this file.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 "../api_network.h"
00035 #include "event_value.h"
00036
00040 class CL_API_NETWORK CL_NetGameEvent
00041 {
00042 public:
00043
00047 CL_NetGameEvent(const CL_String &name);
00048
00053 CL_NetGameEvent(const CL_String &name, const CL_NetGameEventValue &arg1);
00054
00060 CL_NetGameEvent(const CL_String &name, const CL_NetGameEventValue &arg1, const CL_NetGameEventValue &arg2);
00061
00068 CL_NetGameEvent(const CL_String &name, const CL_NetGameEventValue &arg1, const CL_NetGameEventValue &arg2, const CL_NetGameEventValue &arg3);
00069
00077 CL_NetGameEvent(const CL_String &name, const CL_NetGameEventValue &arg1, const CL_NetGameEventValue &arg2, const CL_NetGameEventValue &arg3, const CL_NetGameEventValue &arg4);
00078
00087 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);
00088
00092 CL_String get_name() const { return name; };
00093
00094 unsigned int get_argument_count() const;
00095
00101 CL_NetGameEventValue get_argument(unsigned int index) const;
00102
00106 void add_argument(const CL_NetGameEventValue &value);
00107
00111 CL_String to_string() const;
00112
00113 private:
00114
00120 CL_String to_string(const CL_NetGameEventValue &v) const;
00121
00122 CL_String name;
00123 std::vector<CL_NetGameEventValue> arguments;
00124 };
00125
00127