Questions about MMO demo client
Options
this.actionQueue.EnqueueAction( () => { this.itemPositions.Add(item, position); // update radar every 10 seconds IUnsubscriber positionUpdates = item.PositionUpdateChannel.SubscribeToLast( this.fiber, this.UpdatePosition, Settings.RadarUpdateInterval); IUnsubscriber disposeMessage = item.DisposeChannel.Subscribe(this.fiber, this.RemoveItem); var unsubscriber = new UnsubscriberCollection(positionUpdates, disposeMessage); this.itemSubscriptions.Add(item, unsubscriber); this.PublishUpdate(item, position, Reliability.Unreliable); });
What is the ()=> ?
0
Comments
-
Operation(OperationCode = (byte)OperationCode.CreateWorld)
And this...what does this do?0 -
public new void AddItem(Item item)
{
throw new ArgumentException("add MmoItem instead of Item");
}
And what the hell...what is this? How are you using "new" like this?0 -
Amaz1ng wrote:What is the ()=> ?0
-
Amaz1ng wrote:Operation(OperationCode = (byte)OperationCode.CreateWorld)
And this...what does this do?
If you don't use the operation dispatcher the requests are dispatched with a switch-case statement.0