VoltMod
C++23 framework for CS2 server plugins
Loading...
Searching...
No Matches
Vote.cpp File Reference
#include "Engine/Net/NetMessage.hpp"
#include "Engine/Net/ProtoReflect.hpp"
#include <VoltMod/Core/Log.hpp>
#include <VoltMod/Core/Slots/Slot.hpp>
#include <VoltMod/Core/Time/Scheduler.hpp>
#include <VoltMod/Engine/Interfaces.hpp>
#include <VoltMod/Engine/Net/RecipientFilter.hpp>
#include <VoltMod/Entities/EntitySystem.hpp>
#include <VoltMod/Events/EventTypes.hpp>
#include <VoltMod/Events/GameEvents.hpp>
#include <VoltMod/Hooks/Vote.hpp>
#include <engine/igameeventsystem.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/message.h>
#include <networksystem/inetworkmessages.h>
#include <networksystem/netmessage.h>
#include <string_view>
#include <utility>

Go to the source code of this file.

Namespaces

namespace  VoltMod
 

Functions

static ProtoMessage * VoltMod::AsProto (CNetMessage *message)
 
static const ProtoFieldDescriptor * VoltMod::VoteField (ProtoMessage *message, std::string_view name)
 
static void VoltMod::SetInt (ProtoMessage *message, std::string_view name, int32_t value)
 
static void VoltMod::SetBool (ProtoMessage *message, std::string_view name, bool value)
 
static void VoltMod::SetString (ProtoMessage *message, std::string_view name, const std::string &value)
 

Variables

static constexpr std::string_view VoltMod::ControllerClass = "vote_controller"
 
static constexpr int VoltMod::YesNoIssueIndex = 2
 
static constexpr int VoltMod::NoIssue = -1
 
static constexpr int VoltMod::AllTeams = -1
 
static constexpr int VoltMod::YesOption = 0
 
static constexpr int VoltMod::NoOption = 1
 
static constexpr std::string_view VoltMod::VoteStartMessage = "CCSUsrMsg_VoteStart"
 
static constexpr std::string_view VoltMod::VotePassMessage = "CCSUsrMsg_VotePass"
 
static constexpr std::string_view VoltMod::VoteFailedMessage = "CCSUsrMsg_VoteFailed"