Exemplo n.º 1
0
 public void SendMessage(ChildAgentUpdate m)
 {
     m.ViewerCircuitCode = m_ViewerCircuitCode;
     m.SessionID         = m_Circuit.SessionID;
     m.AgentID           = m_Circuit.RemoteSceneID;
     m_Circuit.SendMessage(m);
 }
 public virtual bool TriggerChildAgentUpdate(ChildAgentDataUpdate cAgentData)
 {
     handlerChildAgentUpdate = OnChildAgentUpdate;
     if (handlerChildAgentUpdate != null)
     {
         handlerChildAgentUpdate(cAgentData);
         return(true);
     }
     return(false);
 }
        protected bool ChildAgentUpdate(ChildAgentDataUpdate cAgentData)
        {
            handlerChildAgentUpdate = OnChildAgentUpdate;
            if (handlerChildAgentUpdate != null)
            {
                handlerChildAgentUpdate(cAgentData);
            }


            return(true);
        }
        private void ChildUpdateOnParamChange()
        {
            AgentCircuit c;

            if (Circuits.TryGetValue(SceneID, out c))
            {
                var scene = c.Scene;
                if (scene != null)
                {
                    foreach (var kvp in ActiveChilds)
                    {
                        var m = new ChildAgentUpdate
                        {
                            RegionID       = scene.ID,
                            RegionLocation = scene.GridPosition,
                            AgentID        = ID,
                            SessionID      = SessionID,
                            AgentPosition  = GlobalPosition,
                            AgentVelocity  = Velocity,
                            Center         = CameraPosition,
                            Size           = Size,
                            AtAxis         = CameraAtAxis,
                            LeftAxis       = CameraLeftAxis,
                            UpAxis         = CameraUpAxis,
                            ChangedGrid    = false,
                            Far            = m_DrawDistance,
                            Aspect         = 1,
                            Throttles      = new byte[9],
                            //m.LocomotionState;
                            HeadRotation = HeadRotation,
                            BodyRotation = BodyRotation,
                            ControlFlags = m_ActiveAgentControlFlags,
                            EnergyLevel  = 0,
                            GodLevel     = 0,
                            AlwaysRun    = m_IsRunning,
                            PreyAgent    = UUID.Zero,
                            AgentAccess  = 0,
                            //m.AgentTextures;
                            ActiveGroupID = Group.ID,
                            //m.GroupData;
                            //m.AnimationData;
                            //m_AnimationController.
                            //m.GranterBlock;
                            VisualParams = VisualParams
                        };
                        //m.AgentAccessList;
                        //m.AgentInfo;
                        var childUpdater = kvp.Value.ChildAgentUpdateService;
                        childUpdater?.SendMessage(m);
                    }
                }
            }
        }
Exemplo n.º 5
0
 public abstract void HandleMessage(ChildAgentUpdate m);
        /// <summary>
        /// Inform the scene that we've got an update about a child agent that we have
        /// </summary>
        /// <param name="cAgentData"></param>
        /// <returns></returns>
        protected bool ChildAgentUpdate(ChildAgentDataUpdate cAgentData)
        {
            handlerChildAgentUpdate = OnChildAgentUpdate;
            if (handlerChildAgentUpdate != null)
                handlerChildAgentUpdate(cAgentData);


            return true;
        }
Exemplo n.º 7
0
 public virtual bool TriggerChildAgentUpdate(ChildAgentDataUpdate cAgentData)
 {
     handlerChildAgentUpdate = OnChildAgentUpdate;
     if (handlerChildAgentUpdate != null)
     {
         handlerChildAgentUpdate(cAgentData);
         return true;
     }
     return false;
 }
Exemplo n.º 8
0
 public override void HandleMessage(ChildAgentUpdate m)
 {
 }
Exemplo n.º 9
0
 public override void HandleMessage(ChildAgentUpdate m)
 {
     /* ignored */
 }