Exemplo n.º 1
0
        ////

        protected virtual bool UpdateMe(CustomEntity ent)
        {
            if (this.NextSync-- <= 0)
            {
                this.NextSync = PeriodicSyncEntityComponent.GetRandomSyncDuration();

                ent.SyncToAll();
                return(true);
            }
            return(false);
        }
Exemplo n.º 2
0
        ////////////////

        private PeriodicSyncEntityComponent()
        {
            this.NextSync = PeriodicSyncEntityComponent.GetRandomSyncDuration();
        }