Function restoreCachedObject
- restoreCachedObject<T>(o): null | T
-
Type Parameters
-
T extends RoomObject & _HasId<T>
Parameters
-
o: T | Partial<T> & {
id: Id<T>;
pos: RoomPosition;
room?: undefined;
} & OpaqueTag<"CachedObject"> & {
id: Id<T>;
}
Returns null | T
real RoomObject or null
Try to get real RoomObject from cached one.