public VMSandboxRestoreState Sandbox()
{
var state = new VMSandboxRestoreState { Entities = Entities, ObjectId = ObjectId,
ObjectsById = ObjectsById, SetToNext = Context.SetToNextCache };
Context.SetToNextCache = new VMSetToNextCache(Context);
Entities = new List<VMEntity>();
ObjectsById = new Dictionary<short, VMEntity>();
ObjectId = 1;
return state;
}