コード例 #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;
        }
コード例 #2
0
        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());
        }
コード例 #3
0
 async Task IHandle <BindToUser> .Handle(BindToUser message)
 {
     await _chunkLoader.SetClientPacketSink(await message.User.GetClientPacketSink());
 }
コード例 #4
0
 async Task IHandle <BindToUser> .Handle(BindToUser message)
 {
     _player = GrainFactory.GetGrain <IPlayer>(message.User.GetPrimaryKey());
     await _chunkLoader.SetClientPacketSink(await message.User.GetClientPacketSink());
 }