async Task IHandle <BindToUser> .Handle(BindToUser message) { AttachedObject.GetComponent <SlotContainerComponent>().SlotChanged -= InventorySlotChanged; _user = message.User; AttachedObject.GetComponent <NameComponent>().SetName(await message.User.GetName()); AttachedObject.GetComponent <SlotContainerComponent>().SetSlots(await message.User.GetInventorySlots()); AttachedObject.GetComponent <SlotContainerComponent>().SlotChanged += InventorySlotChanged; }
async Task IHandle <BindToUser> .Handle(BindToUser message) { await AttachedObject.GetComponent <NameComponent>().SetName(await message.User.GetName()); await AttachedObject.GetComponent <SlotContainerComponent>().SetSlots(await message.User.GetInventorySlots()); }
async Task IHandle <BindToUser> .Handle(BindToUser message) { await _chunkLoader.SetClientPacketSink(await message.User.GetClientPacketSink()); }
async Task IHandle <BindToUser> .Handle(BindToUser message) { _player = GrainFactory.GetGrain <IPlayer>(message.User.GetPrimaryKey()); await _chunkLoader.SetClientPacketSink(await message.User.GetClientPacketSink()); }