This repository has been archived on 2022-09-04. You can view files and clone it, but cannot push or open issues or pull requests.
api/graphql/generated/generated.go

16755 lines
441 KiB
Go
Raw Normal View History

2020-06-02 15:45:21 +00:00
// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package generated
import (
"bytes"
"context"
"errors"
"strconv"
"sync"
"sync/atomic"
2020-06-03 15:21:28 +00:00
"time"
2020-06-02 15:45:21 +00:00
"github.com/99designs/gqlgen/graphql"
"github.com/99designs/gqlgen/graphql/introspection"
"github.com/tribalwarshelp/shared/models"
gqlparser "github.com/vektah/gqlparser/v2"
"github.com/vektah/gqlparser/v2/ast"
)
// region ************************** generated!.gotpl **************************
// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
return &executableSchema{
resolvers: cfg.Resolvers,
directives: cfg.Directives,
complexity: cfg.Complexity,
}
}
type Config struct {
Resolvers ResolverRoot
Directives DirectiveRoot
Complexity ComplexityRoot
}
type ResolverRoot interface {
LiveEnnoblement() LiveEnnoblementResolver
2020-06-02 15:45:21 +00:00
Player() PlayerResolver
Query() QueryResolver
Server() ServerResolver
2020-06-02 15:45:21 +00:00
Village() VillageResolver
}
type DirectiveRoot struct {
}
type ComplexityRoot struct {
Building struct {
BuildTime func(childComplexity int) int
BuildTimeFactor func(childComplexity int) int
Iron func(childComplexity int) int
IronFactor func(childComplexity int) int
MaxLevel func(childComplexity int) int
MinLevel func(childComplexity int) int
Pop func(childComplexity int) int
PopFactor func(childComplexity int) int
Stone func(childComplexity int) int
StoneFactor func(childComplexity int) int
Wood func(childComplexity int) int
WoodFactor func(childComplexity int) int
}
BuildingConfig struct {
Barracks func(childComplexity int) int
Farm func(childComplexity int) int
Garage func(childComplexity int) int
Hide func(childComplexity int) int
Iron func(childComplexity int) int
Main func(childComplexity int) int
Market func(childComplexity int) int
Place func(childComplexity int) int
Smith func(childComplexity int) int
Snob func(childComplexity int) int
Stable func(childComplexity int) int
Statue func(childComplexity int) int
Stone func(childComplexity int) int
Storage func(childComplexity int) int
Wall func(childComplexity int) int
Watchtower func(childComplexity int) int
Wood func(childComplexity int) int
}
2020-06-02 15:45:21 +00:00
LangVersion struct {
Host func(childComplexity int) int
Name func(childComplexity int) int
Tag func(childComplexity int) int
Timezone func(childComplexity int) int
}
2020-06-04 14:23:08 +00:00
LangVersionsList struct {
2020-06-02 15:45:21 +00:00
Items func(childComplexity int) int
Total func(childComplexity int) int
}
LiveEnnoblement struct {
EnnobledAt func(childComplexity int) int
NewOwner func(childComplexity int) int
OldOwner func(childComplexity int) int
Village func(childComplexity int) int
}
2020-06-02 15:45:21 +00:00
Player struct {
Exist func(childComplexity int) int
ID func(childComplexity int) int
Name func(childComplexity int) int
Points func(childComplexity int) int
Rank func(childComplexity int) int
RankAtt func(childComplexity int) int
RankDef func(childComplexity int) int
RankSup func(childComplexity int) int
RankTotal func(childComplexity int) int
ScoreAtt func(childComplexity int) int
ScoreDef func(childComplexity int) int
ScoreSup func(childComplexity int) int
ScoreTotal func(childComplexity int) int
TotalVillages func(childComplexity int) int
Tribe func(childComplexity int) int
}
2020-06-04 14:23:08 +00:00
PlayersList struct {
2020-06-02 15:45:21 +00:00
Items func(childComplexity int) int
Total func(childComplexity int) int
}
Query struct {
LangVersion func(childComplexity int, tag models.LanguageTag) int
LangVersions func(childComplexity int, filter *models.LangVersionFilter) int
LiveEnnoblements func(childComplexity int, server string) int
Player func(childComplexity int, server string, id int) int
Players func(childComplexity int, server string, filter *models.PlayerFilter) int
Server func(childComplexity int, key string) int
Servers func(childComplexity int, filter *models.ServerFilter) int
Tribe func(childComplexity int, server string, id int) int
Tribes func(childComplexity int, server string, filter *models.TribeFilter) int
Village func(childComplexity int, server string, id int) int
Villages func(childComplexity int, server string, filter *models.VillageFilter) int
2020-06-02 15:45:21 +00:00
}
Server struct {
BuildingConfig func(childComplexity int) int
Config func(childComplexity int) int
DataUpdatedAt func(childComplexity int) int
ID func(childComplexity int) int
Key func(childComplexity int) int
LangVersion func(childComplexity int) int
Status func(childComplexity int) int
UnitConfig func(childComplexity int) int
}
ServerConfig struct {
Ally func(childComplexity int) int
Build func(childComplexity int) int
Buildings func(childComplexity int) int
Commands func(childComplexity int) int
Coord func(childComplexity int) int
Game func(childComplexity int) int
Misc func(childComplexity int) int
Moral func(childComplexity int) int
Newbie func(childComplexity int) int
Night func(childComplexity int) int
Sitter func(childComplexity int) int
Sleep func(childComplexity int) int
Snob func(childComplexity int) int
Speed func(childComplexity int) int
UnitSpeed func(childComplexity int) int
Win func(childComplexity int) int
}
ServerConfigAlly struct {
AllytimeSupport func(childComplexity int) int
FixedAllies func(childComplexity int) int
Levels func(childComplexity int) int
Limit func(childComplexity int) int
NoHarm func(childComplexity int) int
NoJoin func(childComplexity int) int
NoLeave func(childComplexity int) int
NoOtherSupport func(childComplexity int) int
PointsMemberCount func(childComplexity int) int
WarsAutoacceptDays func(childComplexity int) int
WarsMemberRequirement func(childComplexity int) int
WarsPointsRequirement func(childComplexity int) int
XpRequirements func(childComplexity int) int
}
ServerConfigBuild struct {
Destroy func(childComplexity int) int
}
ServerConfigBuildings struct {
CustomBarracks func(childComplexity int) int
CustomChurch func(childComplexity int) int
CustomFarm func(childComplexity int) int
CustomGarage func(childComplexity int) int
CustomHide func(childComplexity int) int
CustomIron func(childComplexity int) int
CustomMain func(childComplexity int) int
CustomMarket func(childComplexity int) int
CustomPlace func(childComplexity int) int
CustomSmith func(childComplexity int) int
CustomSnob func(childComplexity int) int
CustomStable func(childComplexity int) int
CustomStatue func(childComplexity int) int
CustomStone func(childComplexity int) int
CustomStorage func(childComplexity int) int
CustomWall func(childComplexity int) int
CustomWatchtower func(childComplexity int) int
CustomWood func(childComplexity int) int
}
ServerConfigCommands struct {
CommandCancelTime func(childComplexity int) int
MillisArrival func(childComplexity int) int
}
ServerConfigCoord struct {
BonusNew func(childComplexity int) int
BonusVillages func(childComplexity int) int
EmptyVillages func(childComplexity int) int
Func func(childComplexity int) int
Inner func(childComplexity int) int
MapSize func(childComplexity int) int
NobleRestart func(childComplexity int) int
SelectStart func(childComplexity int) int
StartVillages func(childComplexity int) int
VillageMoveWait func(childComplexity int) int
}
ServerConfigGame struct {
Archer func(childComplexity int) int
BarbarianMaxPoints func(childComplexity int) int
BarbarianRise func(childComplexity int) int
BarbarianShrink func(childComplexity int) int
BaseProduction func(childComplexity int) int
BuildtimeFormula func(childComplexity int) int
Church func(childComplexity int) int
Event func(childComplexity int) int
FakeLimit func(childComplexity int) int
FarmLimit func(childComplexity int) int
Hauls func(childComplexity int) int
HaulsBase func(childComplexity int) int
HaulsMax func(childComplexity int) int
Knight func(childComplexity int) int
KnightNewItems func(childComplexity int) int
Stronghold func(childComplexity int) int
SuppressEvents func(childComplexity int) int
Tech func(childComplexity int) int
Watchtower func(childComplexity int) int
}
ServerConfigMisc struct {
KillRanking func(childComplexity int) int
TradeCancelTime func(childComplexity int) int
Tutorial func(childComplexity int) int
}
ServerConfigNewbie struct {
Days func(childComplexity int) int
Ratio func(childComplexity int) int
RatioDays func(childComplexity int) int
RemoveNewbieVillages func(childComplexity int) int
}
ServerConfigNight struct {
Active func(childComplexity int) int
DefFactor func(childComplexity int) int
EndHour func(childComplexity int) int
StartHour func(childComplexity int) int
}
ServerConfigSitter struct {
Allow func(childComplexity int) int
}
ServerConfigSleep struct {
Active func(childComplexity int) int
Delay func(childComplexity int) int
Max func(childComplexity int) int
MaxAwake func(childComplexity int) int
Min func(childComplexity int) int
MinAwake func(childComplexity int) int
WarnTime func(childComplexity int) int
}
ServerConfigSnob struct {
CheapRebuild func(childComplexity int) int
CoinIron func(childComplexity int) int
CoinStone func(childComplexity int) int
CoinWood func(childComplexity int) int
Factor func(childComplexity int) int
Gold func(childComplexity int) int
MaxDist func(childComplexity int) int
NoBarbConquer func(childComplexity int) int
Rise func(childComplexity int) int
}
ServerConfigWin struct {
Check func(childComplexity int) int
2020-06-02 15:45:21 +00:00
}
2020-06-04 14:23:08 +00:00
ServersList struct {
2020-06-02 15:45:21 +00:00
Items func(childComplexity int) int
Total func(childComplexity int) int
}
Tribe struct {
AllPoints func(childComplexity int) int
Exist func(childComplexity int) int
ID func(childComplexity int) int
Name func(childComplexity int) int
Points func(childComplexity int) int
Rank func(childComplexity int) int
RankAtt func(childComplexity int) int
RankDef func(childComplexity int) int
RankTotal func(childComplexity int) int
ScoreAtt func(childComplexity int) int
ScoreDef func(childComplexity int) int
ScoreTotal func(childComplexity int) int
Tag func(childComplexity int) int
TotalMembers func(childComplexity int) int
TotalVillages func(childComplexity int) int
}
2020-06-04 14:23:08 +00:00
TribesList struct {
2020-06-02 15:45:21 +00:00
Items func(childComplexity int) int
Total func(childComplexity int) int
}
Unit struct {
Attack func(childComplexity int) int
BuildTime func(childComplexity int) int
Carry func(childComplexity int) int
Defense func(childComplexity int) int
DefenseArcher func(childComplexity int) int
DefenseCavalry func(childComplexity int) int
Pop func(childComplexity int) int
Speed func(childComplexity int) int
}
UnitConfig struct {
Archer func(childComplexity int) int
Axe func(childComplexity int) int
Catapult func(childComplexity int) int
Heavy func(childComplexity int) int
Knight func(childComplexity int) int
Light func(childComplexity int) int
Marcher func(childComplexity int) int
Militia func(childComplexity int) int
Ram func(childComplexity int) int
Snob func(childComplexity int) int
Spear func(childComplexity int) int
Spy func(childComplexity int) int
Sword func(childComplexity int) int
}
2020-06-02 15:45:21 +00:00
Village struct {
Bonus func(childComplexity int) int
ID func(childComplexity int) int
Name func(childComplexity int) int
Player func(childComplexity int) int
Points func(childComplexity int) int
X func(childComplexity int) int
Y func(childComplexity int) int
}
2020-06-04 14:23:08 +00:00
VillagesList struct {
2020-06-02 15:45:21 +00:00
Items func(childComplexity int) int
Total func(childComplexity int) int
}
}
type LiveEnnoblementResolver interface {
Village(ctx context.Context, obj *models.LiveEnnoblement) (*models.Village, error)
NewOwner(ctx context.Context, obj *models.LiveEnnoblement) (*models.Player, error)
OldOwner(ctx context.Context, obj *models.LiveEnnoblement) (*models.Player, error)
2020-06-03 15:21:28 +00:00
}
2020-06-02 15:45:21 +00:00
type PlayerResolver interface {
Tribe(ctx context.Context, obj *models.Player) (*models.Tribe, error)
}
type QueryResolver interface {
2020-06-04 14:23:08 +00:00
LangVersions(ctx context.Context, filter *models.LangVersionFilter) (*LangVersionsList, error)
2020-06-02 15:45:21 +00:00
LangVersion(ctx context.Context, tag models.LanguageTag) (*models.LangVersion, error)
LiveEnnoblements(ctx context.Context, server string) ([]*models.LiveEnnoblement, error)
2020-06-04 14:23:08 +00:00
Players(ctx context.Context, server string, filter *models.PlayerFilter) (*PlayersList, error)
2020-06-02 15:45:21 +00:00
Player(ctx context.Context, server string, id int) (*models.Player, error)
2020-06-04 14:23:08 +00:00
Servers(ctx context.Context, filter *models.ServerFilter) (*ServersList, error)
2020-06-02 15:45:21 +00:00
Server(ctx context.Context, key string) (*models.Server, error)
2020-06-04 14:23:08 +00:00
Tribes(ctx context.Context, server string, filter *models.TribeFilter) (*TribesList, error)
2020-06-02 15:45:21 +00:00
Tribe(ctx context.Context, server string, id int) (*models.Tribe, error)
2020-06-04 14:23:08 +00:00
Villages(ctx context.Context, server string, filter *models.VillageFilter) (*VillagesList, error)
2020-06-02 15:45:21 +00:00
Village(ctx context.Context, server string, id int) (*models.Village, error)
}
type ServerResolver interface {
LangVersion(ctx context.Context, obj *models.Server) (*models.LangVersion, error)
DataUpdatedAt(ctx context.Context, obj *models.Server) (*time.Time, error)
}
2020-06-02 15:45:21 +00:00
type VillageResolver interface {
Player(ctx context.Context, obj *models.Village) (*models.Player, error)
}
type executableSchema struct {
resolvers ResolverRoot
directives DirectiveRoot
complexity ComplexityRoot
}
func (e *executableSchema) Schema() *ast.Schema {
return parsedSchema
}
func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
ec := executionContext{nil, e}
_ = ec
switch typeName + "." + field {
case "Building.buildTime":
if e.complexity.Building.BuildTime == nil {
break
}
return e.complexity.Building.BuildTime(childComplexity), true
case "Building.buildTimeFactor":
if e.complexity.Building.BuildTimeFactor == nil {
break
}
return e.complexity.Building.BuildTimeFactor(childComplexity), true
case "Building.iron":
if e.complexity.Building.Iron == nil {
break
}
return e.complexity.Building.Iron(childComplexity), true
case "Building.ironFactor":
if e.complexity.Building.IronFactor == nil {
break
}
return e.complexity.Building.IronFactor(childComplexity), true
case "Building.maxLevel":
if e.complexity.Building.MaxLevel == nil {
break
}
return e.complexity.Building.MaxLevel(childComplexity), true
case "Building.minLevel":
if e.complexity.Building.MinLevel == nil {
break
}
return e.complexity.Building.MinLevel(childComplexity), true
case "Building.pop":
if e.complexity.Building.Pop == nil {
break
}
return e.complexity.Building.Pop(childComplexity), true
case "Building.popFactor":
if e.complexity.Building.PopFactor == nil {
break
}
return e.complexity.Building.PopFactor(childComplexity), true
case "Building.stone":
if e.complexity.Building.Stone == nil {
break
}
return e.complexity.Building.Stone(childComplexity), true
case "Building.stoneFactor":
if e.complexity.Building.StoneFactor == nil {
break
}
return e.complexity.Building.StoneFactor(childComplexity), true
case "Building.wood":
if e.complexity.Building.Wood == nil {
break
}
return e.complexity.Building.Wood(childComplexity), true
case "Building.woodFactor":
if e.complexity.Building.WoodFactor == nil {
break
}
return e.complexity.Building.WoodFactor(childComplexity), true
case "BuildingConfig.barracks":
if e.complexity.BuildingConfig.Barracks == nil {
break
}
return e.complexity.BuildingConfig.Barracks(childComplexity), true
case "BuildingConfig.farm":
if e.complexity.BuildingConfig.Farm == nil {
break
}
return e.complexity.BuildingConfig.Farm(childComplexity), true
case "BuildingConfig.garage":
if e.complexity.BuildingConfig.Garage == nil {
break
}
return e.complexity.BuildingConfig.Garage(childComplexity), true
case "BuildingConfig.hide":
if e.complexity.BuildingConfig.Hide == nil {
break
}
return e.complexity.BuildingConfig.Hide(childComplexity), true
case "BuildingConfig.iron":
if e.complexity.BuildingConfig.Iron == nil {
break
}
return e.complexity.BuildingConfig.Iron(childComplexity), true
case "BuildingConfig.main":
if e.complexity.BuildingConfig.Main == nil {
break
}
return e.complexity.BuildingConfig.Main(childComplexity), true
case "BuildingConfig.market":
if e.complexity.BuildingConfig.Market == nil {
break
}
return e.complexity.BuildingConfig.Market(childComplexity), true
case "BuildingConfig.place":
if e.complexity.BuildingConfig.Place == nil {
break
}
return e.complexity.BuildingConfig.Place(childComplexity), true
case "BuildingConfig.smith":
if e.complexity.BuildingConfig.Smith == nil {
break
}
return e.complexity.BuildingConfig.Smith(childComplexity), true
case "BuildingConfig.snob":
if e.complexity.BuildingConfig.Snob == nil {
break
}
return e.complexity.BuildingConfig.Snob(childComplexity), true
case "BuildingConfig.stable":
if e.complexity.BuildingConfig.Stable == nil {
break
}
return e.complexity.BuildingConfig.Stable(childComplexity), true
case "BuildingConfig.statue":
if e.complexity.BuildingConfig.Statue == nil {
break
}
return e.complexity.BuildingConfig.Statue(childComplexity), true
case "BuildingConfig.stone":
if e.complexity.BuildingConfig.Stone == nil {
break
}
return e.complexity.BuildingConfig.Stone(childComplexity), true
case "BuildingConfig.storage":
if e.complexity.BuildingConfig.Storage == nil {
break
}
return e.complexity.BuildingConfig.Storage(childComplexity), true
case "BuildingConfig.wall":
if e.complexity.BuildingConfig.Wall == nil {
break
}
return e.complexity.BuildingConfig.Wall(childComplexity), true
case "BuildingConfig.watchtower":
if e.complexity.BuildingConfig.Watchtower == nil {
break
}
return e.complexity.BuildingConfig.Watchtower(childComplexity), true
case "BuildingConfig.wood":
if e.complexity.BuildingConfig.Wood == nil {
break
}
return e.complexity.BuildingConfig.Wood(childComplexity), true
2020-06-02 15:45:21 +00:00
case "LangVersion.host":
if e.complexity.LangVersion.Host == nil {
break
}
return e.complexity.LangVersion.Host(childComplexity), true
case "LangVersion.name":
if e.complexity.LangVersion.Name == nil {
break
}
return e.complexity.LangVersion.Name(childComplexity), true
case "LangVersion.tag":
if e.complexity.LangVersion.Tag == nil {
break
}
return e.complexity.LangVersion.Tag(childComplexity), true
case "LangVersion.timezone":
if e.complexity.LangVersion.Timezone == nil {
break
}
return e.complexity.LangVersion.Timezone(childComplexity), true
2020-06-04 14:23:08 +00:00
case "LangVersionsList.items":
if e.complexity.LangVersionsList.Items == nil {
2020-06-02 15:45:21 +00:00
break
}
2020-06-04 14:23:08 +00:00
return e.complexity.LangVersionsList.Items(childComplexity), true
2020-06-02 15:45:21 +00:00
2020-06-04 14:23:08 +00:00
case "LangVersionsList.total":
if e.complexity.LangVersionsList.Total == nil {
2020-06-02 15:45:21 +00:00
break
}
2020-06-04 14:23:08 +00:00
return e.complexity.LangVersionsList.Total(childComplexity), true
2020-06-02 15:45:21 +00:00
case "LiveEnnoblement.ennobledAt":
if e.complexity.LiveEnnoblement.EnnobledAt == nil {
break
}
return e.complexity.LiveEnnoblement.EnnobledAt(childComplexity), true
case "LiveEnnoblement.newOwner":
if e.complexity.LiveEnnoblement.NewOwner == nil {
break
}
return e.complexity.LiveEnnoblement.NewOwner(childComplexity), true
case "LiveEnnoblement.oldOwner":
if e.complexity.LiveEnnoblement.OldOwner == nil {
break
}
return e.complexity.LiveEnnoblement.OldOwner(childComplexity), true
case "LiveEnnoblement.village":
if e.complexity.LiveEnnoblement.Village == nil {
break
}
return e.complexity.LiveEnnoblement.Village(childComplexity), true
2020-06-02 15:45:21 +00:00
case "Player.exist":
if e.complexity.Player.Exist == nil {
break
}
return e.complexity.Player.Exist(childComplexity), true
case "Player.id":
if e.complexity.Player.ID == nil {
break
}
return e.complexity.Player.ID(childComplexity), true
case "Player.name":
if e.complexity.Player.Name == nil {
break
}
return e.complexity.Player.Name(childComplexity), true
case "Player.points":
if e.complexity.Player.Points == nil {
break
}
return e.complexity.Player.Points(childComplexity), true
case "Player.rank":
if e.complexity.Player.Rank == nil {
break
}
return e.complexity.Player.Rank(childComplexity), true
case "Player.rankAtt":
if e.complexity.Player.RankAtt == nil {
break
}
return e.complexity.Player.RankAtt(childComplexity), true
case "Player.rankDef":
if e.complexity.Player.RankDef == nil {
break
}
return e.complexity.Player.RankDef(childComplexity), true
case "Player.rankSup":
if e.complexity.Player.RankSup == nil {
break
}
return e.complexity.Player.RankSup(childComplexity), true
case "Player.rankTotal":
if e.complexity.Player.RankTotal == nil {
break
}
return e.complexity.Player.RankTotal(childComplexity), true
case "Player.scoreAtt":
if e.complexity.Player.ScoreAtt == nil {
break
}
return e.complexity.Player.ScoreAtt(childComplexity), true
case "Player.scoreDef":
if e.complexity.Player.ScoreDef == nil {
break
}
return e.complexity.Player.ScoreDef(childComplexity), true
case "Player.scoreSup":
if e.complexity.Player.ScoreSup == nil {
break
}
return e.complexity.Player.ScoreSup(childComplexity), true
case "Player.scoreTotal":
if e.complexity.Player.ScoreTotal == nil {
break
}
return e.complexity.Player.ScoreTotal(childComplexity), true
case "Player.totalVillages":
if e.complexity.Player.TotalVillages == nil {
break
}
return e.complexity.Player.TotalVillages(childComplexity), true
case "Player.tribe":
if e.complexity.Player.Tribe == nil {
break
}
return e.complexity.Player.Tribe(childComplexity), true
2020-06-04 14:23:08 +00:00
case "PlayersList.items":
if e.complexity.PlayersList.Items == nil {
2020-06-02 15:45:21 +00:00
break
}
2020-06-04 14:23:08 +00:00
return e.complexity.PlayersList.Items(childComplexity), true
2020-06-02 15:45:21 +00:00
2020-06-04 14:23:08 +00:00
case "PlayersList.total":
if e.complexity.PlayersList.Total == nil {
2020-06-02 15:45:21 +00:00
break
}
2020-06-04 14:23:08 +00:00
return e.complexity.PlayersList.Total(childComplexity), true
2020-06-02 15:45:21 +00:00
case "Query.langVersion":
if e.complexity.Query.LangVersion == nil {
break
}
args, err := ec.field_Query_langVersion_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.LangVersion(childComplexity, args["tag"].(models.LanguageTag)), true
case "Query.langVersions":
if e.complexity.Query.LangVersions == nil {
break
}
args, err := ec.field_Query_langVersions_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.LangVersions(childComplexity, args["filter"].(*models.LangVersionFilter)), true
case "Query.liveEnnoblements":
if e.complexity.Query.LiveEnnoblements == nil {
break
}
args, err := ec.field_Query_liveEnnoblements_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.LiveEnnoblements(childComplexity, args["server"].(string)), true
2020-06-02 15:45:21 +00:00
case "Query.player":
if e.complexity.Query.Player == nil {
break
}
args, err := ec.field_Query_player_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.Player(childComplexity, args["server"].(string), args["id"].(int)), true
case "Query.players":
if e.complexity.Query.Players == nil {
break
}
args, err := ec.field_Query_players_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.Players(childComplexity, args["server"].(string), args["filter"].(*models.PlayerFilter)), true
case "Query.server":
if e.complexity.Query.Server == nil {
break
}
args, err := ec.field_Query_server_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.Server(childComplexity, args["key"].(string)), true
case "Query.servers":
if e.complexity.Query.Servers == nil {
break
}
args, err := ec.field_Query_servers_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.Servers(childComplexity, args["filter"].(*models.ServerFilter)), true
case "Query.tribe":
if e.complexity.Query.Tribe == nil {
break
}
args, err := ec.field_Query_tribe_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.Tribe(childComplexity, args["server"].(string), args["id"].(int)), true
case "Query.tribes":
if e.complexity.Query.Tribes == nil {
break
}
args, err := ec.field_Query_tribes_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.Tribes(childComplexity, args["server"].(string), args["filter"].(*models.TribeFilter)), true
case "Query.village":
if e.complexity.Query.Village == nil {
break
}
args, err := ec.field_Query_village_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.Village(childComplexity, args["server"].(string), args["id"].(int)), true
case "Query.villages":
if e.complexity.Query.Villages == nil {
break
}
args, err := ec.field_Query_villages_args(context.TODO(), rawArgs)
if err != nil {
return 0, false
}
return e.complexity.Query.Villages(childComplexity, args["server"].(string), args["filter"].(*models.VillageFilter)), true
case "Server.buildingConfig":
if e.complexity.Server.BuildingConfig == nil {
break
}
return e.complexity.Server.BuildingConfig(childComplexity), true
case "Server.config":
if e.complexity.Server.Config == nil {
break
}
return e.complexity.Server.Config(childComplexity), true
case "Server.dataUpdatedAt":
if e.complexity.Server.DataUpdatedAt == nil {
break
}
return e.complexity.Server.DataUpdatedAt(childComplexity), true
2020-06-02 15:45:21 +00:00
case "Server.id":
if e.complexity.Server.ID == nil {
break
}
return e.complexity.Server.ID(childComplexity), true
case "Server.key":
if e.complexity.Server.Key == nil {
break
}
return e.complexity.Server.Key(childComplexity), true
case "Server.langVersion":
if e.complexity.Server.LangVersion == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.Server.LangVersion(childComplexity), true
2020-06-02 15:45:21 +00:00
case "Server.status":
if e.complexity.Server.Status == nil {
break
}
return e.complexity.Server.Status(childComplexity), true
case "Server.unitConfig":
if e.complexity.Server.UnitConfig == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.Server.UnitConfig(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.ally":
if e.complexity.ServerConfig.Ally == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Ally(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.build":
if e.complexity.ServerConfig.Build == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Build(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.buildings":
if e.complexity.ServerConfig.Buildings == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Buildings(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.commands":
if e.complexity.ServerConfig.Commands == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Commands(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.coord":
if e.complexity.ServerConfig.Coord == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Coord(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.game":
if e.complexity.ServerConfig.Game == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Game(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.misc":
if e.complexity.ServerConfig.Misc == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Misc(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.moral":
if e.complexity.ServerConfig.Moral == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Moral(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.newbie":
if e.complexity.ServerConfig.Newbie == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Newbie(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.night":
if e.complexity.ServerConfig.Night == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Night(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.sitter":
if e.complexity.ServerConfig.Sitter == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Sitter(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.sleep":
if e.complexity.ServerConfig.Sleep == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Sleep(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.snob":
if e.complexity.ServerConfig.Snob == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Snob(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.speed":
if e.complexity.ServerConfig.Speed == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Speed(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.unitSpeed":
if e.complexity.ServerConfig.UnitSpeed == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.UnitSpeed(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfig.win":
if e.complexity.ServerConfig.Win == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfig.Win(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.allytimeSupport":
if e.complexity.ServerConfigAlly.AllytimeSupport == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfigAlly.AllytimeSupport(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.fixedAllies":
if e.complexity.ServerConfigAlly.FixedAllies == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfigAlly.FixedAllies(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.levels":
if e.complexity.ServerConfigAlly.Levels == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfigAlly.Levels(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.limit":
if e.complexity.ServerConfigAlly.Limit == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfigAlly.Limit(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.noHarm":
if e.complexity.ServerConfigAlly.NoHarm == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfigAlly.NoHarm(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.noJoin":
if e.complexity.ServerConfigAlly.NoJoin == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfigAlly.NoJoin(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.noLeave":
if e.complexity.ServerConfigAlly.NoLeave == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfigAlly.NoLeave(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.noOtherSupport":
if e.complexity.ServerConfigAlly.NoOtherSupport == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfigAlly.NoOtherSupport(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.pointsMemberCount":
if e.complexity.ServerConfigAlly.PointsMemberCount == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfigAlly.PointsMemberCount(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.warsAutoacceptDays":
if e.complexity.ServerConfigAlly.WarsAutoacceptDays == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfigAlly.WarsAutoacceptDays(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.warsMemberRequirement":
if e.complexity.ServerConfigAlly.WarsMemberRequirement == nil {
2020-06-02 15:45:21 +00:00
break
}
return e.complexity.ServerConfigAlly.WarsMemberRequirement(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.warsPointsRequirement":
if e.complexity.ServerConfigAlly.WarsPointsRequirement == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigAlly.WarsPointsRequirement(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigAlly.xpRequirements":
if e.complexity.ServerConfigAlly.XpRequirements == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigAlly.XpRequirements(childComplexity), true
case "ServerConfigBuild.destroy":
if e.complexity.ServerConfigBuild.Destroy == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigBuild.Destroy(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customBarracks":
if e.complexity.ServerConfigBuildings.CustomBarracks == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomBarracks(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customChurch":
if e.complexity.ServerConfigBuildings.CustomChurch == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomChurch(childComplexity), true
2020-06-03 15:21:28 +00:00
case "ServerConfigBuildings.customFarm":
if e.complexity.ServerConfigBuildings.CustomFarm == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomFarm(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customGarage":
if e.complexity.ServerConfigBuildings.CustomGarage == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomGarage(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customHide":
if e.complexity.ServerConfigBuildings.CustomHide == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomHide(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customIron":
if e.complexity.ServerConfigBuildings.CustomIron == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomIron(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customMain":
if e.complexity.ServerConfigBuildings.CustomMain == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomMain(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customMarket":
if e.complexity.ServerConfigBuildings.CustomMarket == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomMarket(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customPlace":
if e.complexity.ServerConfigBuildings.CustomPlace == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomPlace(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customSmith":
if e.complexity.ServerConfigBuildings.CustomSmith == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomSmith(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customSnob":
if e.complexity.ServerConfigBuildings.CustomSnob == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomSnob(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customStable":
if e.complexity.ServerConfigBuildings.CustomStable == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomStable(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customStatue":
if e.complexity.ServerConfigBuildings.CustomStatue == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomStatue(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customStone":
if e.complexity.ServerConfigBuildings.CustomStone == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomStone(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customStorage":
if e.complexity.ServerConfigBuildings.CustomStorage == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomStorage(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customWall":
if e.complexity.ServerConfigBuildings.CustomWall == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomWall(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customWatchtower":
if e.complexity.ServerConfigBuildings.CustomWatchtower == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomWatchtower(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigBuildings.customWood":
if e.complexity.ServerConfigBuildings.CustomWood == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigBuildings.CustomWood(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigCommands.commandCancelTime":
if e.complexity.ServerConfigCommands.CommandCancelTime == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigCommands.CommandCancelTime(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigCommands.millisArrival":
if e.complexity.ServerConfigCommands.MillisArrival == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigCommands.MillisArrival(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigCoord.bonusNew":
if e.complexity.ServerConfigCoord.BonusNew == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigCoord.BonusNew(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigCoord.bonusVillages":
if e.complexity.ServerConfigCoord.BonusVillages == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigCoord.BonusVillages(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigCoord.emptyVillages":
if e.complexity.ServerConfigCoord.EmptyVillages == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigCoord.EmptyVillages(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigCoord.func":
if e.complexity.ServerConfigCoord.Func == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigCoord.Func(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigCoord.inner":
if e.complexity.ServerConfigCoord.Inner == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigCoord.Inner(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigCoord.mapSize":
if e.complexity.ServerConfigCoord.MapSize == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigCoord.MapSize(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigCoord.nobleRestart":
if e.complexity.ServerConfigCoord.NobleRestart == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigCoord.NobleRestart(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigCoord.selectStart":
if e.complexity.ServerConfigCoord.SelectStart == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigCoord.SelectStart(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigCoord.startVillages":
if e.complexity.ServerConfigCoord.StartVillages == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigCoord.StartVillages(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigCoord.villageMoveWait":
if e.complexity.ServerConfigCoord.VillageMoveWait == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigCoord.VillageMoveWait(childComplexity), true
2020-06-18 15:15:31 +00:00
case "ServerConfigGame.archer":
if e.complexity.ServerConfigGame.Archer == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigGame.Archer(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigGame.barbarianMaxPoints":
if e.complexity.ServerConfigGame.BarbarianMaxPoints == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigGame.BarbarianMaxPoints(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigGame.barbarianRise":
if e.complexity.ServerConfigGame.BarbarianRise == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigGame.BarbarianRise(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigGame.barbarianShrink":
if e.complexity.ServerConfigGame.BarbarianShrink == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.BarbarianShrink(childComplexity), true
case "ServerConfigGame.baseProduction":
if e.complexity.ServerConfigGame.BaseProduction == nil {
break
2020-06-03 15:21:28 +00:00
}
return e.complexity.ServerConfigGame.BaseProduction(childComplexity), true
case "ServerConfigGame.buildtimeFormula":
if e.complexity.ServerConfigGame.BuildtimeFormula == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.BuildtimeFormula(childComplexity), true
case "ServerConfigGame.church":
if e.complexity.ServerConfigGame.Church == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.Church(childComplexity), true
case "ServerConfigGame.event":
if e.complexity.ServerConfigGame.Event == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.Event(childComplexity), true
case "ServerConfigGame.fakeLimit":
if e.complexity.ServerConfigGame.FakeLimit == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.FakeLimit(childComplexity), true
case "ServerConfigGame.farmLimit":
if e.complexity.ServerConfigGame.FarmLimit == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.FarmLimit(childComplexity), true
case "ServerConfigGame.hauls":
if e.complexity.ServerConfigGame.Hauls == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.Hauls(childComplexity), true
case "ServerConfigGame.haulsBase":
if e.complexity.ServerConfigGame.HaulsBase == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.HaulsBase(childComplexity), true
case "ServerConfigGame.haulsMax":
if e.complexity.ServerConfigGame.HaulsMax == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.HaulsMax(childComplexity), true
case "ServerConfigGame.knight":
if e.complexity.ServerConfigGame.Knight == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.Knight(childComplexity), true
case "ServerConfigGame.knightNewItems":
if e.complexity.ServerConfigGame.KnightNewItems == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.KnightNewItems(childComplexity), true
case "ServerConfigGame.stronghold":
if e.complexity.ServerConfigGame.Stronghold == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.Stronghold(childComplexity), true
case "ServerConfigGame.suppressEvents":
if e.complexity.ServerConfigGame.SuppressEvents == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.SuppressEvents(childComplexity), true
case "ServerConfigGame.tech":
if e.complexity.ServerConfigGame.Tech == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.Tech(childComplexity), true
case "ServerConfigGame.watchtower":
if e.complexity.ServerConfigGame.Watchtower == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigGame.Watchtower(childComplexity), true
case "ServerConfigMisc.killRanking":
if e.complexity.ServerConfigMisc.KillRanking == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigMisc.KillRanking(childComplexity), true
case "ServerConfigMisc.tradeCancelTime":
if e.complexity.ServerConfigMisc.TradeCancelTime == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigMisc.TradeCancelTime(childComplexity), true
case "ServerConfigMisc.tutorial":
if e.complexity.ServerConfigMisc.Tutorial == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigMisc.Tutorial(childComplexity), true
case "ServerConfigNewbie.days":
if e.complexity.ServerConfigNewbie.Days == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigNewbie.Days(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigNewbie.ratio":
if e.complexity.ServerConfigNewbie.Ratio == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigNewbie.Ratio(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigNewbie.ratioDays":
if e.complexity.ServerConfigNewbie.RatioDays == nil {
break
}
2020-06-02 15:45:21 +00:00
return e.complexity.ServerConfigNewbie.RatioDays(childComplexity), true
case "ServerConfigNewbie.removeNewbieVillages":
if e.complexity.ServerConfigNewbie.RemoveNewbieVillages == nil {
break
2020-06-03 15:21:28 +00:00
}
return e.complexity.ServerConfigNewbie.RemoveNewbieVillages(childComplexity), true
2020-06-03 15:21:28 +00:00
case "ServerConfigNight.active":
if e.complexity.ServerConfigNight.Active == nil {
break
2020-06-03 15:21:28 +00:00
}
return e.complexity.ServerConfigNight.Active(childComplexity), true
2020-06-03 15:21:28 +00:00
case "ServerConfigNight.defFactor":
if e.complexity.ServerConfigNight.DefFactor == nil {
break
2020-06-03 15:21:28 +00:00
}
return e.complexity.ServerConfigNight.DefFactor(childComplexity), true
2020-06-03 15:21:28 +00:00
case "ServerConfigNight.endHour":
if e.complexity.ServerConfigNight.EndHour == nil {
break
2020-06-03 15:21:28 +00:00
}
return e.complexity.ServerConfigNight.EndHour(childComplexity), true
case "ServerConfigNight.startHour":
if e.complexity.ServerConfigNight.StartHour == nil {
break
2020-06-03 15:21:28 +00:00
}
return e.complexity.ServerConfigNight.StartHour(childComplexity), true
case "ServerConfigSitter.allow":
if e.complexity.ServerConfigSitter.Allow == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSitter.Allow(childComplexity), true
case "ServerConfigSleep.active":
if e.complexity.ServerConfigSleep.Active == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSleep.Active(childComplexity), true
case "ServerConfigSleep.delay":
if e.complexity.ServerConfigSleep.Delay == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSleep.Delay(childComplexity), true
case "ServerConfigSleep.max":
if e.complexity.ServerConfigSleep.Max == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSleep.Max(childComplexity), true
case "ServerConfigSleep.maxAwake":
if e.complexity.ServerConfigSleep.MaxAwake == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSleep.MaxAwake(childComplexity), true
case "ServerConfigSleep.min":
if e.complexity.ServerConfigSleep.Min == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSleep.Min(childComplexity), true
case "ServerConfigSleep.minAwake":
if e.complexity.ServerConfigSleep.MinAwake == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSleep.MinAwake(childComplexity), true
case "ServerConfigSleep.warnTime":
if e.complexity.ServerConfigSleep.WarnTime == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSleep.WarnTime(childComplexity), true
case "ServerConfigSnob.cheapRebuild":
if e.complexity.ServerConfigSnob.CheapRebuild == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSnob.CheapRebuild(childComplexity), true
2020-06-02 15:45:21 +00:00
case "ServerConfigSnob.coinIron":
if e.complexity.ServerConfigSnob.CoinIron == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSnob.CoinIron(childComplexity), true
case "ServerConfigSnob.coinStone":
if e.complexity.ServerConfigSnob.CoinStone == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSnob.CoinStone(childComplexity), true
case "ServerConfigSnob.coinWood":
if e.complexity.ServerConfigSnob.CoinWood == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSnob.CoinWood(childComplexity), true
case "ServerConfigSnob.factor":
if e.complexity.ServerConfigSnob.Factor == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSnob.Factor(childComplexity), true
case "ServerConfigSnob.gold":
if e.complexity.ServerConfigSnob.Gold == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSnob.Gold(childComplexity), true
case "ServerConfigSnob.maxDist":
if e.complexity.ServerConfigSnob.MaxDist == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSnob.MaxDist(childComplexity), true
case "ServerConfigSnob.noBarbConquer":
if e.complexity.ServerConfigSnob.NoBarbConquer == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSnob.NoBarbConquer(childComplexity), true
case "ServerConfigSnob.rise":
if e.complexity.ServerConfigSnob.Rise == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigSnob.Rise(childComplexity), true
case "ServerConfigWin.check":
if e.complexity.ServerConfigWin.Check == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServerConfigWin.Check(childComplexity), true
case "ServersList.items":
if e.complexity.ServersList.Items == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServersList.Items(childComplexity), true
case "ServersList.total":
if e.complexity.ServersList.Total == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.ServersList.Total(childComplexity), true
case "Tribe.allPoints":
if e.complexity.Tribe.AllPoints == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.AllPoints(childComplexity), true
case "Tribe.exist":
if e.complexity.Tribe.Exist == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.Exist(childComplexity), true
case "Tribe.id":
if e.complexity.Tribe.ID == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.ID(childComplexity), true
case "Tribe.name":
if e.complexity.Tribe.Name == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.Name(childComplexity), true
case "Tribe.points":
if e.complexity.Tribe.Points == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.Points(childComplexity), true
case "Tribe.rank":
if e.complexity.Tribe.Rank == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.Rank(childComplexity), true
case "Tribe.rankAtt":
if e.complexity.Tribe.RankAtt == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.RankAtt(childComplexity), true
case "Tribe.rankDef":
if e.complexity.Tribe.RankDef == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.RankDef(childComplexity), true
case "Tribe.rankTotal":
if e.complexity.Tribe.RankTotal == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.RankTotal(childComplexity), true
case "Tribe.scoreAtt":
if e.complexity.Tribe.ScoreAtt == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.ScoreAtt(childComplexity), true
case "Tribe.scoreDef":
if e.complexity.Tribe.ScoreDef == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.ScoreDef(childComplexity), true
case "Tribe.scoreTotal":
if e.complexity.Tribe.ScoreTotal == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.ScoreTotal(childComplexity), true
case "Tribe.tag":
if e.complexity.Tribe.Tag == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.Tag(childComplexity), true
case "Tribe.totalMembers":
if e.complexity.Tribe.TotalMembers == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.TotalMembers(childComplexity), true
case "Tribe.totalVillages":
if e.complexity.Tribe.TotalVillages == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Tribe.TotalVillages(childComplexity), true
case "TribesList.items":
if e.complexity.TribesList.Items == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.TribesList.Items(childComplexity), true
case "TribesList.total":
if e.complexity.TribesList.Total == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.TribesList.Total(childComplexity), true
case "Unit.attack":
if e.complexity.Unit.Attack == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Unit.Attack(childComplexity), true
case "Unit.buildTime":
if e.complexity.Unit.BuildTime == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Unit.BuildTime(childComplexity), true
case "Unit.carry":
if e.complexity.Unit.Carry == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Unit.Carry(childComplexity), true
2020-06-02 15:45:21 +00:00
case "Unit.defense":
if e.complexity.Unit.Defense == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Unit.Defense(childComplexity), true
2020-06-02 15:45:21 +00:00
case "Unit.defenseArcher":
if e.complexity.Unit.DefenseArcher == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Unit.DefenseArcher(childComplexity), true
case "Unit.defenseCavalry":
if e.complexity.Unit.DefenseCavalry == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Unit.DefenseCavalry(childComplexity), true
case "Unit.pop":
if e.complexity.Unit.Pop == nil {
break
2020-06-03 15:21:28 +00:00
}
return e.complexity.Unit.Pop(childComplexity), true
2020-06-03 15:21:28 +00:00
case "Unit.speed":
if e.complexity.Unit.Speed == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Unit.Speed(childComplexity), true
case "UnitConfig.archer":
if e.complexity.UnitConfig.Archer == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Archer(childComplexity), true
case "UnitConfig.axe":
if e.complexity.UnitConfig.Axe == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Axe(childComplexity), true
2020-06-02 15:45:21 +00:00
case "UnitConfig.catapult":
if e.complexity.UnitConfig.Catapult == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Catapult(childComplexity), true
case "UnitConfig.heavy":
if e.complexity.UnitConfig.Heavy == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Heavy(childComplexity), true
case "UnitConfig.knight":
if e.complexity.UnitConfig.Knight == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Knight(childComplexity), true
2020-06-02 15:45:21 +00:00
case "UnitConfig.light":
if e.complexity.UnitConfig.Light == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Light(childComplexity), true
case "UnitConfig.marcher":
if e.complexity.UnitConfig.Marcher == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Marcher(childComplexity), true
case "UnitConfig.militia":
if e.complexity.UnitConfig.Militia == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Militia(childComplexity), true
2020-06-02 15:45:21 +00:00
case "UnitConfig.ram":
if e.complexity.UnitConfig.Ram == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Ram(childComplexity), true
case "UnitConfig.snob":
if e.complexity.UnitConfig.Snob == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Snob(childComplexity), true
case "UnitConfig.spear":
if e.complexity.UnitConfig.Spear == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Spear(childComplexity), true
2020-06-02 15:45:21 +00:00
case "UnitConfig.spy":
if e.complexity.UnitConfig.Spy == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Spy(childComplexity), true
case "UnitConfig.sword":
if e.complexity.UnitConfig.Sword == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.UnitConfig.Sword(childComplexity), true
case "Village.bonus":
if e.complexity.Village.Bonus == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Village.Bonus(childComplexity), true
2020-06-02 15:45:21 +00:00
case "Village.id":
if e.complexity.Village.ID == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Village.ID(childComplexity), true
2020-06-02 15:45:21 +00:00
case "Village.name":
if e.complexity.Village.Name == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Village.Name(childComplexity), true
2020-06-02 15:45:21 +00:00
case "Village.player":
if e.complexity.Village.Player == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Village.Player(childComplexity), true
case "Village.points":
if e.complexity.Village.Points == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Village.Points(childComplexity), true
case "Village.x":
if e.complexity.Village.X == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Village.X(childComplexity), true
case "Village.y":
if e.complexity.Village.Y == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.Village.Y(childComplexity), true
case "VillagesList.items":
if e.complexity.VillagesList.Items == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.VillagesList.Items(childComplexity), true
case "VillagesList.total":
if e.complexity.VillagesList.Total == nil {
break
2020-06-02 15:45:21 +00:00
}
return e.complexity.VillagesList.Total(childComplexity), true
2020-06-02 15:45:21 +00:00
}
return 0, false
2020-06-02 15:45:21 +00:00
}
func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
rc := graphql.GetOperationContext(ctx)
ec := executionContext{rc, e}
first := true
switch rc.Operation.Operation {
case ast.Query:
return func(ctx context.Context) *graphql.Response {
if !first {
return nil
}
first = false
data := ec._Query(ctx, rc.Operation.SelectionSet)
var buf bytes.Buffer
data.MarshalGQL(&buf)
return &graphql.Response{
Data: buf.Bytes(),
}
2020-06-02 15:45:21 +00:00
}
default:
return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
2020-06-02 15:45:21 +00:00
}
}
type executionContext struct {
*graphql.OperationContext
*executableSchema
}
func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
if ec.DisableIntrospection {
return nil, errors.New("introspection disabled")
2020-06-02 15:45:21 +00:00
}
return introspection.WrapSchema(parsedSchema), nil
}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
if ec.DisableIntrospection {
return nil, errors.New("introspection disabled")
2020-06-02 15:45:21 +00:00
}
return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
2020-06-02 15:45:21 +00:00
}
var sources = []*ast.Source{
&ast.Source{Name: "schema/building_config.graphql", Input: `type Building {
maxLevel: Int!
minLevel: Int!
wood: Int!
stone: Int!
iron: Int!
pop: Int!
woodFactor: Float!
stoneFactor: Float!
ironFactor: Float!
popFactor: Float!
buildTime: Float!
buildTimeFactor: Float!
}
type BuildingConfig {
main: Building!
barracks: Building!
stable: Building!
garage: Building!
watchtower: Building!
snob: Building!
smith: Building!
place: Building!
statue: Building!
market: Building!
wood: Building!
stone: Building!
iron: Building!
farm: Building!
storage: Building!
hide: Building!
wall: Building!
}
`, BuiltIn: false},
&ast.Source{Name: "schema/directives.graphql", Input: `directive @goField(
forceResolver: Boolean
name: String
) on INPUT_FIELD_DEFINITION | FIELD_DEFINITION
`, BuiltIn: false},
&ast.Source{Name: "schema/lang_version.graphql", Input: `enum LanguageTag {
PL
EN
DE
}
2020-06-02 15:45:21 +00:00
type LangVersion {
tag: LanguageTag!
name: String!
host: String!
timezone: String!
2020-06-02 15:45:21 +00:00
}
input LangVersionFilter {
tag: [LanguageTag!]
tagNEQ: [LanguageTag!]
2020-06-02 15:45:21 +00:00
host: [String!]
hostNEQ: [String!]
hostMATCH: String
hostIEQ: String
2020-06-02 15:45:21 +00:00
offset: Int
limit: Int
sort: String
}
2020-06-02 15:45:21 +00:00
type LangVersionsList {
items: [LangVersion!]
total: Int!
2020-06-02 15:45:21 +00:00
}
extend type Query {
langVersions(filter: LangVersionFilter): LangVersionsList!
langVersion(tag: LanguageTag!): LangVersion
}
`, BuiltIn: false},
&ast.Source{Name: "schema/live_ennoblement.graphql", Input: `type LiveEnnoblement {
village: Village @goField(forceResolver: true)
newOwner: Player @goField(forceResolver: true)
oldOwner: Player @goField(forceResolver: true)
ennobledAt: Time!
}
extend type Query {
liveEnnoblements(server: String!): [LiveEnnoblement!]
}
`, BuiltIn: false},
&ast.Source{Name: "schema/player.graphql", Input: `type Player {
id: Int!
name: String!
totalVillages: Int!
points: Int!
rank: Int!
exist: Boolean!
rankAtt: Int!
scoreAtt: Int!
rankDef: Int!
scoreDef: Int!
rankSup: Int!
scoreSup: Int!
rankTotal: Int!
scoreTotal: Int!
tribe: Tribe @goField(forceResolver: true)
}
2020-06-02 15:45:21 +00:00
type PlayersList {
items: [Player!]
total: Int!
2020-06-02 15:45:21 +00:00
}
input PlayerFilter {
id: [Int!]
idNEQ: [Int!]
2020-06-02 15:45:21 +00:00
exist: Boolean
2020-06-02 15:45:21 +00:00
name: [String!]
nameNEQ: [String!]
nameMATCH: String
nameIEQ: String
2020-06-02 15:45:21 +00:00
totalVillages: Int
totalVillagesGT: Int
totalVillagesGTE: Int
totalVillagesLT: Int
totalVillagesLTE: Int
2020-06-02 15:45:21 +00:00
points: Int
pointsGT: Int
pointsGTE: Int
pointsLT: Int
pointsLTE: Int
2020-06-02 15:45:21 +00:00
rank: Int
rankGT: Int
rankGTE: Int
rankLT: Int
rankLTE: Int
2020-06-02 15:45:21 +00:00
rankAtt: Int
rankAttGT: Int
rankAttGTE: Int
rankAttLT: Int
rankAttLTE: Int
2020-06-02 15:45:21 +00:00
scoreAtt: Int
scoreAttGT: Int
scoreAttGTE: Int
scoreAttLT: Int
scoreAttLTE: Int
2020-06-02 15:45:21 +00:00
rankDef: Int
rankDefGT: Int
rankDefGTE: Int
rankDefLT: Int
rankDefLTE: Int
2020-06-02 15:45:21 +00:00
scoreDef: Int
scoreDefGT: Int
scoreDefGTE: Int
scoreDefLT: Int
scoreDefLTE: Int
rankSup: Int
rankSupGT: Int
rankSupGTE: Int
rankSupLT: Int
rankSupLTE: Int
scoreSup: Int
scoreSupGT: Int
scoreSupGTE: Int
scoreSupLT: Int
scoreSupLTE: Int
rankTotal: Int
rankTotalGT: Int
rankTotalGTE: Int
rankTotalLT: Int
rankTotalLTE: Int
scoreTotal: Int
scoreTotalGT: Int
scoreTotalGTE: Int
scoreTotalLT: Int
scoreTotalLTE: Int
tribeID: [Int!]
offset: Int
limit: Int
sort: String
2020-06-02 15:45:21 +00:00
}
extend type Query {
players(server: String!, filter: PlayerFilter): PlayersList!
player(server: String!, id: Int!): Player
}
`, BuiltIn: false},
&ast.Source{Name: "schema/scalars.graphql", Input: `scalar Time
`, BuiltIn: false},
&ast.Source{Name: "schema/server.graphql", Input: `enum ServerStatus {
OPEN
CLOSED
}
2020-06-02 15:45:21 +00:00
type Server {
id: Int!
key: String!
status: ServerStatus!
langVersion: LangVersion @goField(forceResolver: true)
config: ServerConfig!
unitConfig: UnitConfig!
buildingConfig: BuildingConfig!
dataUpdatedAt: Time! @goField(forceResolver: true)
2020-06-02 15:45:21 +00:00
}
type ServersList {
items: [Server!]
total: Int!
2020-06-02 15:45:21 +00:00
}
input ServerFilter {
id: [Int!]
idNEQ: [Int!]
2020-06-02 15:45:21 +00:00
key: [String!]
keyNEQ: [String!]
keyMATCH: String
keyIEQ: String
2020-06-02 15:45:21 +00:00
status: [ServerStatus!]
statusNEQ: [ServerStatus!]
2020-06-02 15:45:21 +00:00
langVersionTag: [LanguageTag!]
langVersionTagNEQ: [LanguageTag!]
2020-06-02 15:45:21 +00:00
offset: Int
limit: Int
sort: String
2020-06-02 15:45:21 +00:00
}
extend type Query {
servers(filter: ServerFilter): ServersList!
server(key: String!): Server
}
`, BuiltIn: false},
&ast.Source{Name: "schema/server_config.graphql", Input: `type ServerConfigBuild {
destroy: Int!
}
type ServerConfigMisc {
killRanking: Int!
tutorial: Int!
tradeCancelTime: Int!
}
type ServerConfigCommands {
millisArrival: Int!
commandCancelTime: Int!
}
type ServerConfigNewbie {
days: Int!
ratioDays: Int!
ratio: Int!
removeNewbieVillages: Int!
}
type ServerConfigGame {
buildtimeFormula: Int!
knight: Int!
knightNewItems: Boolean!
archer: Int!
tech: Int!
farmLimit: Int!
church: Int!
watchtower: Int!
stronghold: Int!
fakeLimit: Int!
barbarianRise: Float!
barbarianShrink: Int!
barbarianMaxPoints: Int!
hauls: Int!
haulsBase: Int!
haulsMax: Int!
baseProduction: Int!
event: Int!
suppressEvents: Int!
}
type ServerConfigBuildings {
customMain: Int!
customFarm: Int!
customStorage: Int!
customPlace: Int!
customBarracks: Int!
customChurch: Int!
customSmith: Int!
customWood: Int!
customStone: Int!
customIron: Int!
customMarket: Int!
customStable: Int!
customWall: Int!
customGarage: Int!
customHide: Int!
customSnob: Int!
customStatue: Int!
customWatchtower: Int!
}
type ServerConfigSnob {
gold: Int!
cheapRebuild: Int!
rise: Int!
maxDist: Int!
factor: Float!
coinWood: Int!
coinStone: Int!
coinIron: Int!
noBarbConquer: Boolean!
}
type ServerConfigAlly {
noHarm: Int!
noOtherSupport: Int!
allytimeSupport: Int!
noLeave: Int!
noJoin: Int!
limit: Int!
fixedAllies: Int!
pointsMemberCount: Int!
warsMemberRequirement: Int!
warsPointsRequirement: Int!
warsAutoacceptDays: Int!
levels: Int!
xpRequirements: String!
}
type ServerConfigCoord {
mapSize: Int!
func: Int!
emptyVillages: Int!
bonusVillages: Int!
bonusNew: Int!
inner: Int!
selectStart: Int!
villageMoveWait: Int!
nobleRestart: Int!
startVillages: Int!
}
type ServerConfigSitter {
allow: Int!
}
type ServerConfigSleep {
active: Int!
delay: Int!
min: Int!
max: Int!
minAwake: Int!
maxAwake: Int!
warnTime: Int!
}
type ServerConfigNight {
active: Int!
startHour: Int!
endHour: Int!
defFactor: Int!
}
type ServerConfigWin {
check: Int!
}
type ServerConfig {
speed: Float!
unitSpeed: Float!
moral: Int!
build: ServerConfigBuild!
misc: ServerConfigMisc!
commands: ServerConfigCommands!
newbie: ServerConfigNewbie!
game: ServerConfigGame!
buildings: ServerConfigBuildings!
snob: ServerConfigSnob!
ally: ServerConfigAlly!
coord: ServerConfigCoord!
sitter: ServerConfigSitter!
sleep: ServerConfigSleep!
night: ServerConfigNight!
win: ServerConfigWin!
}
`, BuiltIn: false},
&ast.Source{Name: "schema/tribe.graphql", Input: `type Tribe {
id: Int!
name: String!
tag: String!
totalMembers: Int!
totalVillages: Int!
points: Int!
allPoints: Int!
rank: Int!
exist: Boolean!
rankAtt: Int!
scoreAtt: Int!
rankDef: Int!
scoreDef: Int!
rankTotal: Int!
scoreTotal: Int!
}
2020-06-02 15:45:21 +00:00
type TribesList {
items: [Tribe!]
total: Int!
2020-06-02 15:45:21 +00:00
}
input TribeFilter {
id: [Int!]
idNEQ: [Int!]
2020-06-02 15:45:21 +00:00
exist: Boolean
2020-06-02 15:45:21 +00:00
tag: [String!]
tagNEQ: [String!]
tagMATCH: String
tagIEQ: String
2020-06-02 15:45:21 +00:00
name: [String!]
nameNEQ: [String!]
nameMATCH: String
nameIEQ: String
totalMembers: Int
totalMembersGT: Int
totalMembersGTE: Int
totalMembersLT: Int
totalMembersLTE: Int
totalVillages: Int
totalVillagesGT: Int
totalVillagesGTE: Int
totalVillagesLT: Int
totalVillagesLTE: Int
points: Int
pointsGT: Int
pointsGTE: Int
pointsLT: Int
pointsLTE: Int
allPoints: Int
allPointsGT: Int
allPointsGTE: Int
allPointsLT: Int
allPointsLTE: Int
rank: Int
rankGT: Int
rankGTE: Int
rankLT: Int
rankLTE: Int
rankAtt: Int
rankAttGT: Int
rankAttGTE: Int
rankAttLT: Int
rankAttLTE: Int
scoreAtt: Int
scoreAttGT: Int
scoreAttGTE: Int
scoreAttLT: Int
scoreAttLTE: Int
rankDef: Int
rankDefGT: Int
rankDefGTE: Int
rankDefLT: Int
rankDefLTE: Int
scoreDef: Int
scoreDefGT: Int
scoreDefGTE: Int
scoreDefLT: Int
scoreDefLTE: Int
rankTotal: Int
rankTotalGT: Int
rankTotalGTE: Int
rankTotalLT: Int
rankTotalLTE: Int
scoreTotal: Int
scoreTotalGT: Int
scoreTotalGTE: Int
scoreTotalLT: Int
scoreTotalLTE: Int
offset: Int
limit: Int
sort: String
2020-06-02 15:45:21 +00:00
}
extend type Query {
tribes(server: String!, filter: TribeFilter): TribesList!
tribe(server: String!, id: Int!): Tribe
}
`, BuiltIn: false},
&ast.Source{Name: "schema/unit_config.graphql", Input: `type Unit {
buildTime: Float!
pop: Int!
speed: Float!
attack: Int!
defense: Int!
defenseCavalry: Int!
defenseArcher: Int!
carry: Int!
}
type UnitConfig {
spear: Unit!
sword: Unit!
axe: Unit!
archer: Unit!
spy: Unit!
light: Unit!
marcher: Unit!
heavy: Unit!
ram: Unit!
catapult: Unit!
knight: Unit!
snob: Unit!
militia: Unit!
}
`, BuiltIn: false},
&ast.Source{Name: "schema/village.graphql", Input: `type Village {
id: Int!
name: String!
points: Int!
x: Int!
y: Int!
bonus: Int!
player: Player @goField(forceResolver: true)
}
type VillagesList {
items: [Village!]
total: Int!
}
input VillageFilter {
id: [Int!]
idNEQ: [Int!]
name: [String!]
nameNEQ: [String!]
nameMATCH: String
nameIEQ: String
points: Int
pointsGT: Int
pointsGTE: Int
pointsLT: Int
pointsLTE: Int
xGT: Int
xGTE: Int
xLT: Int
xLTE: Int
yGT: Int
yGTE: Int
yLT: Int
yLTE: Int
bonus: Int
bonusGT: Int
bonusGTE: Int
bonusLT: Int
bonusLTE: Int
playerID: [Int!]
offset: Int
limit: Int
sort: String
}
extend type Query {
villages(server: String!, filter: VillageFilter): VillagesList!
village(server: String!, id: Int!): Village
}
`, BuiltIn: false},
}
var parsedSchema = gqlparser.MustLoadSchema(sources...)
// endregion ************************** generated!.gotpl **************************
// region ***************************** args.gotpl *****************************
func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["name"]; ok {
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
2020-06-02 15:45:21 +00:00
}
}
args["name"] = arg0
return args, nil
}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) field_Query_langVersion_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 models.LanguageTag
if tmp, ok := rawArgs["tag"]; ok {
arg0, err = ec.unmarshalNLanguageTag2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLanguageTag(ctx, tmp)
if err != nil {
return nil, err
2020-06-02 15:45:21 +00:00
}
}
args["tag"] = arg0
return args, nil
}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) field_Query_langVersions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 *models.LangVersionFilter
if tmp, ok := rawArgs["filter"]; ok {
arg0, err = ec.unmarshalOLangVersionFilter2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersionFilter(ctx, tmp)
if err != nil {
return nil, err
2020-06-02 15:45:21 +00:00
}
}
args["filter"] = arg0
return args, nil
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) field_Query_liveEnnoblements_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["server"]; ok {
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["server"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_player_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["server"]; ok {
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["server"] = arg0
var arg1 int
if tmp, ok := rawArgs["id"]; ok {
arg1, err = ec.unmarshalNInt2int(ctx, tmp)
if err != nil {
return nil, err
}
}
args["id"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_players_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["server"]; ok {
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["server"] = arg0
var arg1 *models.PlayerFilter
if tmp, ok := rawArgs["filter"]; ok {
arg1, err = ec.unmarshalOPlayerFilter2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayerFilter(ctx, tmp)
if err != nil {
return nil, err
}
}
args["filter"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_server_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["key"]; ok {
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["key"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_servers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 *models.ServerFilter
if tmp, ok := rawArgs["filter"]; ok {
arg0, err = ec.unmarshalOServerFilter2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerFilter(ctx, tmp)
if err != nil {
return nil, err
}
}
args["filter"] = arg0
return args, nil
}
func (ec *executionContext) field_Query_tribe_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["server"]; ok {
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["server"] = arg0
var arg1 int
if tmp, ok := rawArgs["id"]; ok {
arg1, err = ec.unmarshalNInt2int(ctx, tmp)
if err != nil {
return nil, err
}
}
args["id"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_tribes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["server"]; ok {
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["server"] = arg0
var arg1 *models.TribeFilter
if tmp, ok := rawArgs["filter"]; ok {
arg1, err = ec.unmarshalOTribeFilter2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribeFilter(ctx, tmp)
if err != nil {
return nil, err
}
}
args["filter"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_village_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["server"]; ok {
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["server"] = arg0
var arg1 int
if tmp, ok := rawArgs["id"]; ok {
arg1, err = ec.unmarshalNInt2int(ctx, tmp)
if err != nil {
return nil, err
}
}
args["id"] = arg1
return args, nil
}
func (ec *executionContext) field_Query_villages_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 string
if tmp, ok := rawArgs["server"]; ok {
arg0, err = ec.unmarshalNString2string(ctx, tmp)
if err != nil {
return nil, err
}
}
args["server"] = arg0
var arg1 *models.VillageFilter
if tmp, ok := rawArgs["filter"]; ok {
arg1, err = ec.unmarshalOVillageFilter2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillageFilter(ctx, tmp)
if err != nil {
return nil, err
}
}
args["filter"] = arg1
return args, nil
}
func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 bool
if tmp, ok := rawArgs["includeDeprecated"]; ok {
arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
if err != nil {
return nil, err
}
}
args["includeDeprecated"] = arg0
return args, nil
}
func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
var err error
args := map[string]interface{}{}
var arg0 bool
if tmp, ok := rawArgs["includeDeprecated"]; ok {
arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
if err != nil {
return nil, err
}
}
args["includeDeprecated"] = arg0
return args, nil
}
// endregion ***************************** args.gotpl *****************************
// region ************************** directives.gotpl **************************
// endregion ************************** directives.gotpl **************************
// region **************************** field.gotpl *****************************
func (ec *executionContext) _Building_maxLevel(ctx context.Context, field graphql.CollectedField, obj *models.Building) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
2020-06-02 15:45:21 +00:00
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Building",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.MaxLevel, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Building_minLevel(ctx context.Context, field graphql.CollectedField, obj *models.Building) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Building",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.MinLevel, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Building_wood(ctx context.Context, field graphql.CollectedField, obj *models.Building) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Building",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Wood, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Building_stone(ctx context.Context, field graphql.CollectedField, obj *models.Building) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Building",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Stone, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Building_iron(ctx context.Context, field graphql.CollectedField, obj *models.Building) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Building",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Iron, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(int)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _Building_pop(ctx context.Context, field graphql.CollectedField, obj *models.Building) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Building",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Pop, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(int)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _Building_woodFactor(ctx context.Context, field graphql.CollectedField, obj *models.Building) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Building",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.WoodFactor, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(float64)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNFloat2float64(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _Building_stoneFactor(ctx context.Context, field graphql.CollectedField, obj *models.Building) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Building",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.StoneFactor, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(float64)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNFloat2float64(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _Building_ironFactor(ctx context.Context, field graphql.CollectedField, obj *models.Building) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Building",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IronFactor, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(float64)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNFloat2float64(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _Building_popFactor(ctx context.Context, field graphql.CollectedField, obj *models.Building) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Building",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.PopFactor, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(float64)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNFloat2float64(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _Building_buildTime(ctx context.Context, field graphql.CollectedField, obj *models.Building) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Building",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.BuildTime, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(float64)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNFloat2float64(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _Building_buildTimeFactor(ctx context.Context, field graphql.CollectedField, obj *models.Building) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Building",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.BuildTimeFactor, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(float64)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNFloat2float64(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_main(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Main, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_barracks(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Barracks, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_stable(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Stable, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_garage(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Garage, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_watchtower(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Watchtower, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_snob(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Snob, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_smith(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Smith, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_place(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Place, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_statue(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Statue, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_market(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Market, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_wood(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Wood, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_stone(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Stone, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_iron(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Iron, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_farm(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Farm, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_storage(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Storage, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_hide(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Hide, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _BuildingConfig_wall(ctx context.Context, field graphql.CollectedField, obj *models.BuildingConfig) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "BuildingConfig",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Wall, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(models.Building)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _LangVersion_tag(ctx context.Context, field graphql.CollectedField, obj *models.LangVersion) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "LangVersion",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Tag, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(models.LanguageTag)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNLanguageTag2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLanguageTag(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _LangVersion_name(ctx context.Context, field graphql.CollectedField, obj *models.LangVersion) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "LangVersion",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(string)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _LangVersion_host(ctx context.Context, field graphql.CollectedField, obj *models.LangVersion) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "LangVersion",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Host, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(string)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _LangVersion_timezone(ctx context.Context, field graphql.CollectedField, obj *models.LangVersion) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "LangVersion",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Timezone, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(string)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _LangVersionsList_items(ctx context.Context, field graphql.CollectedField, obj *LangVersionsList) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "LangVersionsList",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Items, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]*models.LangVersion)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalOLangVersion2ᚕᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersionᚄ(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _LangVersionsList_total(ctx context.Context, field graphql.CollectedField, obj *LangVersionsList) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "LangVersionsList",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: false,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Total, nil
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
2020-06-02 15:45:21 +00:00
return graphql.Null
}
res := resTmp.(int)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _LiveEnnoblement_village(ctx context.Context, field graphql.CollectedField, obj *models.LiveEnnoblement) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "LiveEnnoblement",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: true,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.LiveEnnoblement().Village(rctx, obj)
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Village)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalOVillage2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillage(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _LiveEnnoblement_newOwner(ctx context.Context, field graphql.CollectedField, obj *models.LiveEnnoblement) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "LiveEnnoblement",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: true,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.LiveEnnoblement().NewOwner(rctx, obj)
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Player)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalOPlayer2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayer(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _LiveEnnoblement_oldOwner(ctx context.Context, field graphql.CollectedField, obj *models.LiveEnnoblement) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "LiveEnnoblement",
2020-06-02 15:45:21 +00:00
Field: field,
Args: nil,
IsMethod: true,
2020-06-02 15:45:21 +00:00
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.LiveEnnoblement().OldOwner(rctx, obj)
2020-06-02 15:45:21 +00:00
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Player)
2020-06-02 15:45:21 +00:00
fc.Result = res
return ec.marshalOPlayer2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayer(ctx, field.Selections, res)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) _LiveEnnoblement_ennobledAt(ctx context.Context, field graphql.CollectedField, obj *models.LiveEnnoblement) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "LiveEnnoblement",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EnnobledAt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(time.Time)
fc.Result = res
return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_id(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_name(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_totalVillages(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalVillages, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_points(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Points, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_rank(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Rank, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_exist(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Exist, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*bool)
fc.Result = res
return ec.marshalNBoolean2ᚖbool(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_rankAtt(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
2020-06-02 15:45:21 +00:00
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RankAtt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_scoreAtt(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ScoreAtt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_rankDef(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RankDef, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_scoreDef(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ScoreDef, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_rankSup(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RankSup, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_scoreSup(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ScoreSup, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_rankTotal(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RankTotal, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_scoreTotal(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ScoreTotal, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Player_tribe(ctx context.Context, field graphql.CollectedField, obj *models.Player) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Player",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Player().Tribe(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Tribe)
fc.Result = res
return ec.marshalOTribe2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribe(ctx, field.Selections, res)
}
func (ec *executionContext) _PlayersList_items(ctx context.Context, field graphql.CollectedField, obj *PlayersList) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "PlayersList",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Items, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]*models.Player)
fc.Result = res
return ec.marshalOPlayer2ᚕᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayerᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) _PlayersList_total(ctx context.Context, field graphql.CollectedField, obj *PlayersList) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "PlayersList",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Total, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Query_langVersions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field_Query_langVersions_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().LangVersions(rctx, args["filter"].(*models.LangVersionFilter))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*LangVersionsList)
fc.Result = res
return ec.marshalNLangVersionsList2ᚖgithubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐLangVersionsList(ctx, field.Selections, res)
}
func (ec *executionContext) _Query_langVersion(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field_Query_langVersion_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().LangVersion(rctx, args["tag"].(models.LanguageTag))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.LangVersion)
fc.Result = res
return ec.marshalOLangVersion2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersion(ctx, field.Selections, res)
}
func (ec *executionContext) _Query_liveEnnoblements(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field_Query_liveEnnoblements_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().LiveEnnoblements(rctx, args["server"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]*models.LiveEnnoblement)
fc.Result = res
return ec.marshalOLiveEnnoblement2ᚕᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLiveEnnoblementᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) _Query_players(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field_Query_players_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().Players(rctx, args["server"].(string), args["filter"].(*models.PlayerFilter))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*PlayersList)
fc.Result = res
return ec.marshalNPlayersList2ᚖgithubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐPlayersList(ctx, field.Selections, res)
}
func (ec *executionContext) _Query_player(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field_Query_player_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().Player(rctx, args["server"].(string), args["id"].(int))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Player)
fc.Result = res
return ec.marshalOPlayer2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayer(ctx, field.Selections, res)
}
func (ec *executionContext) _Query_servers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field_Query_servers_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().Servers(rctx, args["filter"].(*models.ServerFilter))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*ServersList)
fc.Result = res
return ec.marshalNServersList2ᚖgithubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐServersList(ctx, field.Selections, res)
}
func (ec *executionContext) _Query_server(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field_Query_server_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().Server(rctx, args["key"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Server)
fc.Result = res
return ec.marshalOServer2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServer(ctx, field.Selections, res)
}
func (ec *executionContext) _Query_tribes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field_Query_tribes_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().Tribes(rctx, args["server"].(string), args["filter"].(*models.TribeFilter))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*TribesList)
fc.Result = res
return ec.marshalNTribesList2ᚖgithubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐTribesList(ctx, field.Selections, res)
}
func (ec *executionContext) _Query_tribe(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field_Query_tribe_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().Tribe(rctx, args["server"].(string), args["id"].(int))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Tribe)
fc.Result = res
return ec.marshalOTribe2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribe(ctx, field.Selections, res)
}
func (ec *executionContext) _Query_villages(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field_Query_villages_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().Villages(rctx, args["server"].(string), args["filter"].(*models.VillageFilter))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*VillagesList)
fc.Result = res
return ec.marshalNVillagesList2ᚖgithubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐVillagesList(ctx, field.Selections, res)
}
func (ec *executionContext) _Query_village(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field_Query_village_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Query().Village(rctx, args["server"].(string), args["id"].(int))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Village)
fc.Result = res
return ec.marshalOVillage2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillage(ctx, field.Selections, res)
}
func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field_Query___type_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.introspectType(args["name"].(string))
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Query",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.introspectSchema()
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Schema)
fc.Result = res
return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
}
func (ec *executionContext) _Server_id(ctx context.Context, field graphql.CollectedField, obj *models.Server) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Server",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Server_key(ctx context.Context, field graphql.CollectedField, obj *models.Server) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Server",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Key, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) _Server_status(ctx context.Context, field graphql.CollectedField, obj *models.Server) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Server",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Status, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerStatus)
fc.Result = res
return ec.marshalNServerStatus2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerStatus(ctx, field.Selections, res)
}
func (ec *executionContext) _Server_langVersion(ctx context.Context, field graphql.CollectedField, obj *models.Server) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Server",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Server().LangVersion(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.LangVersion)
fc.Result = res
return ec.marshalOLangVersion2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersion(ctx, field.Selections, res)
}
func (ec *executionContext) _Server_config(ctx context.Context, field graphql.CollectedField, obj *models.Server) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Server",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Config, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfig)
fc.Result = res
return ec.marshalNServerConfig2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfig(ctx, field.Selections, res)
}
func (ec *executionContext) _Server_unitConfig(ctx context.Context, field graphql.CollectedField, obj *models.Server) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Server",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UnitConfig, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.UnitConfig)
fc.Result = res
return ec.marshalNUnitConfig2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnitConfig(ctx, field.Selections, res)
}
func (ec *executionContext) _Server_buildingConfig(ctx context.Context, field graphql.CollectedField, obj *models.Server) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Server",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.BuildingConfig, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.BuildingConfig)
fc.Result = res
return ec.marshalNBuildingConfig2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuildingConfig(ctx, field.Selections, res)
}
func (ec *executionContext) _Server_dataUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *models.Server) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Server",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Server().DataUpdatedAt(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*time.Time)
fc.Result = res
return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_speed(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Speed, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(float64)
fc.Result = res
return ec.marshalNFloat2float64(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_unitSpeed(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.UnitSpeed, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(float64)
fc.Result = res
return ec.marshalNFloat2float64(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_moral(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Moral, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_build(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Build, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigBuild)
fc.Result = res
return ec.marshalNServerConfigBuild2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigBuild(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_misc(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Misc, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigMisc)
fc.Result = res
return ec.marshalNServerConfigMisc2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigMisc(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_commands(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Commands, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigCommands)
fc.Result = res
return ec.marshalNServerConfigCommands2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigCommands(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_newbie(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Newbie, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigNewbie)
fc.Result = res
return ec.marshalNServerConfigNewbie2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigNewbie(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_game(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Game, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigGame)
fc.Result = res
return ec.marshalNServerConfigGame2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigGame(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_buildings(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Buildings, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigBuildings)
fc.Result = res
return ec.marshalNServerConfigBuildings2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigBuildings(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_snob(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Snob, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigSnob)
fc.Result = res
return ec.marshalNServerConfigSnob2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigSnob(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_ally(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Ally, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigAlly)
fc.Result = res
return ec.marshalNServerConfigAlly2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigAlly(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_coord(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Coord, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigCoord)
fc.Result = res
return ec.marshalNServerConfigCoord2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigCoord(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_sitter(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Sitter, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigSitter)
fc.Result = res
return ec.marshalNServerConfigSitter2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigSitter(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_sleep(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Sleep, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigSleep)
fc.Result = res
return ec.marshalNServerConfigSleep2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigSleep(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_night(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Night, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigNight)
fc.Result = res
return ec.marshalNServerConfigNight2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigNight(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfig_win(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Win, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.ServerConfigWin)
fc.Result = res
return ec.marshalNServerConfigWin2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigWin(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_noHarm(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.NoHarm, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_noOtherSupport(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.NoOtherSupport, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_allytimeSupport(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.AllytimeSupport, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_noLeave(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.NoLeave, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_noJoin(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.NoJoin, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_limit(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Limit, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_fixedAllies(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FixedAllies, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_pointsMemberCount(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.PointsMemberCount, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_warsMemberRequirement(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.WarsMemberRequirement, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_warsPointsRequirement(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.WarsPointsRequirement, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_warsAutoacceptDays(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.WarsAutoacceptDays, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_levels(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Levels, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigAlly_xpRequirements(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigAlly) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigAlly",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.XpRequirements, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuild_destroy(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuild) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuild",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Destroy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customMain(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomMain, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customFarm(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomFarm, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customStorage(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomStorage, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customPlace(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomPlace, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customBarracks(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomBarracks, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customChurch(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomChurch, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customSmith(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomSmith, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customWood(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomWood, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customStone(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomStone, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customIron(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomIron, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customMarket(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomMarket, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customStable(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomStable, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customWall(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomWall, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customGarage(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomGarage, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customHide(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomHide, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customSnob(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomSnob, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customStatue(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomStatue, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigBuildings_customWatchtower(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigBuildings) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigBuildings",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CustomWatchtower, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigCommands_millisArrival(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigCommands) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigCommands",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.MillisArrival, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigCommands_commandCancelTime(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigCommands) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigCommands",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CommandCancelTime, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigCoord_mapSize(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigCoord) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigCoord",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.MapSize, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigCoord_func(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigCoord) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigCoord",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Func, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigCoord_emptyVillages(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigCoord) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigCoord",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EmptyVillages, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigCoord_bonusVillages(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigCoord) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigCoord",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.BonusVillages, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigCoord_bonusNew(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigCoord) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigCoord",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.BonusNew, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigCoord_inner(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigCoord) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigCoord",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Inner, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigCoord_selectStart(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigCoord) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigCoord",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.SelectStart, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigCoord_villageMoveWait(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigCoord) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigCoord",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.VillageMoveWait, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigCoord_nobleRestart(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigCoord) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigCoord",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.NobleRestart, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigCoord_startVillages(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigCoord) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigCoord",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.StartVillages, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_buildtimeFormula(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.BuildtimeFormula, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_knight(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Knight, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_knightNewItems(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.KnightNewItems, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(bool)
fc.Result = res
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_archer(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Archer, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_tech(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Tech, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_farmLimit(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FarmLimit, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_church(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Church, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_watchtower(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Watchtower, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_stronghold(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Stronghold, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_fakeLimit(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.FakeLimit, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_barbarianRise(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.BarbarianRise, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(float64)
fc.Result = res
return ec.marshalNFloat2float64(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_barbarianShrink(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.BarbarianShrink, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_barbarianMaxPoints(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.BarbarianMaxPoints, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_hauls(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Hauls, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_haulsBase(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.HaulsBase, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_haulsMax(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.HaulsMax, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_baseProduction(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.BaseProduction, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_event(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Event, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigGame_suppressEvents(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigGame) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigGame",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.SuppressEvents, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigMisc_killRanking(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigMisc) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigMisc",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.KillRanking, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigMisc_tutorial(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigMisc) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigMisc",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Tutorial, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigMisc_tradeCancelTime(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigMisc) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigMisc",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TradeCancelTime, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigNewbie_days(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigNewbie) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigNewbie",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Days, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigNewbie_ratioDays(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigNewbie) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigNewbie",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RatioDays, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigNewbie_ratio(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigNewbie) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigNewbie",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Ratio, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigNewbie_removeNewbieVillages(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigNewbie) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigNewbie",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RemoveNewbieVillages, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigNight_active(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigNight) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigNight",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Active, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigNight_startHour(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigNight) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigNight",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.StartHour, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigNight_endHour(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigNight) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigNight",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EndHour, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigNight_defFactor(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigNight) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigNight",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.DefFactor, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSitter_allow(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSitter) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSitter",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Allow, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSleep_active(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSleep) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSleep",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Active, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSleep_delay(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSleep) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSleep",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Delay, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSleep_min(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSleep) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSleep",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Min, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSleep_max(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSleep) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSleep",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Max, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSleep_minAwake(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSleep) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSleep",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.MinAwake, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSleep_maxAwake(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSleep) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSleep",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.MaxAwake, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSleep_warnTime(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSleep) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSleep",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.WarnTime, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSnob_gold(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSnob) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSnob",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Gold, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSnob_cheapRebuild(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSnob) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSnob",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CheapRebuild, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSnob_rise(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSnob) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSnob",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Rise, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSnob_maxDist(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSnob) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSnob",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.MaxDist, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSnob_factor(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSnob) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSnob",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Factor, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(float64)
fc.Result = res
return ec.marshalNFloat2float64(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSnob_coinWood(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSnob) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSnob",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CoinWood, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSnob_coinStone(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSnob) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSnob",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CoinStone, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSnob_coinIron(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSnob) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSnob",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.CoinIron, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigSnob_noBarbConquer(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigSnob) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigSnob",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.NoBarbConquer, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(bool)
fc.Result = res
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
func (ec *executionContext) _ServerConfigWin_check(ctx context.Context, field graphql.CollectedField, obj *models.ServerConfigWin) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServerConfigWin",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Check, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _ServersList_items(ctx context.Context, field graphql.CollectedField, obj *ServersList) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServersList",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Items, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]*models.Server)
fc.Result = res
return ec.marshalOServer2ᚕᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) _ServersList_total(ctx context.Context, field graphql.CollectedField, obj *ServersList) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "ServersList",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Total, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_id(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_name(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_tag(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Tag, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_totalMembers(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalMembers, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_totalVillages(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.TotalVillages, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_points(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Points, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_allPoints(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.AllPoints, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_rank(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Rank, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_exist(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Exist, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*bool)
fc.Result = res
return ec.marshalNBoolean2ᚖbool(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_rankAtt(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RankAtt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_scoreAtt(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ScoreAtt, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_rankDef(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RankDef, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_scoreDef(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ScoreDef, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_rankTotal(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.RankTotal, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Tribe_scoreTotal(ctx context.Context, field graphql.CollectedField, obj *models.Tribe) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Tribe",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ScoreTotal, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _TribesList_items(ctx context.Context, field graphql.CollectedField, obj *TribesList) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "TribesList",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Items, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]*models.Tribe)
fc.Result = res
return ec.marshalOTribe2ᚕᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribeᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) _TribesList_total(ctx context.Context, field graphql.CollectedField, obj *TribesList) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "TribesList",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Total, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Unit_buildTime(ctx context.Context, field graphql.CollectedField, obj *models.Unit) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Unit",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.BuildTime, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(float64)
fc.Result = res
return ec.marshalNFloat2float64(ctx, field.Selections, res)
}
func (ec *executionContext) _Unit_pop(ctx context.Context, field graphql.CollectedField, obj *models.Unit) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Unit",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Pop, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Unit_speed(ctx context.Context, field graphql.CollectedField, obj *models.Unit) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Unit",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Speed, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(float64)
fc.Result = res
return ec.marshalNFloat2float64(ctx, field.Selections, res)
}
func (ec *executionContext) _Unit_attack(ctx context.Context, field graphql.CollectedField, obj *models.Unit) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Unit",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Attack, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Unit_defense(ctx context.Context, field graphql.CollectedField, obj *models.Unit) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Unit",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Defense, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Unit_defenseCavalry(ctx context.Context, field graphql.CollectedField, obj *models.Unit) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Unit",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.DefenseCavalry, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Unit_defenseArcher(ctx context.Context, field graphql.CollectedField, obj *models.Unit) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Unit",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.DefenseArcher, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Unit_carry(ctx context.Context, field graphql.CollectedField, obj *models.Unit) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Unit",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Carry, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_spear(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Spear, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_sword(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Sword, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_axe(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Axe, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_archer(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Archer, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_spy(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Spy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_light(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Light, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_marcher(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Marcher, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_heavy(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Heavy, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_ram(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Ram, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_catapult(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Catapult, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_knight(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Knight, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_snob(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Snob, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _UnitConfig_militia(ctx context.Context, field graphql.CollectedField, obj *models.UnitConfig) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "UnitConfig",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Militia, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(models.Unit)
fc.Result = res
return ec.marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx, field.Selections, res)
}
func (ec *executionContext) _Village_id(ctx context.Context, field graphql.CollectedField, obj *models.Village) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Village",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.ID, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Village_name(ctx context.Context, field graphql.CollectedField, obj *models.Village) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Village",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) _Village_points(ctx context.Context, field graphql.CollectedField, obj *models.Village) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Village",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Points, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Village_x(ctx context.Context, field graphql.CollectedField, obj *models.Village) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Village",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.X, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Village_y(ctx context.Context, field graphql.CollectedField, obj *models.Village) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Village",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Y, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Village_bonus(ctx context.Context, field graphql.CollectedField, obj *models.Village) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Village",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Bonus, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) _Village_player(ctx context.Context, field graphql.CollectedField, obj *models.Village) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "Village",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return ec.resolvers.Village().Player(rctx, obj)
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Player)
fc.Result = res
return ec.marshalOPlayer2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayer(ctx, field.Selections, res)
}
func (ec *executionContext) _VillagesList_items(ctx context.Context, field graphql.CollectedField, obj *VillagesList) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "VillagesList",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Items, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]*models.Village)
fc.Result = res
return ec.marshalOVillage2ᚕᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillageᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) _VillagesList_total(ctx context.Context, field graphql.CollectedField, obj *VillagesList) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "VillagesList",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Total, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(int)
fc.Result = res
return ec.marshalNInt2int(ctx, field.Selections, res)
}
func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Directive",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Directive",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalOString2string(ctx, field.Selections, res)
}
func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Directive",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Locations, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]string)
fc.Result = res
return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Directive",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Args, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]introspection.InputValue)
fc.Result = res
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__EnumValue",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__EnumValue",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalOString2string(ctx, field.Selections, res)
}
func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__EnumValue",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsDeprecated(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(bool)
fc.Result = res
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__EnumValue",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.DeprecationReason(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Field",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Field",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalOString2string(ctx, field.Selections, res)
}
func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Field",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Args, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]introspection.InputValue)
fc.Result = res
return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Field",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Type, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Field",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.IsDeprecated(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(bool)
fc.Result = res
return ec.marshalNBoolean2bool(ctx, field.Selections, res)
}
func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Field",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.DeprecationReason(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__InputValue",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalNString2string(ctx, field.Selections, res)
}
func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__InputValue",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalOString2string(ctx, field.Selections, res)
}
func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__InputValue",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Type, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__InputValue",
Field: field,
Args: nil,
IsMethod: false,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.DefaultValue, nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Schema",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Types(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]introspection.Type)
fc.Result = res
return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Schema",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.QueryType(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Schema",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.MutationType(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Schema",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.SubscriptionType(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Schema",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Directives(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.([]introspection.Directive)
fc.Result = res
return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Type",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Kind(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
if !graphql.HasFieldError(ctx, fc) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
}
func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Type",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Name(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
fc.Result = res
return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
}
func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Type",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Description(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(string)
fc.Result = res
return ec.marshalOString2string(ctx, field.Selections, res)
}
func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Type",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field___Type_fields_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Fields(args["includeDeprecated"].(bool)), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]introspection.Field)
fc.Result = res
return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Type",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.Interfaces(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]introspection.Type)
fc.Result = res
return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Type",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.PossibleTypes(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]introspection.Type)
fc.Result = res
return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Type",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
rawArgs := field.ArgumentMap(ec.Variables)
args, err := ec.field___Type_enumValues_args(ctx, rawArgs)
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
fc.Args = args
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.EnumValues(args["includeDeprecated"].(bool)), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]introspection.EnumValue)
fc.Result = res
return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Type",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.InputFields(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.([]introspection.InputValue)
fc.Result = res
return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
}
func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = graphql.Null
}
}()
fc := &graphql.FieldContext{
Object: "__Type",
Field: field,
Args: nil,
IsMethod: true,
}
ctx = graphql.WithFieldContext(ctx, fc)
resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
return obj.OfType(), nil
})
if err != nil {
ec.Error(ctx, err)
return graphql.Null
}
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Type)
fc.Result = res
return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
}
// endregion **************************** field.gotpl *****************************
// region **************************** input.gotpl *****************************
func (ec *executionContext) unmarshalInputLangVersionFilter(ctx context.Context, obj interface{}) (models.LangVersionFilter, error) {
var it models.LangVersionFilter
var asMap = obj.(map[string]interface{})
for k, v := range asMap {
switch k {
case "tag":
var err error
it.Tag, err = ec.unmarshalOLanguageTag2ᚕgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLanguageTagᚄ(ctx, v)
if err != nil {
return it, err
}
case "tagNEQ":
var err error
it.TagNEQ, err = ec.unmarshalOLanguageTag2ᚕgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLanguageTagᚄ(ctx, v)
if err != nil {
return it, err
}
case "host":
var err error
it.Host, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
case "hostNEQ":
var err error
it.HostNEQ, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
case "hostMATCH":
var err error
it.HostMATCH, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
case "hostIEQ":
var err error
it.HostIEQ, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
case "offset":
var err error
it.Offset, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "limit":
var err error
it.Limit, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "sort":
var err error
it.Sort, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputPlayerFilter(ctx context.Context, obj interface{}) (models.PlayerFilter, error) {
var it models.PlayerFilter
var asMap = obj.(map[string]interface{})
for k, v := range asMap {
switch k {
case "id":
var err error
it.ID, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v)
if err != nil {
return it, err
}
case "idNEQ":
var err error
it.IdNEQ, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v)
if err != nil {
return it, err
}
case "exist":
var err error
it.Exist, err = ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
case "name":
var err error
it.Name, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
case "nameNEQ":
var err error
it.NameNEQ, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
case "nameMATCH":
var err error
it.NameMATCH, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
case "nameIEQ":
var err error
it.NameIEQ, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
case "totalVillages":
var err error
it.TotalVillages, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "totalVillagesGT":
var err error
it.TotalVillagesGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "totalVillagesGTE":
var err error
it.TotalVillagesGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "totalVillagesLT":
var err error
it.TotalVillagesLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "totalVillagesLTE":
var err error
it.TotalVillagesLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "points":
var err error
it.Points, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "pointsGT":
var err error
it.PointsGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "pointsGTE":
var err error
it.PointsGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "pointsLT":
var err error
it.PointsLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "pointsLTE":
var err error
it.PointsLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rank":
var err error
it.Rank, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankGT":
var err error
it.RankGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankGTE":
var err error
it.RankGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankLT":
var err error
it.RankLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankLTE":
var err error
it.RankLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankAtt":
var err error
it.RankAtt, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankAttGT":
var err error
it.RankAttGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankAttGTE":
var err error
it.RankAttGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankAttLT":
var err error
it.RankAttLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankAttLTE":
var err error
it.RankAttLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreAtt":
var err error
it.ScoreAtt, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreAttGT":
var err error
it.ScoreAttGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreAttGTE":
var err error
it.ScoreAttGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreAttLT":
var err error
it.ScoreAttLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreAttLTE":
var err error
it.ScoreAttLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankDef":
var err error
it.RankDef, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankDefGT":
var err error
it.RankDefGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankDefGTE":
var err error
it.RankDefGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankDefLT":
var err error
it.RankDefLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankDefLTE":
var err error
it.RankDefLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreDef":
var err error
it.ScoreDef, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreDefGT":
var err error
it.ScoreDefGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreDefGTE":
var err error
it.ScoreDefGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreDefLT":
var err error
it.ScoreDefLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreDefLTE":
var err error
it.ScoreDefLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankSup":
var err error
it.RankSup, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankSupGT":
var err error
it.RankSupGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankSupGTE":
var err error
it.RankSupGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankSupLT":
var err error
it.RankSupLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankSupLTE":
var err error
it.RankSupLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreSup":
var err error
it.ScoreSup, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreSupGT":
var err error
it.ScoreSupGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreSupGTE":
var err error
it.ScoreSupGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreSupLT":
var err error
it.ScoreSupLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreSupLTE":
var err error
it.ScoreSupLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankTotal":
var err error
it.RankTotal, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankTotalGT":
var err error
it.RankTotalGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankTotalGTE":
var err error
it.RankTotalGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankTotalLT":
var err error
it.RankTotalLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankTotalLTE":
var err error
it.RankTotalLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreTotal":
var err error
it.ScoreTotal, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreTotalGT":
var err error
it.ScoreTotalGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreTotalGTE":
var err error
it.ScoreTotalGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreTotalLT":
var err error
it.ScoreTotalLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreTotalLTE":
var err error
it.ScoreTotalLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "tribeID":
var err error
it.TribeID, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v)
if err != nil {
return it, err
}
case "offset":
var err error
it.Offset, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "limit":
var err error
it.Limit, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "sort":
var err error
it.Sort, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
}
2020-06-02 15:45:21 +00:00
}
return it, nil
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) unmarshalInputServerFilter(ctx context.Context, obj interface{}) (models.ServerFilter, error) {
var it models.ServerFilter
2020-06-02 15:45:21 +00:00
var asMap = obj.(map[string]interface{})
for k, v := range asMap {
switch k {
case "id":
2020-06-02 15:45:21 +00:00
var err error
it.ID, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "idNEQ":
2020-06-02 15:45:21 +00:00
var err error
it.IdNEQ, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "key":
2020-06-02 15:45:21 +00:00
var err error
it.Key, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "keyNEQ":
2020-06-02 15:45:21 +00:00
var err error
it.KeyNEQ, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "keyMATCH":
2020-06-02 15:45:21 +00:00
var err error
it.KeyMATCH, err = ec.unmarshalOString2string(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "keyIEQ":
2020-06-02 15:45:21 +00:00
var err error
it.KeyIEQ, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
case "status":
var err error
it.Status, err = ec.unmarshalOServerStatus2ᚕgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerStatusᚄ(ctx, v)
if err != nil {
return it, err
}
case "statusNEQ":
var err error
it.StatusNEQ, err = ec.unmarshalOServerStatus2ᚕgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerStatusᚄ(ctx, v)
if err != nil {
return it, err
}
case "langVersionTag":
var err error
it.LangVersionTag, err = ec.unmarshalOLanguageTag2ᚕgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLanguageTagᚄ(ctx, v)
if err != nil {
return it, err
}
case "langVersionTagNEQ":
var err error
it.LangVersionTagNEQ, err = ec.unmarshalOLanguageTag2ᚕgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLanguageTagᚄ(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "offset":
var err error
it.Offset, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "limit":
var err error
it.Limit, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "sort":
var err error
it.Sort, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputTribeFilter(ctx context.Context, obj interface{}) (models.TribeFilter, error) {
var it models.TribeFilter
2020-06-02 15:45:21 +00:00
var asMap = obj.(map[string]interface{})
for k, v := range asMap {
switch k {
case "id":
var err error
it.ID, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v)
if err != nil {
return it, err
}
case "idNEQ":
var err error
it.IdNEQ, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v)
if err != nil {
return it, err
}
case "exist":
var err error
it.Exist, err = ec.unmarshalOBoolean2ᚖbool(ctx, v)
if err != nil {
return it, err
}
case "tag":
var err error
it.Tag, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
case "tagNEQ":
var err error
it.TagNEQ, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
case "tagMATCH":
var err error
it.TagMATCH, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
case "tagIEQ":
var err error
it.TagIEQ, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
2020-06-02 15:45:21 +00:00
case "name":
var err error
it.Name, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
case "nameNEQ":
var err error
it.NameNEQ, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
if err != nil {
return it, err
}
case "nameMATCH":
var err error
it.NameMATCH, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
case "nameIEQ":
var err error
it.NameIEQ, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
case "totalMembers":
var err error
it.TotalMembers, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "totalMembersGT":
var err error
it.TotalMembersGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "totalMembersGTE":
var err error
it.TotalMembersGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "totalMembersLT":
var err error
it.TotalMembersLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "totalMembersLTE":
var err error
it.TotalMembersLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
2020-06-02 15:45:21 +00:00
case "totalVillages":
var err error
it.TotalVillages, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "totalVillagesGT":
var err error
it.TotalVillagesGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "totalVillagesGTE":
var err error
it.TotalVillagesGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "totalVillagesLT":
var err error
it.TotalVillagesLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "totalVillagesLTE":
var err error
it.TotalVillagesLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "points":
var err error
it.Points, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "pointsGT":
var err error
it.PointsGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "pointsGTE":
var err error
it.PointsGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "pointsLT":
var err error
it.PointsLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "pointsLTE":
var err error
it.PointsLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "allPoints":
var err error
it.AllPoints, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "allPointsGT":
var err error
it.AllPointsGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "allPointsGTE":
var err error
it.AllPointsGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "allPointsLT":
var err error
it.AllPointsLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "allPointsLTE":
var err error
it.AllPointsLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
2020-06-02 15:45:21 +00:00
case "rank":
var err error
it.Rank, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankGT":
var err error
it.RankGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankGTE":
var err error
it.RankGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankLT":
var err error
it.RankLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankLTE":
var err error
it.RankLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankAtt":
var err error
it.RankAtt, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankAttGT":
var err error
it.RankAttGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankAttGTE":
var err error
it.RankAttGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankAttLT":
var err error
it.RankAttLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankAttLTE":
var err error
it.RankAttLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreAtt":
var err error
it.ScoreAtt, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreAttGT":
var err error
it.ScoreAttGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreAttGTE":
var err error
it.ScoreAttGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreAttLT":
var err error
it.ScoreAttLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreAttLTE":
var err error
it.ScoreAttLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankDef":
var err error
it.RankDef, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankDefGT":
var err error
it.RankDefGT, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "rankDefGTE":
2020-06-02 15:45:21 +00:00
var err error
it.RankDefGTE, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "rankDefLT":
2020-06-02 15:45:21 +00:00
var err error
it.RankDefLT, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "rankDefLTE":
2020-06-02 15:45:21 +00:00
var err error
it.RankDefLTE, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "scoreDef":
2020-06-02 15:45:21 +00:00
var err error
it.ScoreDef, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "scoreDefGT":
2020-06-02 15:45:21 +00:00
var err error
it.ScoreDefGT, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "scoreDefGTE":
2020-06-02 15:45:21 +00:00
var err error
it.ScoreDefGTE, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "scoreDefLT":
2020-06-02 15:45:21 +00:00
var err error
it.ScoreDefLT, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "scoreDefLTE":
2020-06-02 15:45:21 +00:00
var err error
it.ScoreDefLTE, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "rankTotal":
var err error
it.RankTotal, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankTotalGT":
var err error
it.RankTotalGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankTotalGTE":
var err error
it.RankTotalGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankTotalLT":
var err error
it.RankTotalLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "rankTotalLTE":
var err error
it.RankTotalLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreTotal":
var err error
it.ScoreTotal, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreTotalGT":
var err error
it.ScoreTotalGT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreTotalGTE":
var err error
it.ScoreTotalGTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreTotalLT":
var err error
it.ScoreTotalLT, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "scoreTotalLTE":
var err error
it.ScoreTotalLTE, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "offset":
var err error
it.Offset, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "limit":
var err error
it.Limit, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "sort":
var err error
it.Sort, err = ec.unmarshalOString2string(ctx, v)
if err != nil {
return it, err
}
}
}
return it, nil
}
func (ec *executionContext) unmarshalInputVillageFilter(ctx context.Context, obj interface{}) (models.VillageFilter, error) {
var it models.VillageFilter
2020-06-02 15:45:21 +00:00
var asMap = obj.(map[string]interface{})
for k, v := range asMap {
switch k {
case "id":
var err error
it.ID, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v)
if err != nil {
return it, err
}
case "idNEQ":
var err error
it.IdNEQ, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v)
if err != nil {
return it, err
}
case "name":
2020-06-02 15:45:21 +00:00
var err error
it.Name, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "nameNEQ":
2020-06-02 15:45:21 +00:00
var err error
it.NameNEQ, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "nameMATCH":
2020-06-02 15:45:21 +00:00
var err error
it.NameMATCH, err = ec.unmarshalOString2string(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "nameIEQ":
2020-06-02 15:45:21 +00:00
var err error
it.NameIEQ, err = ec.unmarshalOString2string(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "points":
2020-06-02 15:45:21 +00:00
var err error
it.Points, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "pointsGT":
2020-06-02 15:45:21 +00:00
var err error
it.PointsGT, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "pointsGTE":
2020-06-02 15:45:21 +00:00
var err error
it.PointsGTE, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "pointsLT":
2020-06-02 15:45:21 +00:00
var err error
it.PointsLT, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "pointsLTE":
2020-06-02 15:45:21 +00:00
var err error
it.PointsLTE, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "xGT":
2020-06-02 15:45:21 +00:00
var err error
it.XGT, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "xGTE":
2020-06-02 15:45:21 +00:00
var err error
it.XGTE, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "xLT":
2020-06-02 15:45:21 +00:00
var err error
it.XLT, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "xLTE":
2020-06-02 15:45:21 +00:00
var err error
it.XLTE, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "yGT":
2020-06-02 15:45:21 +00:00
var err error
it.YGT, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "yGTE":
2020-06-02 15:45:21 +00:00
var err error
it.YGTE, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "yLT":
2020-06-02 15:45:21 +00:00
var err error
it.YLT, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "yLTE":
2020-06-02 15:45:21 +00:00
var err error
it.YLTE, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "bonus":
2020-06-02 15:45:21 +00:00
var err error
it.Bonus, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "bonusGT":
2020-06-02 15:45:21 +00:00
var err error
it.BonusGT, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "bonusGTE":
2020-06-02 15:45:21 +00:00
var err error
it.BonusGTE, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "bonusLT":
2020-06-02 15:45:21 +00:00
var err error
it.BonusLT, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "bonusLTE":
2020-06-02 15:45:21 +00:00
var err error
it.BonusLTE, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "playerID":
2020-06-02 15:45:21 +00:00
var err error
it.PlayerID, err = ec.unmarshalOInt2ᚕintᚄ(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "offset":
2020-06-02 15:45:21 +00:00
var err error
it.Offset, err = ec.unmarshalOInt2int(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
case "limit":
2020-06-02 15:45:21 +00:00
var err error
it.Limit, err = ec.unmarshalOInt2int(ctx, v)
if err != nil {
return it, err
}
case "sort":
var err error
it.Sort, err = ec.unmarshalOString2string(ctx, v)
2020-06-02 15:45:21 +00:00
if err != nil {
return it, err
}
}
}
return it, nil
}
// endregion **************************** input.gotpl *****************************
// region ************************** interface.gotpl ***************************
// endregion ************************** interface.gotpl ***************************
// region **************************** object.gotpl ****************************
var buildingImplementors = []string{"Building"}
func (ec *executionContext) _Building(ctx context.Context, sel ast.SelectionSet, obj *models.Building) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, buildingImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Building")
case "maxLevel":
out.Values[i] = ec._Building_maxLevel(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "minLevel":
out.Values[i] = ec._Building_minLevel(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "wood":
out.Values[i] = ec._Building_wood(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "stone":
out.Values[i] = ec._Building_stone(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "iron":
out.Values[i] = ec._Building_iron(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "pop":
out.Values[i] = ec._Building_pop(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "woodFactor":
out.Values[i] = ec._Building_woodFactor(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "stoneFactor":
out.Values[i] = ec._Building_stoneFactor(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "ironFactor":
out.Values[i] = ec._Building_ironFactor(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "popFactor":
out.Values[i] = ec._Building_popFactor(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "buildTime":
out.Values[i] = ec._Building_buildTime(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "buildTimeFactor":
out.Values[i] = ec._Building_buildTimeFactor(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var buildingConfigImplementors = []string{"BuildingConfig"}
func (ec *executionContext) _BuildingConfig(ctx context.Context, sel ast.SelectionSet, obj *models.BuildingConfig) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, buildingConfigImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("BuildingConfig")
case "main":
out.Values[i] = ec._BuildingConfig_main(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "barracks":
out.Values[i] = ec._BuildingConfig_barracks(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "stable":
out.Values[i] = ec._BuildingConfig_stable(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "garage":
out.Values[i] = ec._BuildingConfig_garage(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "watchtower":
out.Values[i] = ec._BuildingConfig_watchtower(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "snob":
out.Values[i] = ec._BuildingConfig_snob(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "smith":
out.Values[i] = ec._BuildingConfig_smith(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "place":
out.Values[i] = ec._BuildingConfig_place(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "statue":
out.Values[i] = ec._BuildingConfig_statue(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "market":
out.Values[i] = ec._BuildingConfig_market(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "wood":
out.Values[i] = ec._BuildingConfig_wood(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "stone":
out.Values[i] = ec._BuildingConfig_stone(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "iron":
out.Values[i] = ec._BuildingConfig_iron(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "farm":
out.Values[i] = ec._BuildingConfig_farm(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "storage":
out.Values[i] = ec._BuildingConfig_storage(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "hide":
out.Values[i] = ec._BuildingConfig_hide(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "wall":
out.Values[i] = ec._BuildingConfig_wall(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var langVersionImplementors = []string{"LangVersion"}
func (ec *executionContext) _LangVersion(ctx context.Context, sel ast.SelectionSet, obj *models.LangVersion) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, langVersionImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("LangVersion")
case "tag":
out.Values[i] = ec._LangVersion_tag(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "name":
out.Values[i] = ec._LangVersion_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "host":
out.Values[i] = ec._LangVersion_host(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "timezone":
out.Values[i] = ec._LangVersion_timezone(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var langVersionsListImplementors = []string{"LangVersionsList"}
func (ec *executionContext) _LangVersionsList(ctx context.Context, sel ast.SelectionSet, obj *LangVersionsList) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, langVersionsListImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("LangVersionsList")
case "items":
out.Values[i] = ec._LangVersionsList_items(ctx, field, obj)
case "total":
out.Values[i] = ec._LangVersionsList_total(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var liveEnnoblementImplementors = []string{"LiveEnnoblement"}
func (ec *executionContext) _LiveEnnoblement(ctx context.Context, sel ast.SelectionSet, obj *models.LiveEnnoblement) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, liveEnnoblementImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("LiveEnnoblement")
case "village":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._LiveEnnoblement_village(ctx, field, obj)
return res
})
case "newOwner":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._LiveEnnoblement_newOwner(ctx, field, obj)
return res
})
case "oldOwner":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._LiveEnnoblement_oldOwner(ctx, field, obj)
return res
})
case "ennobledAt":
out.Values[i] = ec._LiveEnnoblement_ennobledAt(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var playerImplementors = []string{"Player"}
func (ec *executionContext) _Player(ctx context.Context, sel ast.SelectionSet, obj *models.Player) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, playerImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Player")
case "id":
out.Values[i] = ec._Player_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "name":
out.Values[i] = ec._Player_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "totalVillages":
out.Values[i] = ec._Player_totalVillages(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "points":
out.Values[i] = ec._Player_points(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "rank":
out.Values[i] = ec._Player_rank(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "exist":
out.Values[i] = ec._Player_exist(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "rankAtt":
out.Values[i] = ec._Player_rankAtt(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "scoreAtt":
out.Values[i] = ec._Player_scoreAtt(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "rankDef":
out.Values[i] = ec._Player_rankDef(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "scoreDef":
out.Values[i] = ec._Player_scoreDef(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "rankSup":
out.Values[i] = ec._Player_rankSup(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "scoreSup":
out.Values[i] = ec._Player_scoreSup(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "rankTotal":
out.Values[i] = ec._Player_rankTotal(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "scoreTotal":
out.Values[i] = ec._Player_scoreTotal(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "tribe":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Player_tribe(ctx, field, obj)
return res
})
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var playersListImplementors = []string{"PlayersList"}
func (ec *executionContext) _PlayersList(ctx context.Context, sel ast.SelectionSet, obj *PlayersList) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, playersListImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("PlayersList")
case "items":
out.Values[i] = ec._PlayersList_items(ctx, field, obj)
case "total":
out.Values[i] = ec._PlayersList_total(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var queryImplementors = []string{"Query"}
func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
Object: "Query",
})
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Query")
case "langVersions":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_langVersions(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
return res
})
case "langVersion":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_langVersion(ctx, field)
return res
})
case "liveEnnoblements":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_liveEnnoblements(ctx, field)
return res
})
case "players":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_players(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
return res
})
case "player":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_player(ctx, field)
return res
})
case "servers":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_servers(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
return res
})
case "server":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_server(ctx, field)
return res
})
case "tribes":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_tribes(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
return res
})
case "tribe":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_tribe(ctx, field)
return res
})
case "villages":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_villages(ctx, field)
if res == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
return res
})
case "village":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Query_village(ctx, field)
return res
})
case "__type":
out.Values[i] = ec._Query___type(ctx, field)
case "__schema":
out.Values[i] = ec._Query___schema(ctx, field)
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var serverImplementors = []string{"Server"}
func (ec *executionContext) _Server(ctx context.Context, sel ast.SelectionSet, obj *models.Server) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Server")
case "id":
out.Values[i] = ec._Server_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "key":
out.Values[i] = ec._Server_key(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "status":
out.Values[i] = ec._Server_status(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "langVersion":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Server_langVersion(ctx, field, obj)
return res
})
case "config":
out.Values[i] = ec._Server_config(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "unitConfig":
out.Values[i] = ec._Server_unitConfig(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "buildingConfig":
out.Values[i] = ec._Server_buildingConfig(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
2020-06-02 15:45:21 +00:00
}
case "dataUpdatedAt":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Server_dataUpdatedAt(ctx, field, obj)
if res == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
return res
})
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var serverConfigImplementors = []string{"ServerConfig"}
func (ec *executionContext) _ServerConfig(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfig) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfig")
case "speed":
out.Values[i] = ec._ServerConfig_speed(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "unitSpeed":
out.Values[i] = ec._ServerConfig_unitSpeed(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "moral":
out.Values[i] = ec._ServerConfig_moral(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "build":
out.Values[i] = ec._ServerConfig_build(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "misc":
out.Values[i] = ec._ServerConfig_misc(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "commands":
out.Values[i] = ec._ServerConfig_commands(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "newbie":
out.Values[i] = ec._ServerConfig_newbie(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "game":
out.Values[i] = ec._ServerConfig_game(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "buildings":
out.Values[i] = ec._ServerConfig_buildings(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "snob":
out.Values[i] = ec._ServerConfig_snob(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "ally":
out.Values[i] = ec._ServerConfig_ally(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "coord":
out.Values[i] = ec._ServerConfig_coord(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "sitter":
out.Values[i] = ec._ServerConfig_sitter(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "sleep":
out.Values[i] = ec._ServerConfig_sleep(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "night":
out.Values[i] = ec._ServerConfig_night(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "win":
out.Values[i] = ec._ServerConfig_win(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
default:
panic("unknown field " + strconv.Quote(field.Name))
2020-06-02 15:45:21 +00:00
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
2020-06-02 15:45:21 +00:00
}
var serverConfigAllyImplementors = []string{"ServerConfigAlly"}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) _ServerConfigAlly(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigAlly) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigAllyImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigAlly")
case "noHarm":
out.Values[i] = ec._ServerConfigAlly_noHarm(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "noOtherSupport":
out.Values[i] = ec._ServerConfigAlly_noOtherSupport(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "allytimeSupport":
out.Values[i] = ec._ServerConfigAlly_allytimeSupport(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "noLeave":
out.Values[i] = ec._ServerConfigAlly_noLeave(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "noJoin":
out.Values[i] = ec._ServerConfigAlly_noJoin(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "limit":
out.Values[i] = ec._ServerConfigAlly_limit(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "fixedAllies":
out.Values[i] = ec._ServerConfigAlly_fixedAllies(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "pointsMemberCount":
out.Values[i] = ec._ServerConfigAlly_pointsMemberCount(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "warsMemberRequirement":
out.Values[i] = ec._ServerConfigAlly_warsMemberRequirement(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "warsPointsRequirement":
out.Values[i] = ec._ServerConfigAlly_warsPointsRequirement(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "warsAutoacceptDays":
out.Values[i] = ec._ServerConfigAlly_warsAutoacceptDays(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "levels":
out.Values[i] = ec._ServerConfigAlly_levels(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-18 15:15:31 +00:00
}
case "xpRequirements":
out.Values[i] = ec._ServerConfigAlly_xpRequirements(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-18 15:15:31 +00:00
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var serverConfigBuildImplementors = []string{"ServerConfigBuild"}
func (ec *executionContext) _ServerConfigBuild(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigBuild) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigBuildImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigBuild")
case "destroy":
out.Values[i] = ec._ServerConfigBuild_destroy(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-18 15:15:31 +00:00
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var serverConfigBuildingsImplementors = []string{"ServerConfigBuildings"}
func (ec *executionContext) _ServerConfigBuildings(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigBuildings) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigBuildingsImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigBuildings")
case "customMain":
out.Values[i] = ec._ServerConfigBuildings_customMain(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-18 15:15:31 +00:00
}
case "customFarm":
out.Values[i] = ec._ServerConfigBuildings_customFarm(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-18 15:15:31 +00:00
}
case "customStorage":
out.Values[i] = ec._ServerConfigBuildings_customStorage(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-18 15:15:31 +00:00
}
case "customPlace":
out.Values[i] = ec._ServerConfigBuildings_customPlace(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-18 15:15:31 +00:00
}
case "customBarracks":
out.Values[i] = ec._ServerConfigBuildings_customBarracks(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-18 15:15:31 +00:00
}
case "customChurch":
out.Values[i] = ec._ServerConfigBuildings_customChurch(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "customSmith":
out.Values[i] = ec._ServerConfigBuildings_customSmith(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "customWood":
out.Values[i] = ec._ServerConfigBuildings_customWood(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "customStone":
out.Values[i] = ec._ServerConfigBuildings_customStone(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "customIron":
out.Values[i] = ec._ServerConfigBuildings_customIron(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "customMarket":
out.Values[i] = ec._ServerConfigBuildings_customMarket(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "customStable":
out.Values[i] = ec._ServerConfigBuildings_customStable(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "customWall":
out.Values[i] = ec._ServerConfigBuildings_customWall(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "customGarage":
out.Values[i] = ec._ServerConfigBuildings_customGarage(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "customHide":
out.Values[i] = ec._ServerConfigBuildings_customHide(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "customSnob":
out.Values[i] = ec._ServerConfigBuildings_customSnob(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "customStatue":
out.Values[i] = ec._ServerConfigBuildings_customStatue(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "customWatchtower":
out.Values[i] = ec._ServerConfigBuildings_customWatchtower(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
default:
panic("unknown field " + strconv.Quote(field.Name))
2020-06-02 15:45:21 +00:00
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
2020-06-02 15:45:21 +00:00
}
var serverConfigCommandsImplementors = []string{"ServerConfigCommands"}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) _ServerConfigCommands(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigCommands) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigCommandsImplementors)
2020-06-02 15:45:21 +00:00
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigCommands")
case "millisArrival":
out.Values[i] = ec._ServerConfigCommands_millisArrival(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "commandCancelTime":
out.Values[i] = ec._ServerConfigCommands_commandCancelTime(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
2020-06-02 15:45:21 +00:00
var serverConfigCoordImplementors = []string{"ServerConfigCoord"}
2020-06-03 15:21:28 +00:00
func (ec *executionContext) _ServerConfigCoord(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigCoord) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigCoordImplementors)
2020-06-03 15:21:28 +00:00
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigCoord")
case "mapSize":
out.Values[i] = ec._ServerConfigCoord_mapSize(ctx, field, obj)
2020-06-03 15:21:28 +00:00
if out.Values[i] == graphql.Null {
invalids++
}
case "func":
out.Values[i] = ec._ServerConfigCoord_func(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "emptyVillages":
out.Values[i] = ec._ServerConfigCoord_emptyVillages(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "bonusVillages":
out.Values[i] = ec._ServerConfigCoord_bonusVillages(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "bonusNew":
out.Values[i] = ec._ServerConfigCoord_bonusNew(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "inner":
out.Values[i] = ec._ServerConfigCoord_inner(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "selectStart":
out.Values[i] = ec._ServerConfigCoord_selectStart(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "villageMoveWait":
out.Values[i] = ec._ServerConfigCoord_villageMoveWait(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "nobleRestart":
out.Values[i] = ec._ServerConfigCoord_nobleRestart(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "startVillages":
out.Values[i] = ec._ServerConfigCoord_startVillages(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-03 15:21:28 +00:00
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var serverConfigGameImplementors = []string{"ServerConfigGame"}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) _ServerConfigGame(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigGame) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigGameImplementors)
2020-06-02 15:45:21 +00:00
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigGame")
case "buildtimeFormula":
out.Values[i] = ec._ServerConfigGame_buildtimeFormula(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
}
case "knight":
out.Values[i] = ec._ServerConfigGame_knight(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
}
case "knightNewItems":
out.Values[i] = ec._ServerConfigGame_knightNewItems(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
}
case "archer":
out.Values[i] = ec._ServerConfigGame_archer(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "tech":
out.Values[i] = ec._ServerConfigGame_tech(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "farmLimit":
out.Values[i] = ec._ServerConfigGame_farmLimit(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "church":
out.Values[i] = ec._ServerConfigGame_church(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "watchtower":
out.Values[i] = ec._ServerConfigGame_watchtower(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "stronghold":
out.Values[i] = ec._ServerConfigGame_stronghold(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "fakeLimit":
out.Values[i] = ec._ServerConfigGame_fakeLimit(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "barbarianRise":
out.Values[i] = ec._ServerConfigGame_barbarianRise(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "barbarianShrink":
out.Values[i] = ec._ServerConfigGame_barbarianShrink(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "barbarianMaxPoints":
out.Values[i] = ec._ServerConfigGame_barbarianMaxPoints(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "hauls":
out.Values[i] = ec._ServerConfigGame_hauls(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "haulsBase":
out.Values[i] = ec._ServerConfigGame_haulsBase(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "haulsMax":
out.Values[i] = ec._ServerConfigGame_haulsMax(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "baseProduction":
out.Values[i] = ec._ServerConfigGame_baseProduction(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "event":
out.Values[i] = ec._ServerConfigGame_event(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "suppressEvents":
out.Values[i] = ec._ServerConfigGame_suppressEvents(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var serverConfigMiscImplementors = []string{"ServerConfigMisc"}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) _ServerConfigMisc(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigMisc) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigMiscImplementors)
2020-06-02 15:45:21 +00:00
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigMisc")
case "killRanking":
out.Values[i] = ec._ServerConfigMisc_killRanking(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "tutorial":
out.Values[i] = ec._ServerConfigMisc_tutorial(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "tradeCancelTime":
out.Values[i] = ec._ServerConfigMisc_tradeCancelTime(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var serverConfigNewbieImplementors = []string{"ServerConfigNewbie"}
func (ec *executionContext) _ServerConfigNewbie(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigNewbie) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigNewbieImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigNewbie")
case "days":
out.Values[i] = ec._ServerConfigNewbie_days(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "ratioDays":
out.Values[i] = ec._ServerConfigNewbie_ratioDays(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "ratio":
out.Values[i] = ec._ServerConfigNewbie_ratio(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "removeNewbieVillages":
out.Values[i] = ec._ServerConfigNewbie_removeNewbieVillages(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var serverConfigNightImplementors = []string{"ServerConfigNight"}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) _ServerConfigNight(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigNight) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigNightImplementors)
2020-06-02 15:45:21 +00:00
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigNight")
case "active":
out.Values[i] = ec._ServerConfigNight_active(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "startHour":
out.Values[i] = ec._ServerConfigNight_startHour(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "endHour":
out.Values[i] = ec._ServerConfigNight_endHour(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "defFactor":
out.Values[i] = ec._ServerConfigNight_defFactor(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var serverConfigSitterImplementors = []string{"ServerConfigSitter"}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) _ServerConfigSitter(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigSitter) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigSitterImplementors)
2020-06-02 15:45:21 +00:00
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigSitter")
case "allow":
out.Values[i] = ec._ServerConfigSitter_allow(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var serverConfigSleepImplementors = []string{"ServerConfigSleep"}
func (ec *executionContext) _ServerConfigSleep(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigSleep) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigSleepImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigSleep")
case "active":
out.Values[i] = ec._ServerConfigSleep_active(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "delay":
out.Values[i] = ec._ServerConfigSleep_delay(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "min":
out.Values[i] = ec._ServerConfigSleep_min(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "max":
out.Values[i] = ec._ServerConfigSleep_max(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "minAwake":
out.Values[i] = ec._ServerConfigSleep_minAwake(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "maxAwake":
out.Values[i] = ec._ServerConfigSleep_maxAwake(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "warnTime":
out.Values[i] = ec._ServerConfigSleep_warnTime(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
2020-06-02 15:45:21 +00:00
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var serverConfigSnobImplementors = []string{"ServerConfigSnob"}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) _ServerConfigSnob(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigSnob) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigSnobImplementors)
2020-06-02 15:45:21 +00:00
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigSnob")
case "gold":
out.Values[i] = ec._ServerConfigSnob_gold(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "cheapRebuild":
out.Values[i] = ec._ServerConfigSnob_cheapRebuild(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
case "rise":
out.Values[i] = ec._ServerConfigSnob_rise(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
}
case "maxDist":
out.Values[i] = ec._ServerConfigSnob_maxDist(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "factor":
out.Values[i] = ec._ServerConfigSnob_factor(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "coinWood":
out.Values[i] = ec._ServerConfigSnob_coinWood(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "coinStone":
out.Values[i] = ec._ServerConfigSnob_coinStone(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "coinIron":
out.Values[i] = ec._ServerConfigSnob_coinIron(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "noBarbConquer":
out.Values[i] = ec._ServerConfigSnob_noBarbConquer(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var serverConfigWinImplementors = []string{"ServerConfigWin"}
func (ec *executionContext) _ServerConfigWin(ctx context.Context, sel ast.SelectionSet, obj *models.ServerConfigWin) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serverConfigWinImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("ServerConfigWin")
case "check":
out.Values[i] = ec._ServerConfigWin_check(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
2020-06-02 15:45:21 +00:00
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
2020-06-04 14:23:08 +00:00
var serversListImplementors = []string{"ServersList"}
2020-06-02 15:45:21 +00:00
2020-06-04 14:23:08 +00:00
func (ec *executionContext) _ServersList(ctx context.Context, sel ast.SelectionSet, obj *ServersList) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, serversListImplementors)
2020-06-02 15:45:21 +00:00
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
2020-06-04 14:23:08 +00:00
out.Values[i] = graphql.MarshalString("ServersList")
2020-06-02 15:45:21 +00:00
case "items":
2020-06-04 14:23:08 +00:00
out.Values[i] = ec._ServersList_items(ctx, field, obj)
2020-06-02 15:45:21 +00:00
case "total":
2020-06-04 14:23:08 +00:00
out.Values[i] = ec._ServersList_total(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var tribeImplementors = []string{"Tribe"}
func (ec *executionContext) _Tribe(ctx context.Context, sel ast.SelectionSet, obj *models.Tribe) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, tribeImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Tribe")
case "id":
out.Values[i] = ec._Tribe_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "name":
out.Values[i] = ec._Tribe_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "tag":
out.Values[i] = ec._Tribe_tag(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "totalMembers":
out.Values[i] = ec._Tribe_totalMembers(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "totalVillages":
out.Values[i] = ec._Tribe_totalVillages(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "points":
out.Values[i] = ec._Tribe_points(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "allPoints":
out.Values[i] = ec._Tribe_allPoints(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "rank":
out.Values[i] = ec._Tribe_rank(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "exist":
out.Values[i] = ec._Tribe_exist(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "rankAtt":
out.Values[i] = ec._Tribe_rankAtt(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "scoreAtt":
out.Values[i] = ec._Tribe_scoreAtt(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "rankDef":
out.Values[i] = ec._Tribe_rankDef(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "scoreDef":
out.Values[i] = ec._Tribe_scoreDef(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "rankTotal":
out.Values[i] = ec._Tribe_rankTotal(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "scoreTotal":
out.Values[i] = ec._Tribe_scoreTotal(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
2020-06-04 14:23:08 +00:00
var tribesListImplementors = []string{"TribesList"}
2020-06-02 15:45:21 +00:00
2020-06-04 14:23:08 +00:00
func (ec *executionContext) _TribesList(ctx context.Context, sel ast.SelectionSet, obj *TribesList) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, tribesListImplementors)
2020-06-02 15:45:21 +00:00
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
2020-06-04 14:23:08 +00:00
out.Values[i] = graphql.MarshalString("TribesList")
2020-06-02 15:45:21 +00:00
case "items":
2020-06-04 14:23:08 +00:00
out.Values[i] = ec._TribesList_items(ctx, field, obj)
2020-06-02 15:45:21 +00:00
case "total":
2020-06-04 14:23:08 +00:00
out.Values[i] = ec._TribesList_total(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var unitImplementors = []string{"Unit"}
func (ec *executionContext) _Unit(ctx context.Context, sel ast.SelectionSet, obj *models.Unit) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, unitImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Unit")
case "buildTime":
out.Values[i] = ec._Unit_buildTime(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "pop":
out.Values[i] = ec._Unit_pop(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "speed":
out.Values[i] = ec._Unit_speed(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "attack":
out.Values[i] = ec._Unit_attack(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "defense":
out.Values[i] = ec._Unit_defense(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "defenseCavalry":
out.Values[i] = ec._Unit_defenseCavalry(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "defenseArcher":
out.Values[i] = ec._Unit_defenseArcher(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "carry":
out.Values[i] = ec._Unit_carry(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var unitConfigImplementors = []string{"UnitConfig"}
func (ec *executionContext) _UnitConfig(ctx context.Context, sel ast.SelectionSet, obj *models.UnitConfig) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, unitConfigImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("UnitConfig")
case "spear":
out.Values[i] = ec._UnitConfig_spear(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "sword":
out.Values[i] = ec._UnitConfig_sword(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "axe":
out.Values[i] = ec._UnitConfig_axe(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "archer":
out.Values[i] = ec._UnitConfig_archer(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "spy":
out.Values[i] = ec._UnitConfig_spy(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "light":
out.Values[i] = ec._UnitConfig_light(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "marcher":
out.Values[i] = ec._UnitConfig_marcher(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "heavy":
out.Values[i] = ec._UnitConfig_heavy(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "ram":
out.Values[i] = ec._UnitConfig_ram(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "catapult":
out.Values[i] = ec._UnitConfig_catapult(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "knight":
out.Values[i] = ec._UnitConfig_knight(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "snob":
out.Values[i] = ec._UnitConfig_snob(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "militia":
out.Values[i] = ec._UnitConfig_militia(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
2020-06-02 15:45:21 +00:00
var villageImplementors = []string{"Village"}
func (ec *executionContext) _Village(ctx context.Context, sel ast.SelectionSet, obj *models.Village) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, villageImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("Village")
case "id":
out.Values[i] = ec._Village_id(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "name":
out.Values[i] = ec._Village_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "points":
out.Values[i] = ec._Village_points(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "x":
out.Values[i] = ec._Village_x(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "y":
out.Values[i] = ec._Village_y(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "bonus":
out.Values[i] = ec._Village_bonus(ctx, field, obj)
if out.Values[i] == graphql.Null {
atomic.AddUint32(&invalids, 1)
}
case "player":
field := field
out.Concurrently(i, func() (res graphql.Marshaler) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
}
}()
res = ec._Village_player(ctx, field, obj)
return res
})
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
2020-06-04 14:23:08 +00:00
var villagesListImplementors = []string{"VillagesList"}
2020-06-02 15:45:21 +00:00
2020-06-04 14:23:08 +00:00
func (ec *executionContext) _VillagesList(ctx context.Context, sel ast.SelectionSet, obj *VillagesList) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, villagesListImplementors)
2020-06-02 15:45:21 +00:00
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
2020-06-04 14:23:08 +00:00
out.Values[i] = graphql.MarshalString("VillagesList")
2020-06-02 15:45:21 +00:00
case "items":
2020-06-04 14:23:08 +00:00
out.Values[i] = ec._VillagesList_items(ctx, field, obj)
2020-06-02 15:45:21 +00:00
case "total":
2020-06-04 14:23:08 +00:00
out.Values[i] = ec._VillagesList_total(ctx, field, obj)
2020-06-02 15:45:21 +00:00
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var __DirectiveImplementors = []string{"__Directive"}
func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Directive")
case "name":
out.Values[i] = ec.___Directive_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "description":
out.Values[i] = ec.___Directive_description(ctx, field, obj)
case "locations":
out.Values[i] = ec.___Directive_locations(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "args":
out.Values[i] = ec.___Directive_args(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var __EnumValueImplementors = []string{"__EnumValue"}
func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__EnumValue")
case "name":
out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "description":
out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
case "isDeprecated":
out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "deprecationReason":
out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var __FieldImplementors = []string{"__Field"}
func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Field")
case "name":
out.Values[i] = ec.___Field_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "description":
out.Values[i] = ec.___Field_description(ctx, field, obj)
case "args":
out.Values[i] = ec.___Field_args(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "type":
out.Values[i] = ec.___Field_type(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "isDeprecated":
out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "deprecationReason":
out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var __InputValueImplementors = []string{"__InputValue"}
func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__InputValue")
case "name":
out.Values[i] = ec.___InputValue_name(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "description":
out.Values[i] = ec.___InputValue_description(ctx, field, obj)
case "type":
out.Values[i] = ec.___InputValue_type(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "defaultValue":
out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var __SchemaImplementors = []string{"__Schema"}
func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Schema")
case "types":
out.Values[i] = ec.___Schema_types(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "queryType":
out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "mutationType":
out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
case "subscriptionType":
out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
case "directives":
out.Values[i] = ec.___Schema_directives(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
var __TypeImplementors = []string{"__Type"}
func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
out := graphql.NewFieldSet(fields)
var invalids uint32
for i, field := range fields {
switch field.Name {
case "__typename":
out.Values[i] = graphql.MarshalString("__Type")
case "kind":
out.Values[i] = ec.___Type_kind(ctx, field, obj)
if out.Values[i] == graphql.Null {
invalids++
}
case "name":
out.Values[i] = ec.___Type_name(ctx, field, obj)
case "description":
out.Values[i] = ec.___Type_description(ctx, field, obj)
case "fields":
out.Values[i] = ec.___Type_fields(ctx, field, obj)
case "interfaces":
out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
case "possibleTypes":
out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
case "enumValues":
out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
case "inputFields":
out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
case "ofType":
out.Values[i] = ec.___Type_ofType(ctx, field, obj)
default:
panic("unknown field " + strconv.Quote(field.Name))
}
}
out.Dispatch()
if invalids > 0 {
return graphql.Null
}
return out
}
// endregion **************************** object.gotpl ****************************
// region ***************************** type.gotpl *****************************
func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
return graphql.UnmarshalBoolean(v)
}
func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
res := graphql.MarshalBoolean(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
}
return res
}
func (ec *executionContext) unmarshalNBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalNBoolean2bool(ctx, v)
return &res, err
}
func (ec *executionContext) marshalNBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
return ec.marshalNBoolean2bool(ctx, sel, *v)
}
func (ec *executionContext) marshalNBuilding2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuilding(ctx context.Context, sel ast.SelectionSet, v models.Building) graphql.Marshaler {
return ec._Building(ctx, sel, &v)
}
func (ec *executionContext) marshalNBuildingConfig2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐBuildingConfig(ctx context.Context, sel ast.SelectionSet, v models.BuildingConfig) graphql.Marshaler {
return ec._BuildingConfig(ctx, sel, &v)
}
func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) {
return graphql.UnmarshalFloat(v)
}
func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler {
res := graphql.MarshalFloat(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
}
return res
}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) {
return graphql.UnmarshalInt(v)
}
func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
res := graphql.MarshalInt(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
}
return res
}
func (ec *executionContext) marshalNLangVersion2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersion(ctx context.Context, sel ast.SelectionSet, v models.LangVersion) graphql.Marshaler {
return ec._LangVersion(ctx, sel, &v)
}
func (ec *executionContext) marshalNLangVersion2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersion(ctx context.Context, sel ast.SelectionSet, v *models.LangVersion) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
return ec._LangVersion(ctx, sel, v)
}
2020-06-04 14:23:08 +00:00
func (ec *executionContext) marshalNLangVersionsList2githubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐLangVersionsList(ctx context.Context, sel ast.SelectionSet, v LangVersionsList) graphql.Marshaler {
return ec._LangVersionsList(ctx, sel, &v)
2020-06-02 15:45:21 +00:00
}
2020-06-04 14:23:08 +00:00
func (ec *executionContext) marshalNLangVersionsList2ᚖgithubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐLangVersionsList(ctx context.Context, sel ast.SelectionSet, v *LangVersionsList) graphql.Marshaler {
2020-06-02 15:45:21 +00:00
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
2020-06-04 14:23:08 +00:00
return ec._LangVersionsList(ctx, sel, v)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) unmarshalNLanguageTag2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLanguageTag(ctx context.Context, v interface{}) (models.LanguageTag, error) {
var res models.LanguageTag
return res, res.UnmarshalGQL(v)
}
func (ec *executionContext) marshalNLanguageTag2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLanguageTag(ctx context.Context, sel ast.SelectionSet, v models.LanguageTag) graphql.Marshaler {
return v
}
func (ec *executionContext) marshalNLiveEnnoblement2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLiveEnnoblement(ctx context.Context, sel ast.SelectionSet, v models.LiveEnnoblement) graphql.Marshaler {
return ec._LiveEnnoblement(ctx, sel, &v)
}
func (ec *executionContext) marshalNLiveEnnoblement2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLiveEnnoblement(ctx context.Context, sel ast.SelectionSet, v *models.LiveEnnoblement) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
return ec._LiveEnnoblement(ctx, sel, v)
}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) marshalNPlayer2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayer(ctx context.Context, sel ast.SelectionSet, v models.Player) graphql.Marshaler {
return ec._Player(ctx, sel, &v)
}
func (ec *executionContext) marshalNPlayer2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayer(ctx context.Context, sel ast.SelectionSet, v *models.Player) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
return ec._Player(ctx, sel, v)
}
2020-06-04 14:23:08 +00:00
func (ec *executionContext) marshalNPlayersList2githubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐPlayersList(ctx context.Context, sel ast.SelectionSet, v PlayersList) graphql.Marshaler {
return ec._PlayersList(ctx, sel, &v)
2020-06-02 15:45:21 +00:00
}
2020-06-04 14:23:08 +00:00
func (ec *executionContext) marshalNPlayersList2ᚖgithubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐPlayersList(ctx context.Context, sel ast.SelectionSet, v *PlayersList) graphql.Marshaler {
2020-06-02 15:45:21 +00:00
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
2020-06-04 14:23:08 +00:00
return ec._PlayersList(ctx, sel, v)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) marshalNServer2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServer(ctx context.Context, sel ast.SelectionSet, v models.Server) graphql.Marshaler {
return ec._Server(ctx, sel, &v)
}
func (ec *executionContext) marshalNServer2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServer(ctx context.Context, sel ast.SelectionSet, v *models.Server) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
return ec._Server(ctx, sel, v)
}
func (ec *executionContext) marshalNServerConfig2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfig(ctx context.Context, sel ast.SelectionSet, v models.ServerConfig) graphql.Marshaler {
return ec._ServerConfig(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigAlly2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigAlly(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigAlly) graphql.Marshaler {
return ec._ServerConfigAlly(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigBuild2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigBuild(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigBuild) graphql.Marshaler {
return ec._ServerConfigBuild(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigBuildings2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigBuildings(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigBuildings) graphql.Marshaler {
return ec._ServerConfigBuildings(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigCommands2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigCommands(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigCommands) graphql.Marshaler {
return ec._ServerConfigCommands(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigCoord2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigCoord(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigCoord) graphql.Marshaler {
return ec._ServerConfigCoord(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigGame2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigGame(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigGame) graphql.Marshaler {
return ec._ServerConfigGame(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigMisc2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigMisc(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigMisc) graphql.Marshaler {
return ec._ServerConfigMisc(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigNewbie2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigNewbie(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigNewbie) graphql.Marshaler {
return ec._ServerConfigNewbie(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigNight2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigNight(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigNight) graphql.Marshaler {
return ec._ServerConfigNight(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigSitter2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigSitter(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigSitter) graphql.Marshaler {
return ec._ServerConfigSitter(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigSleep2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigSleep(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigSleep) graphql.Marshaler {
return ec._ServerConfigSleep(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigSnob2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigSnob(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigSnob) graphql.Marshaler {
return ec._ServerConfigSnob(ctx, sel, &v)
}
func (ec *executionContext) marshalNServerConfigWin2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerConfigWin(ctx context.Context, sel ast.SelectionSet, v models.ServerConfigWin) graphql.Marshaler {
return ec._ServerConfigWin(ctx, sel, &v)
}
2020-06-04 14:23:08 +00:00
func (ec *executionContext) unmarshalNServerStatus2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerStatus(ctx context.Context, v interface{}) (models.ServerStatus, error) {
var res models.ServerStatus
return res, res.UnmarshalGQL(v)
}
func (ec *executionContext) marshalNServerStatus2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerStatus(ctx context.Context, sel ast.SelectionSet, v models.ServerStatus) graphql.Marshaler {
return v
}
func (ec *executionContext) marshalNServersList2githubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐServersList(ctx context.Context, sel ast.SelectionSet, v ServersList) graphql.Marshaler {
return ec._ServersList(ctx, sel, &v)
2020-06-02 15:45:21 +00:00
}
2020-06-04 14:23:08 +00:00
func (ec *executionContext) marshalNServersList2ᚖgithubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐServersList(ctx context.Context, sel ast.SelectionSet, v *ServersList) graphql.Marshaler {
2020-06-02 15:45:21 +00:00
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
2020-06-04 14:23:08 +00:00
return ec._ServersList(ctx, sel, v)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) {
return graphql.UnmarshalString(v)
}
func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
res := graphql.MarshalString(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
}
return res
}
2020-06-03 15:21:28 +00:00
func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) {
return graphql.UnmarshalTime(v)
}
func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
res := graphql.MarshalTime(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
}
return res
}
func (ec *executionContext) unmarshalNTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalNTime2timeᚐTime(ctx, v)
return &res, err
}
func (ec *executionContext) marshalNTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
return ec.marshalNTime2timeᚐTime(ctx, sel, *v)
}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) marshalNTribe2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribe(ctx context.Context, sel ast.SelectionSet, v models.Tribe) graphql.Marshaler {
return ec._Tribe(ctx, sel, &v)
}
func (ec *executionContext) marshalNTribe2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribe(ctx context.Context, sel ast.SelectionSet, v *models.Tribe) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
return ec._Tribe(ctx, sel, v)
}
2020-06-04 14:23:08 +00:00
func (ec *executionContext) marshalNTribesList2githubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐTribesList(ctx context.Context, sel ast.SelectionSet, v TribesList) graphql.Marshaler {
return ec._TribesList(ctx, sel, &v)
2020-06-02 15:45:21 +00:00
}
2020-06-04 14:23:08 +00:00
func (ec *executionContext) marshalNTribesList2ᚖgithubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐTribesList(ctx context.Context, sel ast.SelectionSet, v *TribesList) graphql.Marshaler {
2020-06-02 15:45:21 +00:00
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
2020-06-04 14:23:08 +00:00
return ec._TribesList(ctx, sel, v)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) marshalNUnit2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnit(ctx context.Context, sel ast.SelectionSet, v models.Unit) graphql.Marshaler {
return ec._Unit(ctx, sel, &v)
}
func (ec *executionContext) marshalNUnitConfig2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐUnitConfig(ctx context.Context, sel ast.SelectionSet, v models.UnitConfig) graphql.Marshaler {
return ec._UnitConfig(ctx, sel, &v)
}
2020-06-02 15:45:21 +00:00
func (ec *executionContext) marshalNVillage2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillage(ctx context.Context, sel ast.SelectionSet, v models.Village) graphql.Marshaler {
return ec._Village(ctx, sel, &v)
}
func (ec *executionContext) marshalNVillage2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillage(ctx context.Context, sel ast.SelectionSet, v *models.Village) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
return ec._Village(ctx, sel, v)
}
2020-06-04 14:23:08 +00:00
func (ec *executionContext) marshalNVillagesList2githubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐVillagesList(ctx context.Context, sel ast.SelectionSet, v VillagesList) graphql.Marshaler {
return ec._VillagesList(ctx, sel, &v)
2020-06-02 15:45:21 +00:00
}
2020-06-04 14:23:08 +00:00
func (ec *executionContext) marshalNVillagesList2ᚖgithubᚗcomᚋtribalwarshelpᚋapiᚋgraphqlᚋgeneratedᚐVillagesList(ctx context.Context, sel ast.SelectionSet, v *VillagesList) graphql.Marshaler {
2020-06-02 15:45:21 +00:00
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
2020-06-04 14:23:08 +00:00
return ec._VillagesList(ctx, sel, v)
2020-06-02 15:45:21 +00:00
}
func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
return ec.___Directive(ctx, sel, &v)
}
func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) {
return graphql.UnmarshalString(v)
}
func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
res := graphql.MarshalString(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
}
return res
}
func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
var vSlice []interface{}
if v != nil {
if tmp1, ok := v.([]interface{}); ok {
vSlice = tmp1
} else {
vSlice = []interface{}{v}
}
}
var err error
res := make([]string, len(vSlice))
for i := range vSlice {
res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
return ec.___EnumValue(ctx, sel, &v)
}
func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
return ec.___Field(ctx, sel, &v)
}
func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
return ec.___InputValue(ctx, sel, &v)
}
func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
return ec.___Type(ctx, sel, &v)
}
func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
if v == nil {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
return graphql.Null
}
return ec.___Type(ctx, sel, v)
}
func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) {
return graphql.UnmarshalString(v)
}
func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
res := graphql.MarshalString(v)
if res == graphql.Null {
if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
ec.Errorf(ctx, "must not be null")
}
}
return res
}
func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
return graphql.UnmarshalBoolean(v)
}
func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
return graphql.MarshalBoolean(v)
}
func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalOBoolean2bool(ctx, v)
return &res, err
}
func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec.marshalOBoolean2bool(ctx, sel, *v)
}
func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) {
return graphql.UnmarshalInt(v)
}
func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
return graphql.MarshalInt(v)
}
func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) {
var vSlice []interface{}
if v != nil {
if tmp1, ok := v.([]interface{}); ok {
vSlice = tmp1
} else {
vSlice = []interface{}{v}
}
}
var err error
res := make([]int, len(vSlice))
for i := range vSlice {
res[i], err = ec.unmarshalNInt2int(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalOInt2ᚕintᚄ(ctx context.Context, sel ast.SelectionSet, v []int) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
for i := range v {
ret[i] = ec.marshalNInt2int(ctx, sel, v[i])
}
return ret
}
func (ec *executionContext) marshalOLangVersion2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersion(ctx context.Context, sel ast.SelectionSet, v models.LangVersion) graphql.Marshaler {
return ec._LangVersion(ctx, sel, &v)
}
func (ec *executionContext) marshalOLangVersion2ᚕᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersionᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.LangVersion) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalNLangVersion2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersion(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalOLangVersion2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersion(ctx context.Context, sel ast.SelectionSet, v *models.LangVersion) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._LangVersion(ctx, sel, v)
}
func (ec *executionContext) unmarshalOLangVersionFilter2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersionFilter(ctx context.Context, v interface{}) (models.LangVersionFilter, error) {
return ec.unmarshalInputLangVersionFilter(ctx, v)
}
func (ec *executionContext) unmarshalOLangVersionFilter2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersionFilter(ctx context.Context, v interface{}) (*models.LangVersionFilter, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalOLangVersionFilter2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLangVersionFilter(ctx, v)
return &res, err
}
func (ec *executionContext) unmarshalOLanguageTag2ᚕgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLanguageTagᚄ(ctx context.Context, v interface{}) ([]models.LanguageTag, error) {
var vSlice []interface{}
if v != nil {
if tmp1, ok := v.([]interface{}); ok {
vSlice = tmp1
} else {
vSlice = []interface{}{v}
}
}
var err error
res := make([]models.LanguageTag, len(vSlice))
for i := range vSlice {
res[i], err = ec.unmarshalNLanguageTag2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLanguageTag(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalOLanguageTag2ᚕgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLanguageTagᚄ(ctx context.Context, sel ast.SelectionSet, v []models.LanguageTag) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalNLanguageTag2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLanguageTag(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalOLiveEnnoblement2ᚕᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLiveEnnoblementᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.LiveEnnoblement) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalNLiveEnnoblement2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐLiveEnnoblement(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
2020-06-02 15:45:21 +00:00
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalOPlayer2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayer(ctx context.Context, sel ast.SelectionSet, v models.Player) graphql.Marshaler {
return ec._Player(ctx, sel, &v)
}
func (ec *executionContext) marshalOPlayer2ᚕᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayerᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.Player) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalNPlayer2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayer(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalOPlayer2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayer(ctx context.Context, sel ast.SelectionSet, v *models.Player) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._Player(ctx, sel, v)
}
func (ec *executionContext) unmarshalOPlayerFilter2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayerFilter(ctx context.Context, v interface{}) (models.PlayerFilter, error) {
return ec.unmarshalInputPlayerFilter(ctx, v)
}
func (ec *executionContext) unmarshalOPlayerFilter2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayerFilter(ctx context.Context, v interface{}) (*models.PlayerFilter, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalOPlayerFilter2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐPlayerFilter(ctx, v)
return &res, err
}
func (ec *executionContext) marshalOServer2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServer(ctx context.Context, sel ast.SelectionSet, v models.Server) graphql.Marshaler {
return ec._Server(ctx, sel, &v)
}
func (ec *executionContext) marshalOServer2ᚕᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.Server) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalNServer2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServer(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalOServer2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServer(ctx context.Context, sel ast.SelectionSet, v *models.Server) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._Server(ctx, sel, v)
}
func (ec *executionContext) unmarshalOServerFilter2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerFilter(ctx context.Context, v interface{}) (models.ServerFilter, error) {
return ec.unmarshalInputServerFilter(ctx, v)
}
func (ec *executionContext) unmarshalOServerFilter2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerFilter(ctx context.Context, v interface{}) (*models.ServerFilter, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalOServerFilter2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerFilter(ctx, v)
return &res, err
}
func (ec *executionContext) unmarshalOServerStatus2ᚕgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerStatusᚄ(ctx context.Context, v interface{}) ([]models.ServerStatus, error) {
var vSlice []interface{}
if v != nil {
if tmp1, ok := v.([]interface{}); ok {
vSlice = tmp1
} else {
vSlice = []interface{}{v}
}
}
var err error
res := make([]models.ServerStatus, len(vSlice))
for i := range vSlice {
res[i], err = ec.unmarshalNServerStatus2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerStatus(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalOServerStatus2ᚕgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []models.ServerStatus) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalNServerStatus2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐServerStatus(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) {
return graphql.UnmarshalString(v)
}
func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
return graphql.MarshalString(v)
}
func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
var vSlice []interface{}
if v != nil {
if tmp1, ok := v.([]interface{}); ok {
vSlice = tmp1
} else {
vSlice = []interface{}{v}
}
}
var err error
res := make([]string, len(vSlice))
for i := range vSlice {
res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
if err != nil {
return nil, err
}
}
return res, nil
}
func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
for i := range v {
ret[i] = ec.marshalNString2string(ctx, sel, v[i])
}
return ret
}
func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalOString2string(ctx, v)
return &res, err
}
func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec.marshalOString2string(ctx, sel, *v)
}
func (ec *executionContext) marshalOTribe2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribe(ctx context.Context, sel ast.SelectionSet, v models.Tribe) graphql.Marshaler {
return ec._Tribe(ctx, sel, &v)
}
func (ec *executionContext) marshalOTribe2ᚕᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribeᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.Tribe) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalNTribe2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribe(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalOTribe2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribe(ctx context.Context, sel ast.SelectionSet, v *models.Tribe) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._Tribe(ctx, sel, v)
}
func (ec *executionContext) unmarshalOTribeFilter2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribeFilter(ctx context.Context, v interface{}) (models.TribeFilter, error) {
return ec.unmarshalInputTribeFilter(ctx, v)
}
func (ec *executionContext) unmarshalOTribeFilter2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribeFilter(ctx context.Context, v interface{}) (*models.TribeFilter, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalOTribeFilter2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐTribeFilter(ctx, v)
return &res, err
}
func (ec *executionContext) marshalOVillage2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillage(ctx context.Context, sel ast.SelectionSet, v models.Village) graphql.Marshaler {
return ec._Village(ctx, sel, &v)
}
func (ec *executionContext) marshalOVillage2ᚕᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillageᚄ(ctx context.Context, sel ast.SelectionSet, v []*models.Village) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalNVillage2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillage(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalOVillage2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillage(ctx context.Context, sel ast.SelectionSet, v *models.Village) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec._Village(ctx, sel, v)
}
func (ec *executionContext) unmarshalOVillageFilter2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillageFilter(ctx context.Context, v interface{}) (models.VillageFilter, error) {
return ec.unmarshalInputVillageFilter(ctx, v)
}
func (ec *executionContext) unmarshalOVillageFilter2ᚖgithubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillageFilter(ctx context.Context, v interface{}) (*models.VillageFilter, error) {
if v == nil {
return nil, nil
}
res, err := ec.unmarshalOVillageFilter2githubᚗcomᚋtribalwarshelpᚋsharedᚋmodelsᚐVillageFilter(ctx, v)
return &res, err
}
func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalO__Schema2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v introspection.Schema) graphql.Marshaler {
return ec.___Schema(ctx, sel, &v)
}
func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec.___Schema(ctx, sel, v)
}
func (ec *executionContext) marshalO__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
return ec.___Type(ctx, sel, &v)
}
func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
if v == nil {
return graphql.Null
}
ret := make(graphql.Array, len(v))
var wg sync.WaitGroup
isLen1 := len(v) == 1
if !isLen1 {
wg.Add(len(v))
}
for i := range v {
i := i
fc := &graphql.FieldContext{
Index: &i,
Result: &v[i],
}
ctx := graphql.WithFieldContext(ctx, fc)
f := func(i int) {
defer func() {
if r := recover(); r != nil {
ec.Error(ctx, ec.Recover(ctx, r))
ret = nil
}
}()
if !isLen1 {
defer wg.Done()
}
ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
}
if isLen1 {
f(i)
} else {
go f(i)
}
}
wg.Wait()
return ret
}
func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
if v == nil {
return graphql.Null
}
return ec.___Type(ctx, sel, v)
}
// endregion ***************************** type.gotpl *****************************