grpcInvoke

package
v0.0.0-...-bd0de05 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BurnNFT

func BurnNFT(userId int64, nftId string, num int32) error

web3 Burn player NFT interface

func GRPCDynamicStartSceneService

func GRPCDynamicStartSceneService(
	subType proto.SceneServiceSubType, serviceOwner int64, mapId, maxOnline int32,
) (serAppId string, err error)

Scene Dynamic Service start

func GrpcCheckLogin

func GrpcCheckLogin(userId int64) bool

func GrpcRegisterService

func GrpcRegisterService(serData base_data.ServiceData) (offsetMs int64, err error)

func GrpcUpdateUsedAvatar

func GrpcUpdateUsedAvatar(
	userId int64,
	inSceneService string,
	avatars []base_data.GrpcAvatarAttribute,
	profile []base_data.GrpcAttributeData,
) error

to scene service update user used avatars and profile

func GrpcUpdateUsedProfile

func GrpcUpdateUsedProfile(
	userId int64,
	inSceneService string,
	profile []base_data.GrpcAttributeData,
) error

to scene service update user profile

func MintBattery

func MintBattery(userId int64, mintNum, giftNum int32) error

web3 mint player Battery interface

func RPCBuild

func RPCBuild(userId int64, nftId string, mapId int32, lands []int32) (*message.BuildData, error)

func RPCBuildCharged

func RPCBuildCharged(userId int64, buildId int64, mapId, num int32) error

func RPCCallUseConsumableToWeb3

func RPCCallUseConsumableToWeb3(userId int64, nftId string, num, x, y int32, args string) error

func RPCCollection

func RPCCollection(userId int64, buildId int64, mapId int32) error

func RPCHarvest

func RPCHarvest(userId int64, buildId int64, mapId int32) error

func RPCLoadLandData

func RPCLoadLandData(mapId int32) ([]message.LandData, error)

func RPCLoadNftBuildData

func RPCLoadNftBuildData(mapId int32) ([]message.BuildData, error)

func RPCLoadUserNFTS

func RPCLoadUserNFTS(userId int64) (*message.GetUserNFTsOutput, error)

func RPCMainServiceTakeNFT

func RPCMainServiceTakeNFT(userId int64, nfts []methodData.GrpcNftBaseData) error

func RPCMultiSelectService

func RPCMultiSelectService(
	serviceType proto.ServiceType,
	sceneSubType proto.SceneServiceSubType,
	ownerId int64,
	mapId int32,
) ([]base_data.ServiceData, error)

func RPCRecyclingBuild

func RPCRecyclingBuild(userId int64, buildId int64, mapId int32) error

func RPCSelectService

func RPCSelectService(
	serviceType proto.ServiceType,
	sceneSubType proto.SceneServiceSubType,
	ownerId int64,
	mapId int32,
) (base_data.ServiceData, error)

func RpcTickOutPlayer

func RpcTickOutPlayer(
	userId int64,
	agentAppId, socketId, inSceneSer string,
	code proto.TickOutType,
) error

func UseLUAUSD

func UseLUAUSD(userId int64, amount int, useType message.UseLUAUSDType, params string) error

Burn player luaUSD interface

func Web3ForgetUserRecipes

func Web3ForgetUserRecipes(userId int64, recipeIdList []int32) error

web3 Forget user recipes

func Web3LearnUserRecipes

func Web3LearnUserRecipes(userId int64, recipeIdList []int32) error

web3 learn user recipes

func Web3MintNFT

func Web3MintNFT(userId int64, itemCid, num, quality, x, y int32) error

web3 mint player NFT interface

func Web3MultiMintNFT

func Web3MultiMintNFT(userId int64, items []*proto.ItemBaseInfo, x, y int32) error

web3 Multi mint NFT interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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