public virtual uint GetPlanes(int identifier, uint identifier_ext, NpcPlaneArray planes)
 {
     return Npc_GetPlanesIdentifier2(thisptr, identifier, identifier_ext, (IntPtr)planes);
 }
Exemple #2
0
        public static uint EraseAttackPlane(this Critter npc, uint priority, uint critId)
        {
            var planes = new NpcPlaneArray();
            uint count = npc.GetPlanes(planes);
            if(count==0) return 0;
            uint erased=0;

            for(uint i=0; i<count; i++)
            {
                if(planes[i].Attack_TargId==critId && npc.ErasePlane(i-erased)) erased++;
            }

            return erased;
        }
 public virtual uint GetPlanes(NpcPlaneArray planes)
 {
     return Npc_GetPlanes(thisptr, (IntPtr)planes);
 }