Example #1
0
 public bool FilterMatch(ref PoolObjHandle <ActorRoot> inActor)
 {
     if (inActor == 0)
     {
         return(false);
     }
     if (((this.ActorType != null) && (this.ActorType.Length > 0)) && !LinqS.Contains <ActorTypeDef>(this.ActorType, inActor.handle.TheActorMeta.ActorType))
     {
         return(false);
     }
     if (((this.ConfigID != null) && (this.ConfigID.Length > 0)) && !LinqS.Contains <int>(this.ConfigID, inActor.handle.TheActorMeta.ConfigId))
     {
         return(false);
     }
     if (((this.CmpType != null) && (this.CmpType.Length > 0)) && !LinqS.Contains <COM_PLAYERCAMP>(this.CmpType, inActor.handle.TheActorMeta.ActorCamp))
     {
         return(false);
     }
     return(true);
 }
 public bool FilterMatch(ref PoolObjHandle <ActorRoot> inActor)
 {
     return(inActor && (this.ActorType == null || this.ActorType.Length <= 0 || LinqS.Contains <ActorTypeDef>(this.ActorType, inActor.get_handle().TheActorMeta.ActorType)) && (this.ConfigID == null || this.ConfigID.Length <= 0 || LinqS.Contains <int>(this.ConfigID, inActor.get_handle().TheActorMeta.ConfigId)) && (this.CmpType == null || this.CmpType.Length <= 0 || LinqS.Contains <COM_PLAYERCAMP>(this.CmpType, inActor.get_handle().TheActorMeta.ActorCamp)));
 }