Skip to content

Commit

Permalink
增加数据表和FSM获取完整名称的接口
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiang Yin committed Nov 9, 2019
1 parent dc34fe2 commit 9bd49e8
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
11 changes: 11 additions & 0 deletions GameFramework/DataTable/DataTableBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ public string Name
}
}

/// <summary>
/// 获取数据表完整名称。
/// </summary>
public string FullName
{
get
{
return new TypeNamePair(Type, m_Name).ToString();
}
}

/// <summary>
/// 获取数据表行的类型。
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions GameFramework/DataTable/IDataTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ string Name
get;
}

/// <summary>
/// 获取数据表完整名称。
/// </summary>
string FullName
{
get;
}

/// <summary>
/// 获取数据表行的类型。
/// </summary>
Expand Down
11 changes: 11 additions & 0 deletions GameFramework/Fsm/FsmBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ protected set
}
}

/// <summary>
/// 获取有限状态机完整名称。
/// </summary>
public string FullName
{
get
{
return new TypeNamePair(OwnerType, m_Name).ToString();
}
}

/// <summary>
/// 获取有限状态机持有者类型。
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions GameFramework/Fsm/IFsm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ string Name
get;
}

/// <summary>
/// 获取有限状态机完整名称。
/// </summary>
string FullName
{
get;
}

/// <summary>
/// 获取有限状态机持有者。
/// </summary>
Expand Down

0 comments on commit 9bd49e8

Please sign in to comment.