Exemplo n.º 1
0
        public Remote(StatefulWorld world, bool arbiter)
        {
            this.arbiter = arbiter;
            this.world   = world;

            WriteMode = (WriteFlags)(~0);

            world.OnAdd += World_OnAdd;
        }
Exemplo n.º 2
0
        public Remote(StatefulWorld world, bool arbiter, bool listenRemote, int remoteID)
        {
            this.arbiter      = arbiter;
            this.listenRemote = listenRemote;
            this.world        = world;
            this.remoteID     = remoteID;

            world.OnAdd += StatefulWorld_OnAdd;

            if (arbiter)
            {
                foreach (var kvp in world.statefulObjects)
                {
                    kvp.Value.Ownable.CanRelinquishAuthority = true;
                }
            }

            objectsToSpawn = new Dictionary <int, IdentifiableObject>();
        }