Exemple #1
0
 public static Body GetBody(int bodyId, BodyDrawInfo drawInfo)
 {
     if (!BodyCache.ContainsKey(bodyId))
     {
         BodyCache[bodyId] = new Body(bodyId, drawInfo);
     }
     return(BodyCache[bodyId]);
 }
Exemple #2
0
 public static Hair GetHair(int hairId, BodyDrawInfo drawInfo)
 {
     if (!HairCache.ContainsKey(hairId))
     {
         HairCache[hairId] = new Hair(hairId, drawInfo);
     }
     return(HairCache[hairId]);
 }
Exemple #3
0
 public static Clothing GetCloth(int clothId, BodyDrawInfo drawInfo)
 {
     if (!ClothCache.ContainsKey(clothId))
     {
         ClothCache[clothId] = new Clothing(clothId, drawInfo);
     }
     return(ClothCache[clothId]);
 }