C# 클래스 OpenSim.Region.OptionalModules.World.MoneyModule.SampleMoneyModule

상속: IMoneyModule, ISharedRegionModule
파일 보기 프로젝트 열기: openmetaversefoundation/fortis-opensim

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AddRegion() 공개 메소드

public AddRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
리턴 void

AmountCovered() 공개 메소드

public AmountCovered ( IClientAPI client, int amount ) : bool
client IClientAPI
amount int
리턴 bool

ApplyCharge() 공개 메소드

public ApplyCharge ( UUID agentID, int amount, string text ) : void
agentID UUID
amount int
text string
리턴 void

ApplyUploadCharge() 공개 메소드

public ApplyUploadCharge ( UUID agentID, int amount, string text ) : void
agentID UUID
amount int
text string
리턴 void

ClientClosed() 공개 메소드

Call this when the client disconnects.
public ClientClosed ( IClientAPI client ) : void
client IClientAPI
리턴 void

ClientClosed() 공개 메소드

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
리턴 void

Close() 공개 메소드

public Close ( ) : void
리턴 void

EconomyDataRequestHandler() 공개 메소드

Event called Economy Data Request handler.
public EconomyDataRequestHandler ( UUID agentId ) : void
agentId UUID
리턴 void

GetBalance() 공개 메소드

public GetBalance ( UUID agentID ) : int
agentID UUID
리턴 int

GetRandomScene() 공개 메소드

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
리턴 OpenSim.Region.Framework.Scenes.Scene

GetSceneByUUID() 공개 메소드

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

Initialise() 공개 메소드

Startup
public Initialise ( IConfigSource config ) : void
config IConfigSource
리턴 void

ObjectBuy() 공개 메소드

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
리턴 void

ObjectGiveMoney() 공개 메소드

public ObjectGiveMoney ( UUID objectID, UUID fromID, UUID toID, int amount ) : bool
objectID UUID
fromID UUID
toID UUID
amount int
리턴 bool

PostInitialise() 공개 메소드

public PostInitialise ( ) : void
리턴 void

RegionLoaded() 공개 메소드

public RegionLoaded ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
리턴 void

RemoveRegion() 공개 메소드

public RemoveRegion ( Scene scene ) : void
scene OpenSim.Region.Framework.Scenes.Scene
리턴 void

SendMoneyBalance() 공개 메소드

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
리턴 void

UploadCovered() 공개 메소드

public UploadCovered ( IClientAPI client, int amount ) : bool
client IClientAPI
amount int
리턴 bool

UserAlert() 공개 메소드

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
리턴 Nwc.XmlRpc.XmlRpcResponse

buy_func() 공개 메소드

public buy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
리턴 Nwc.XmlRpc.XmlRpcResponse

landBuy_func() 공개 메소드

public landBuy_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
리턴 Nwc.XmlRpc.XmlRpcResponse

preflightBuyLandPrep_func() 공개 메소드

public preflightBuyLandPrep_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
리턴 Nwc.XmlRpc.XmlRpcResponse

quote_func() 공개 메소드

public quote_func ( Nwc.XmlRpc.XmlRpcRequest request, IPEndPoint remoteClient ) : Nwc.XmlRpc.XmlRpcResponse
request Nwc.XmlRpc.XmlRpcRequest
remoteClient System.Net.IPEndPoint
리턴 Nwc.XmlRpc.XmlRpcResponse

requestPayPrice() 공개 메소드

public requestPayPrice ( IClientAPI client, UUID objectID ) : void
client IClientAPI
objectID UUID
리턴 void