public long newId(IHasStateObject obj) { var num = count++; table.set(num, obj); return(num); }
public long insertObject(IHasStateObject obj, long id) { if (table.get(id) != null) { Debug.LogError("insertObject is attempting to overwrit object in id table, id = " + id); } table.set(id, obj); return(id); }
public void set(long id, IHasStateObject obj) { IHasStateObject test = null; if (objects.TryGetValue(id, out test)) { Log.errorLog(this, "setting id when id already exists", id, obj, test); } objects[id] = obj; }
public object get(long id) { IHasStateObject test = null; if (!objects.TryGetValue(id, out test)) { // Log.warnLog(this,"requested id returned null",id); } return(test); }