rpcobj

package
v0.0.0-...-2ca47bf Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOK = iota
	StatusUnknownError
	StatusOtherError
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeCharacter

type ChangeCharacter struct {
	ID            string `json:"characterId"`
	Cost          int64  `json:"numRings"`         // interestingly, is used for both buying the character and for levelling up...
	NumRedRings   int64  `json:"numRedRings"`      // ?
	Price         int64  `json:"priceNumRings"`    // used to limit smash, as far as I can tell?
	PriceRedRings int64  `json:"priceNumRedRings"` // ?
	LockCondition int64
	UIDs          string
}

type ChangeValueArgs

type ChangeValueArgs struct {
	UID   string
	Value interface{}
}

type Config

type Config struct {
}

func (*Config) ReloadAllConfigs

func (c *Config) ReloadAllConfigs(nothing bool, reply *ConfigReply) error

func (*Config) ReloadConfig

func (c *Config) ReloadConfig(nothing bool, reply *ConfigReply) error

func (*Config) ReloadEventConfig

func (c *Config) ReloadEventConfig(nothing bool, reply *ConfigReply) error

func (*Config) ReloadInfoConfig

func (c *Config) ReloadInfoConfig(nothing bool, reply *ConfigReply) error

type ConfigReply

type ConfigReply struct {
	ConfigSuccess      bool
	ConfigError        string
	EventConfigSuccess bool
	EventConfigError   string
	InfoConfigSuccess  bool
	InfoConfigError    string
}

type SendOperatorMessageArgs

type SendOperatorMessageArgs struct {
	UID             string
	MessageContents string
	Item            obj.MessageItem
	ExpiresAfter    int64
}

type SendOperatorMessageToAllArgs

type SendOperatorMessageToAllArgs struct {
	MessageContents string
	Item            obj.MessageItem
	ExpiresAfter    int64
}

type SendOperatorMessageToSomeArgs

type SendOperatorMessageToSomeArgs struct {
	UIDs            string
	MessageContents string
	Item            obj.MessageItem
	ExpiresAfter    int64
}

type Toolbox

type Toolbox struct {
}

func (*Toolbox) Debug_AddCharacter

func (t *Toolbox) Debug_AddCharacter(character ChangeCharacter, reply *ToolboxReply) error

func (*Toolbox) Debug_AddTransferCredentialsForPlayer

func (t *Toolbox) Debug_AddTransferCredentialsForPlayer(uid string, reply *ToolboxReply) error

func (*Toolbox) Debug_CountBattlePlayers

func (t *Toolbox) Debug_CountBattlePlayers(nothing bool, reply *ToolboxReply) error

Returns how many players are in the Battle database

func (*Toolbox) Debug_CountPlayers

func (t *Toolbox) Debug_CountPlayers(nothing bool, reply *ToolboxReply) error

Returns how many players are on the server and how many of them are active

func (*Toolbox) Debug_DeletePlayer

func (t *Toolbox) Debug_DeletePlayer(uid string, reply *ToolboxReply) error

func (*Toolbox) Debug_FixAllChaoStateNumAcquiredValues

func (t *Toolbox) Debug_FixAllChaoStateNumAcquiredValues(nothing bool, reply *ToolboxReply) error

func (*Toolbox) Debug_FixCharacterPrices

func (t *Toolbox) Debug_FixCharacterPrices(uids string, reply *ToolboxReply) error

func (*Toolbox) Debug_FixGothicAmyPrices

func (t *Toolbox) Debug_FixGothicAmyPrices(uids string, reply *ToolboxReply) error

func (*Toolbox) Debug_FixMarineRedRings

func (t *Toolbox) Debug_FixMarineRedRings(uids string, reply *ToolboxReply) error

func (*Toolbox) Debug_FixVariantPricing

func (t *Toolbox) Debug_FixVariantPricing(uids string, reply *ToolboxReply) error

func (*Toolbox) Debug_FixWerehogRedRings

func (t *Toolbox) Debug_FixWerehogRedRings(uids string, reply *ToolboxReply) error

func (*Toolbox) Debug_GetAllBattlePlayerIDs

func (t *Toolbox) Debug_GetAllBattlePlayerIDs(nothing bool, reply *ToolboxReply) error

func (*Toolbox) Debug_GetAllPlayerIDs

func (t *Toolbox) Debug_GetAllPlayerIDs(nothing bool, reply *ToolboxReply) error

func (*Toolbox) Debug_GetCampaignStatus

func (t *Toolbox) Debug_GetCampaignStatus(uid string, reply *ToolboxReply) error

func (*Toolbox) Debug_GetRouletteInfo

func (t *Toolbox) Debug_GetRouletteInfo(uid string, reply *ToolboxReply) error

func (*Toolbox) Debug_MatchPlayersToGameConf

