diff options
author | Adam Frisby | 2008-02-04 10:39:30 +0000 |
---|---|---|
committer | Adam Frisby | 2008-02-04 10:39:30 +0000 |
commit | 6fbc64af5e2d179e2235f21645dd717a4066592d (patch) | |
tree | 39794023c5c0fe27f75813722f73176b3c61159d /OpenSim/Region/ClientStack | |
parent | * Lowered maxchunk from 1500 bytes to 1250 bytes to make sure packets fit bel... (diff) | |
download | opensim-SC_OLD-6fbc64af5e2d179e2235f21645dd717a4066592d.zip opensim-SC_OLD-6fbc64af5e2d179e2235f21645dd717a4066592d.tar.gz opensim-SC_OLD-6fbc64af5e2d179e2235f21645dd717a4066592d.tar.bz2 opensim-SC_OLD-6fbc64af5e2d179e2235f21645dd717a4066592d.tar.xz |
* Whole buncha stuff.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index 4aceac0..7f62d4d 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -578,6 +578,8 @@ namespace OpenSim.Region.ClientStack | |||
578 | 578 | ||
579 | public event PacketStats OnPacketStats; | 579 | public event PacketStats OnPacketStats; |
580 | 580 | ||
581 | public event MoneyTransferRequest OnMoneyTransferRequest; | ||
582 | |||
581 | 583 | ||
582 | #region Scene/Avatar to Client | 584 | #region Scene/Avatar to Client |
583 | 585 | ||
@@ -2044,6 +2046,21 @@ namespace OpenSim.Region.ClientStack | |||
2044 | AddLocalPacketHandler(PacketType.ViewerEffect, HandleViewerEffect); | 2046 | AddLocalPacketHandler(PacketType.ViewerEffect, HandleViewerEffect); |
2045 | AddLocalPacketHandler(PacketType.AgentCachedTexture, AgentTextureCached); | 2047 | AddLocalPacketHandler(PacketType.AgentCachedTexture, AgentTextureCached); |
2046 | AddLocalPacketHandler(PacketType.MultipleObjectUpdate, MultipleObjUpdate); | 2048 | AddLocalPacketHandler(PacketType.MultipleObjectUpdate, MultipleObjUpdate); |
2049 | AddLocalPacketHandler(PacketType.MoneyTransferRequest, HandleMoneyTransferRequest); | ||
2050 | } | ||
2051 | |||
2052 | private bool HandleMoneyTransferRequest(IClientAPI sender, Packet Pack) | ||
2053 | { | ||
2054 | MoneyTransferRequestPacket money = (MoneyTransferRequestPacket)Pack; | ||
2055 | |||
2056 | if (OnMoneyTransferRequest != null) | ||
2057 | { | ||
2058 | OnMoneyTransferRequest(money.MoneyData.SourceID, money.MoneyData.DestID, | ||
2059 | money.MoneyData.Amount, money.MoneyData.TransactionType, | ||
2060 | Util.FieldToString(money.MoneyData.Description)); | ||
2061 | } | ||
2062 | |||
2063 | return true; | ||
2047 | } | 2064 | } |
2048 | 2065 | ||
2049 | private bool HandleViewerEffect(IClientAPI sender, Packet Pack) | 2066 | private bool HandleViewerEffect(IClientAPI sender, Packet Pack) |