configsService

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCountingFunctions

func GetCountingFunctions() (functions []types.GameConfigExecutor)

Types

type AdditionDataResultToOld

type AdditionDataResultToOld struct{}

func (*AdditionDataResultToOld) Execute

func (c *AdditionDataResultToOld) Execute(clientInfo tokentype.Info, config types.SortingConfig, newUserData interface{}, oldResult types.GameConfigResults) (newResult types.GameConfigResults, err error)

func (*AdditionDataResultToOld) Name

func (c *AdditionDataResultToOld) Name() string

type DecrementResult

type DecrementResult struct {
}

func (*DecrementResult) Execute

func (c *DecrementResult) Execute(clientInfo tokentype.Info, config types.SortingConfig, newUserData interface{}, oldResult types.GameConfigResults) (newResult types.GameConfigResults, err error)

func (*DecrementResult) Name

func (c *DecrementResult) Name() string

type GameConfigsService

type GameConfigsService interface {
	Do(token string, clientInfo tokentype.Info, gameConfig types.GameConfigs, data interface{})
	GetDeletedRoomsResults(clientInfo tokentype.Info, onlinePlayersTokens []string) (results []types.GameConfigResults, ok bool)
	SetServerExecuteToGameConfig(clientInfo tokentype.Info, gameConfig types.GameConfigs) (newGameConfig types.GameConfigs)
}

type IncrementResult

type IncrementResult struct {
}

func (*IncrementResult) Execute

func (c *IncrementResult) Execute(clientInfo tokentype.Info, config types.SortingConfig, newUserData interface{}, oldResult types.GameConfigResults) (newResult types.GameConfigResults, err error)

func (*IncrementResult) Name

func (c *IncrementResult) Name() string

type SubtractDataResultToOld

type SubtractDataResultToOld struct{}

func (*SubtractDataResultToOld) Execute

func (c *SubtractDataResultToOld) Execute(clientInfo tokentype.Info, config types.SortingConfig, newUserData interface{}, oldResult types.GameConfigResults) (newResult types.GameConfigResults, err error)

func (*SubtractDataResultToOld) Name

func (c *SubtractDataResultToOld) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL