초기커밋
This commit is contained in:
44
GameServer/Entity/Item/Base/Item.cs
Normal file
44
GameServer/Entity/Item/Base/Item.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
using ServerCore; using ServerBase;
|
||||
using ServerCommon;
|
||||
|
||||
|
||||
using SESSION_ID = System.Int32;
|
||||
using WORLD_META_ID = System.UInt32;
|
||||
using META_ID = System.UInt32;
|
||||
using ENTITY_GUID = System.String;
|
||||
using ACCOUNT_ID = System.String;
|
||||
using OWNER_GUID = System.String;
|
||||
using USER_GUID = System.String;
|
||||
using CHARACTER_GUID = System.String;
|
||||
using ITEM_GUID = System.String;
|
||||
|
||||
|
||||
|
||||
namespace GameServer
|
||||
{
|
||||
public class Item : ItemBase
|
||||
{
|
||||
public Item(EntityBase parent)
|
||||
: base(parent)
|
||||
{
|
||||
}
|
||||
public override async Task<Result> onInit()
|
||||
{
|
||||
var direct_parent = getDirectParent();
|
||||
NullReferenceCheckHelper.throwIfNull(direct_parent, () => $"direct_parent is null !!!");
|
||||
|
||||
addEntityAttribute(new EntityAlertRecordAttribute(this, direct_parent));
|
||||
|
||||
addEntityAction(new EntityAlertAction(this));
|
||||
|
||||
return await base.onInit();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user