Пример #1
0
        public int CreateTreeFromSerialization(EventHandler <CTreeCollisionEventArgs> pTreeCollision, EventHandler <CDeserializeEventArgs> pDeserializeFunction, int pSerializeHandle)
        {
            m_TreeCollision       = pTreeCollision;
            m_NewtonTreeCollision = new Newton.NewtonTreeCollision(InvokeTreeCollision);

            m_Deserialize       = pDeserializeFunction;
            m_NewtonDeserialize = new Newton.NewtonDeserialize(InvokeTreeCollisionDeserialize);

            return(Newton.NewtonCreateTreeCollisionFromSerialization(m_World.Handle,
                                                                     m_NewtonTreeCollision,
                                                                     m_NewtonDeserialize,
                                                                     pSerializeHandle));
        }
Пример #2
0
		public int CreateTreeFromSerialization(EventHandler<CTreeCollisionEventArgs> pTreeCollision, EventHandler<CDeserializeEventArgs> pDeserializeFunction, int pSerializeHandle)
		{
			m_TreeCollision = pTreeCollision;
			m_NewtonTreeCollision = new Newton.NewtonTreeCollision(InvokeTreeCollision);

			m_Deserialize = pDeserializeFunction;
			m_NewtonDeserialize = new Newton.NewtonDeserialize(InvokeTreeCollisionDeserialize);

			return Newton.NewtonCreateTreeCollisionFromSerialization(m_World.Handle,
					m_NewtonTreeCollision,
					m_NewtonDeserialize,
					pSerializeHandle);
		}