lib/joyce/application.rb in joyce-0.2.1 vs lib/joyce/application.rb in joyce-0.2.2

- old
+ new

@@ -33,10 +33,22 @@ def received_events sim.received_events end def sim - @simulation ||= RemoteSim.current + @simulation ||= self.class.simulation_class.current # RemoteSim.current + end + + def self.simulation_class + if connect_immediately? + RemoteSim + else + Metacosm::Simulation + end + end + + def self.connect_immediately? + false end def view @view ||= construct_view end