/// <summary> /// Called by the <see cref = "MmoObject" /> when received. /// Increments <see cref = "MessageCounters.CounterReceive" /> and publishes an <see cref = "MmoObjectPositionMessage" /> in the <paramref name = "item" />'s <see cref = "MmoObject.CurrentRegion" />. /// </summary> public override void OnMmoObjectReceive(MmoObject gameObject) { MmoObjectSnapshot gameObjectSnapshot = gameObject.GetMmoObjectSnapshot(); this.source.ReceiveMmoObjectSnapshot(gameObjectSnapshot); }
/// <summary> /// Automatically subscribes an <see cref="MmoObject"/> manually. /// </summary> /// <param name="mmoObject"></param> public void AutoSubscribeManually(MmoObject mmoObject) { this.ReceiveMmoObjectSnapshot(mmoObject.GetMmoObjectSnapshot()); }