コード例 #1
0
 public override bool CanTattooOn <T>(TattooablePart <T> source)
 {
     return(source is Backend.BodyParts.FullBodyTattoo);
 }
コード例 #2
0
 //for generic tattoos that will work anywhere, this is fine. be sure to override this to only allow the target type (say, arms or whatever) for tattoos that only
 //work on one body part. it's always possible to derive this class with another abstract class (using arms, we might call it "ArmSleeves") that defines a group of tattoos
 //that only work for one part that all follow the same ruleset.
 public virtual bool CanTattooOn <T>(TattooablePart <T> source) where T : TattooLocation
 {
     //for type specific:
     //return T is ArmTattoos;
     return(true);
 }