public void Init() { unregistered = false; // AlarmManager.SetAlarmManager(null); redelivered = new List <Element>(); vf = new MyValueFactory(); mt_foo = new XType("foo"); foo_msg = new Message(mt_foo, vf); fred_who = new WhoAmI(); mt_bar = new XType("bar"); bar_msg = new Message(mt_bar, vf); alice_who = new WhoAmI(); notify = new MyNotify(); notify1x = new MyNotify(); }
public SimulationRun(BaseDB.ConfigContainer config, ShardID localShardID, bool allLinksArePassive = true) { //BaseDB.ConfigContainer config = new BaseDB.ConfigContainer() { extent = Int3.One, r = 1f / 8, m = 1f / 16 }; Simulation.Configure(localShardID, config, allLinksArePassive); ctx = new SimulationContext(config, Simulation.SDToBox(localShardID.XYZ, config.extent), allLinksArePassive); messages = new MessageHistory(0, new MessagePack[] { MessagePack.CompleteBlank }); Notify = new MyNotify(this); }
public async void getNotifications(int size = 15) { List <MyNotification> s = await MyService.GetNotifications(notificationspage ++, 15); for (int i = 0; i < s.Count; i++) { MyNotify.Add(s[i]); } }
public SimulationRun(BaseDB.ConfigContainer config, ShardID localShardID, IEnumerable <Entity> entities, bool allLinksArePassive = true) { //BaseDB.ConfigContainer config = new BaseDB.ConfigContainer() { extent = Int3.One, r = 1f / 8, m = 1f / 16 }; Simulation.Configure(localShardID, config, allLinksArePassive); ctx = new SimulationContext(config, Simulation.SDToBox(localShardID.XYZ, config.extent), allLinksArePassive); Notify = new MyNotify(this); FeedEntities(entities); }