func (t *Toolbox) Debug_MatchPlayersToGameConf(uids string, reply *ToolboxReply) error

func (*Toolbox) Debug_MigrateUser

func (t *Toolbox) Debug_MigrateUser(uidToUID string, reply *ToolboxReply) error

func (*Toolbox) Debug_PlayersByMigrationPassword

func (t *Toolbox) Debug_PlayersByMigrationPassword(mpassword string, reply *ToolboxReply) error

func (*Toolbox) Debug_PlayersByPassword

func (t *Toolbox) Debug_PlayersByPassword(password string, reply *ToolboxReply) error

func (*Toolbox) Debug_PrepTag1p0

func (t *Toolbox) Debug_PrepTag1p0(uids string, reply *ToolboxReply) error

func (*Toolbox) Debug_PurgeInactivePlayers

func (t *Toolbox) Debug_PurgeInactivePlayers(testmode bool, reply *ToolboxReply) error

Purges players who haven't logged in for 11 months If testmode is true, it only counts how many players could be purged

func (*Toolbox) Debug_RawPlayer

func (t *Toolbox) Debug_RawPlayer(uid string, reply *ToolboxReply) error

func (*Toolbox) Debug_RemoveCharacter

func (t *Toolbox) Debug_RemoveCharacter(character ChangeCharacter, reply *ToolboxReply) error

func (*Toolbox) Debug_RemoveCharacterIfLocked

func (t *Toolbox) Debug_RemoveCharacterIfLocked(character ChangeCharacter, reply *ToolboxReply) error

func (*Toolbox) Debug_RemoveDuplicateCharaEntries

func (t *Toolbox) Debug_RemoveDuplicateCharaEntries(uids string, reply *ToolboxReply) error

Credit: FairPlay137 for starting this code

func (*Toolbox) Debug_ResetChao

func (t *Toolbox) Debug_ResetChao(uid string, reply *ToolboxReply) error

func (*Toolbox) Debug_ResetChaoRouletteGroup

func (t *Toolbox) Debug_ResetChaoRouletteGroup(uid string, reply *ToolboxReply) error

func (*Toolbox) Debug_ResetCharacterState

func (t *Toolbox) Debug_ResetCharacterState(uid string, reply *ToolboxReply) error

func (*Toolbox) Debug_ResetCharactersAndCompensate

func (t *Toolbox) Debug_ResetCharactersAndCompensate(uid string, reply *ToolboxReply) error

func (*Toolbox) Debug_ResetDisallowInactivePurgeFlag

func (t *Toolbox) Debug_ResetDisallowInactivePurgeFlag(uids string, reply *ToolboxReply) error

func (*Toolbox) Debug_ResetEventProgressForAll

func (t *Toolbox) Debug_ResetEventProgressForAll(nothing bool, reply *ToolboxReply) error

func (*Toolbox) Debug_ResetPlayer

func (t *Toolbox) Debug_ResetPlayer(uid string, reply *ToolboxReply) error

func (*Toolbox) Debug_ResetPlayersRank

func (t *Toolbox) Debug_ResetPlayersRank(uids string, reply *ToolboxReply) error

func (*Toolbox) Debug_SendOperatorMessage

func (t *Toolbox) Debug_SendOperatorMessage(args SendOperatorMessageArgs, reply *ToolboxReply) error

func (*Toolbox) Debug_SendOperatorMessageToAll

func (t *Toolbox) Debug_SendOperatorMessageToAll(args SendOperatorMessageToAllArgs, reply *ToolboxReply) error

This code ain't pretty, and takes a long time to execute depending on how many players are in the database!

func (*Toolbox) Debug_SendOperatorMessageToSome

func (t *Toolbox) Debug_SendOperatorMessageToSome(args SendOperatorMessageToSomeArgs, reply *ToolboxReply) error

func (*Toolbox) Debug_SetDisallowInactivePurgeFlag

func (t *Toolbox) Debug_SetDisallowInactivePurgeFlag(uids string, reply *ToolboxReply) error

func (*Toolbox) Debug_UnlockAllInChaoState

func (t *Toolbox) Debug_UnlockAllInChaoState(uid string, reply *ToolboxReply) error

func (*Toolbox) Debug_UnlockAllInCharacterState

func (t *Toolbox) Debug_UnlockAllInCharacterState(uid string, reply *ToolboxReply) error

func (*Toolbox) Debug_UpdateAllContinueCounts

func (t *Toolbox) Debug_UpdateAllContinueCounts(nothing bool, reply *ToolboxReply) error

func (*Toolbox) Debug_UpdateCharacterLockCondition

func (t *Toolbox) Debug_UpdateCharacterLockCondition(character ChangeCharacter, reply *ToolboxReply) error

func (*Toolbox) Debug_UsernameSearch

