Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
        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]);
            }
        }
Ejemplo n.º 4
0
            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);
            }