Esempio n. 1
0
        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());
        }
Esempio n. 3
0
 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());
 }