Example #1
0
        public bool UpdateAgent(int index, DetourCrowdAgentParameters parameters)
        {
            byte[] data = parameters.GetData();
            IntPtr ptr  = GetArrayPtr(data);

            return(_UpdateAgent(this.Slot.Area, this.Slot.Layer, index, ptr, data.Length));
        }
Example #2
0
        public int AddAgent(DetourCrowdAgentParameters parameters)
        {
            byte[] data = parameters.GetData();
            IntPtr ptr  = GetArrayPtr(data);

            return(_AddAgent(this.Slot.Area, this.Slot.Layer, ptr, data.Length));
        }