Example #1
0
    public void addObject(GActor obj)
    {
        obj.reflist_index.all = all.count();
        all.addObject(obj);

        obj.reflist_index.environmental = environmental[(int)obj.properties.environmental].count();
        environmental [(int)obj.properties.environmental].addObject(obj);

        obj.reflist_index.NPCs = NPCs[(int)obj.properties.npc].count();
        NPCs [(int)obj.properties.npc].addObject(obj);
    }
Example #2
0
    public void addObject(GStructure obj)
    {
        obj.reflist_index.all = all.count();
        all.addObject(obj);

        obj.reflist_index.interactive = interactive[(int)obj.properties.interactive].count();
        interactive [(int)obj.properties.interactive].addObject(obj);

        obj.reflist_index.movable = movable[(int)obj.properties.movable].count();
        movable [(int)obj.properties.movable].addObject(obj);

        obj.reflist_index.environmental = environmental[(int)obj.properties.environmental].count();
        environmental [(int)obj.properties.environmental].addObject(obj);
    }
Example #3
0
 public void addObject(GItem obj)
 {
     obj.reflist_index.all = all.count();
     all.addObject(obj);
 }