Documentation
¶
Index ¶
- func CobraCommand(rkcycmd *runner.RkcyCmd) *cobra.Command
- type Character
- type Command
- type CommandId
- type Difference
- type DifferenceType
- type Handler
- type Player
- type RunnerArgs
- type Settings
- type StateDb
- func (stateDb *StateDb) Credit(charId string, funds *pb.Character_Currency) error
- func (stateDb *StateDb) Debit(charId string, funds *pb.Character_Currency) error
- func (stateDb *StateDb) RandomCharacter(r *rand.Rand) *Character
- func (stateDb *StateDb) RandomPlayer(r *rand.Rand) *Player
- func (stateDb *StateDb) UpsertCharacter(character *Character)
- func (stateDb *StateDb) UpsertPlayer(player *Player)
- type StorageTarget
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Difference ¶
type DifferenceType ¶
type DifferenceType string
const ( Error DifferenceType = "Error" Process DifferenceType = "Process" Storage DifferenceType = "Storage" )
type RunnerArgs ¶
type StateDb ¶
type StateDb struct { Players []*Player Characters []*Character PlayerMap map[string]*Player CharacterMap map[string]*Character }
func NewStateDb ¶
func NewStateDb() *StateDb
func (*StateDb) Credit ¶
func (stateDb *StateDb) Credit(charId string, funds *pb.Character_Currency) error
func (*StateDb) Debit ¶
func (stateDb *StateDb) Debit(charId string, funds *pb.Character_Currency) error
func (*StateDb) UpsertCharacter ¶
func (*StateDb) UpsertPlayer ¶
type StorageTarget ¶
type StorageTarget struct { Init rkcy.StorageInit Config map[string]string }
Click to show internal directories.
Click to hide internal directories.