private void OnAdd(AddObjectMessage message)
        {
            var path = new Path(BaseConstants.EscortAcceleration, new CircularMotion(0, 50, new Angle(0), new Angle(Math.PI / 10), 20, Vector.Zero));
            var selectableObject = new SelectableObject(m_Id.Id, message.Name, path);

            m_SelectableRepo.AddObject(selectableObject);
            m_Renderer.Scene.Add(message.Name, message.Shape);
        }
        private void OnAdd(AddObjectMessage message)
        {
            var path = new Path(4, new CircularMotion(0, 50, new Angle(0), new Angle(Math.PI / 10), BaseConstants.EscortSpeed, Vector.Zero));
            var selectableObject = new SelectableObject(m_Id.Id ,message.Name, path);
            m_Objects.Add(selectableObject);

            m_VesselRepository.Add(new Vessel(selectableObject));
        }
예제 #3
0
 private void OnAdd(AddObjectMessage message)
 {
     Add(message.Name, message.Shape);
 }