Пример #1
0
  public void read(JmeImporter e) throws IOException {
    destroy();
    // System.out.println("Test");

    instances =
        new SafeArrayList(Type.class, e.getCapsule(this).readSavableArrayList("instances", null));
    hash = new Hashtable<String, Type>();

    if (instances != null) {
      // System.out.println("LALALA");
      for (Type t : instances.getArray()) {
        hash.put(t.getId(), t);
        //     System.out.println("LALALA"+ t.getId());
      }
    }
    myclass = (e.getCapsule(this).readSavable("myclass", null)).getClass();
  }
Пример #2
0
 public void addType(Type t) {
   hash.put(t.getId(), t);
   instances.add(t);
 }
Пример #3
0
 public TypeList(Type t) {
   myclass = t.getClass();
   instances = new SafeArrayList<Type>(Type.class);
   hash = new Hashtable<String, Type>();
 }