C# Class OpenSim.Region.OptionalModules.World.MoneyModule.SampleMoneyModule

Inheritance: IMoneyModule, ISharedRegionModule
Afficher le fichier Open project: openmetaversefoundation/fortis-opensim

Méthodes publiques

Méthode Description
AddRegion ( Scene scene ) : void
AmountCovered ( IClientAPI client, int amount ) : bool
ApplyCharge ( UUID agentID, int amount, string text ) : void
ApplyUploadCharge ( UUID agentID, int amount, string text ) : void
ClientClosed ( IClientAPI client ) : void

Call this when the client disconnects.

ClientClosed ( UUID AgentID, Scene scene ) : void

When the client closes the connection we remove their accounting info from memory to free up resources.

Close ( ) : void
EconomyDataRequestHandler ( UUID agentId ) : void

Event called Economy Data Request handler.

GetBalance ( UUID agentID ) : int
GetRandomScene ( ) : Scene

Utility function Gets a Random scene in the instance. For when which scene exactly you're doing something with doesn't matter

GetSceneByUUID ( UUID RegionID ) : Scene

Utility function to get a Scene by RegionID in a module

Initialise ( IConfigSource config ) : void

Startup

ObjectBuy ( IClientAPI remoteClient, UUID agentID, UUID sessionID, UUID groupID, UUID categoryID, uint localID, byte saleType, int salePrice ) : void
ObjectGiveMoney ( UUID objectID, UUID fromID, UUID toID, int amount ) : bool
PostInitialise ( ) : void
RegionLoaded ( Scene scene ) : void
RemoveRegion ( Scene scene ) : void
SendMoneyBalance ( IClientAPI client, UUID agentID, UUID SessionID, UUID TransactionID ) : void

Sends the the stored money balance to the client

UploadCovered ( IClientAPI client, int amount ) : bool
UserAlert ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse

XMLRPC handler to send alert message and sound to client

buy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
landBuy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
preflightBuyLandPrep_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
quote_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
requestPayPrice ( IClientAPI client, UUID objectID ) : void

Private Methods

Méthode Description
AvatarEnteringParcel ( ScenePresence avatar, int localLandID, UUID regionID ) : void

Event Handler for when an Avatar enters one of the parcels in the simulator.

BalanceUpdate ( UUID senderID, UUID receiverID, bool transactionresult, string description ) : void
CheckExistAndRefreshFunds ( UUID agentID ) : void

Ensures that the agent accounting data is set up in this instance.

ClientLoggedOut ( UUID AgentId, Scene scene ) : void

Event Handler for when the client logs out.

GetClientFunds ( IClientAPI client ) : void
GetFundsForAgentID ( UUID AgentID ) : int

Gets the amount of Funds for an agent

LocateClientObject ( UUID AgentID ) : IClientAPI

Locates a IClientAPI for the client specified

LocateSceneClientIn ( UUID AgentId ) : Scene
MakeChildAgent ( ScenePresence avatar ) : void

Event Handler for when a root agent becomes a child agent

MoneyTransferAction ( Object osender, EventManager e ) : void

THis method gets called when someone pays someone else as a gift.

OnNewClient ( IClientAPI client ) : void

New Client Event Handler

ReadConfigAndPopulate ( IConfig startupConfig, string config ) : void

Parse Configuration

ValidateLandBuy ( Object osender, EventManager e ) : void
doMoneyTransfer ( UUID Sender, UUID Receiver, int amount, int transactiontype, string description ) : bool

Transfer money

findPrim ( UUID objectID ) : SceneObjectPart
processLandBuy ( Object osender, EventManager e ) : void
resolveAgentName ( UUID agentID ) : string
resolveObjectName ( UUID objectID ) : string

Method Details

AddRegion() public méthode

public AddRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
Résultat void

AmountCovered() public méthode

public AmountCovered ( IClientAPI client, int amount ) : bool
client IClientAPI
amount int
Résultat bool

ApplyCharge() public méthode

public ApplyCharge ( UUID agentID, int amount, string text ) : void
agentID UUID
amount int
text string
Résultat void

ApplyUploadCharge() public méthode

public ApplyUploadCharge ( UUID agentID, int amount, string text ) : void
agentID UUID
amount int
text string
Résultat void

ClientClosed() public méthode

Call this when the client disconnects.
public ClientClosed ( IClientAPI client ) : void
client IClientAPI
Résultat void

ClientClosed() public méthode

When the client closes the connection we remove their accounting info from memory to free up resources.
public ClientClosed ( UUID AgentID, Scene scene ) : void
AgentID UUID
scene OpenSim.Region.Framework.Scenes.Scene
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

EconomyDataRequestHandler() public méthode

Event called Economy Data Request handler.
public EconomyDataRequestHandler ( UUID agentId ) : void
agentId UUID
Résultat void

GetBalance() public méthode

public GetBalance ( UUID agentID ) : int
agentID UUID
Résultat int

GetRandomScene() public méthode

Utility function Gets a Random scene in the instance. For when which scene exactly you're doing something with doesn't matter
public GetRandomScene ( ) : Scene
Résultat OpenSim.Region.Framework.Scenes.Scene

GetSceneByUUID() public méthode

Utility function to get a Scene by RegionID in a module
public GetSceneByUUID ( UUID RegionID ) : Scene
RegionID UUID
Résultat OpenSim.Region.Framework.Scenes.Scene

Initialise() public méthode

Startup
public Initialise ( IConfigSource config ) : void
config IConfigSource
Résultat void

ObjectBuy() public méthode

public ObjectBuy ( IClientAPI remoteClient, UUID agentID, UUID sessionID, UUID groupID, UUID categoryID, uint localID, byte saleType, int salePrice ) : void
remoteClient IClientAPI
agentID UUID
sessionID UUID
groupID UUID
categoryID UUID
localID uint
saleType byte
salePrice int
Résultat void

ObjectGiveMoney() public méthode

public ObjectGiveMoney ( UUID objectID, UUID fromID, UUID toID, int amount ) : bool
objectID UUID
fromID UUID
toID UUID
amount int
Résultat bool

PostInitialise() public méthode

public PostInitialise ( ) : void
Résultat void

RegionLoaded() public méthode

public RegionLoaded ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
Résultat void

RemoveRegion() public méthode

public RemoveRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
Résultat void

SendMoneyBalance() public méthode

Sends the the stored money balance to the client
public SendMoneyBalance ( IClientAPI client, UUID agentID, UUID SessionID, UUID TransactionID ) : void
client IClientAPI
agentID UUID
SessionID UUID
TransactionID UUID
Résultat void

UploadCovered() public méthode

public UploadCovered ( IClientAPI client, int amount ) : bool
client IClientAPI
amount int
Résultat bool

UserAlert() public méthode

XMLRPC handler to send alert message and sound to client
public UserAlert ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
Résultat Nwc.XmlRpc.XmlRpcResponse

buy_func() public méthode

public buy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
Résultat Nwc.XmlRpc.XmlRpcResponse

landBuy_func() public méthode

public landBuy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
Résultat Nwc.XmlRpc.XmlRpcResponse

preflightBuyLandPrep_func() public méthode

public preflightBuyLandPrep_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
Résultat Nwc.XmlRpc.XmlRpcResponse

quote_func() public méthode

public quote_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
Résultat Nwc.XmlRpc.XmlRpcResponse

requestPayPrice() public méthode

public requestPayPrice ( IClientAPI client, UUID objectID ) : void
client IClientAPI
objectID UUID
Résultat void