MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / RuleAction_fromString

Function RuleAction_fromString

launcher/minecraft/Rule.cpp:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39#include "Rule.h"
40
41RuleAction RuleAction_fromString(QString name)
42{
43 if (name == "allow")
44 return Allow;
45 if (name == "disallow")
46 return Disallow;
47 return Defer;
48}
49
50QList<std::shared_ptr<Rule>> rulesFromJsonV4(const QJsonObject &objectWithRules)
51{

Callers 1

rulesFromJsonV4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected