Пример #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);
 }