mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
The 'Party Party Groupie Groupie Life is a game' commit:
* Added prototypical MoneyBalance support * Finalized konceptual touch wiring * Turned SimpleApp into a tedious harvesting game.
This commit is contained in:
@@ -863,5 +863,28 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
m_rootPart.Text = text;
|
||||
m_rootPart.ScheduleTerseUpdate();
|
||||
}
|
||||
|
||||
public void ObjectGrabHandler(uint localId, LLVector3 offsetPos, IClientAPI remoteClient)
|
||||
{
|
||||
if( m_rootPart.LocalID == localId )
|
||||
{
|
||||
OnGrabGroup(offsetPos, remoteClient);
|
||||
}
|
||||
else
|
||||
{
|
||||
SceneObjectPart part = GetChildPrim(localId);
|
||||
OnGrabPart(part, offsetPos, remoteClient);
|
||||
}
|
||||
}
|
||||
|
||||
public virtual void OnGrabPart(SceneObjectPart part, LLVector3 offsetPos, IClientAPI remoteClient)
|
||||
{
|
||||
part.OnGrab(offsetPos, remoteClient);
|
||||
}
|
||||
|
||||
public virtual void OnGrabGroup(LLVector3 offsetPos, IClientAPI remoteClient)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user