func (t *Toolbox) Debug_UsernameSearch(username string, reply *ToolboxReply) error

func (*Toolbox) FetchPlayer

func (t *Toolbox) FetchPlayer(uid string, reply *netobj.Player) error

func (*Toolbox) GetCurrentTeam

func (t *Toolbox) GetCurrentTeam(uid string, reply *ToolboxReply) error

func (*Toolbox) GetEventCollectibleCount

func (t *Toolbox) GetEventCollectibleCount(uid string, reply *ToolboxReply) error

func (*Toolbox) GetLastLogin

func (t *Toolbox) GetLastLogin(uid string, reply *ToolboxReply) error

func (*Toolbox) GetPersonalEvents

func (t *Toolbox) GetPersonalEvents(args ChangeValueArgs, reply *ToolboxValueReply) error

func (*Toolbox) GetQuickHighScore

func (t *Toolbox) GetQuickHighScore(uid string, reply *ToolboxReply) error

func (*Toolbox) GetResetCount

func (t *Toolbox) GetResetCount(uid string, reply *ToolboxReply) error

func (*Toolbox) GetRouletteTickets

func (t *Toolbox) GetRouletteTickets(uid string, reply *ToolboxReply) error

func (*Toolbox) GetStoryHighScore

func (t *Toolbox) GetStoryHighScore(uid string, reply *ToolboxReply) error

func (*Toolbox) GetTransferID

func (t *Toolbox) GetTransferID(uid string, reply *ToolboxReply) error

func (*Toolbox) GetUsername

func (t *Toolbox) GetUsername(uid string, reply *ToolboxReply) error

func (*Toolbox) RegisterPlayerWithID

func (t *Toolbox) RegisterPlayerWithID(uid string, reply *ToolboxReply) error

func (*Toolbox) ResetAllBattleStates

func (t *Toolbox) ResetAllBattleStates(uids string, reply *ToolboxReply) error

func (*Toolbox) ResetBattleState

func (t *Toolbox) ResetBattleState(uid string, reply *ToolboxReply) error

func (*Toolbox) ResetCampaign

func (t *Toolbox) ResetCampaign(uid string, reply *ToolboxReply) error

func (*Toolbox) ResetEventState

func (t *Toolbox) ResetEventState(uid string, reply *ToolboxReply) error

func (*Toolbox) ResetLastWheelOptions

func (t *Toolbox) ResetLastWheelOptions(uid string, reply *ToolboxReply) error

func (*Toolbox) ResetMapInfo

func (t *Toolbox) ResetMapInfo(uid string, reply *ToolboxReply) error

func (*Toolbox) ResetPlayerVarious

func (t *Toolbox) ResetPlayerVarious(uid string, reply *ToolboxReply) error

func (*Toolbox) ResetRouletteInfo

func (t *Toolbox) ResetRouletteInfo(uid string, reply *ToolboxReply) error

func (*Toolbox) SetBuyRedRings

func (t *Toolbox) SetBuyRedRings(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetBuyRings

func (t *Toolbox) SetBuyRings(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetCampaignChapter

func (t *Toolbox) SetCampaignChapter(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetCampaignEpisode

func (t *Toolbox) SetCampaignEpisode(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetCampaignPoint

func (t *Toolbox) SetCampaignPoint(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetMainCharacter

func (t *Toolbox) SetMainCharacter(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetPersonalEvents

func (t *Toolbox) SetPersonalEvents(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetPersonalEventsJSON

func (t *Toolbox) SetPersonalEventsJSON(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetQuickHighScore

func (t *Toolbox) SetQuickHighScore(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetRank

func (t *Toolbox) SetRank(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetRedRings

func (t *Toolbox) SetRedRings(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetRings

func (t *Toolbox) SetRings(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetRouletteInfoResetTime

func (t *Toolbox) SetRouletteInfoResetTime(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetRouletteTickets

func (t *Toolbox) SetRouletteTickets(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetStoryHighScore

func (t *Toolbox) SetStoryHighScore(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetSubCharacter

func (t *Toolbox) SetSubCharacter(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetUserPassword

func (t *Toolbox) SetUserPassword(args ChangeValueArgs, reply *ToolboxReply) error

func (*Toolbox) SetUsername

func (t *Toolbox) SetUsername(args ChangeValueArgs, reply *ToolboxReply) error

type ToolboxPlayerCountReply

type ToolboxPlayerCountReply struct {
	Status               uint
	ActiveCount          int64
	TotalRegisteredCount int64
	AdditionalInfo       string
}

type ToolboxReply

type ToolboxReply struct {
	Status uint
	Info   string
}

type ToolboxValueReply

type ToolboxValueReply struct {
	Status uint
	Result interface{}
}

Jump to

Keyboard shortcuts

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