17 lines
445 B
C#

namespace ET.Server
{
[EntitySystemOf(typeof(ItemUnit))]
[FriendOf(typeof(ItemUnit))]
public static partial class ItemUnitSystem
{
[EntitySystem]
private static void Awake(this ItemUnit self, long itemIndex, int itemId, long count, long heroId)
{
self.ItemIndex = itemIndex;
self.ItemId = itemId;
self.Count = count;
self.HeroId = heroId;
}
}
}