mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
21 lines
563 B
C#
21 lines
563 B
C#
using System.Collections.Generic;
|
|
using BehaviorDesigner.Runtime;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class SharedEntityDictionary : SharedVariable<Dictionary<int, BaseMonoEntity>>
|
|
{
|
|
public override string ToString()
|
|
{
|
|
return (mValue != null) ? (mValue.Count + " BaseMonoEntity") : "null";
|
|
}
|
|
|
|
public static implicit operator SharedEntityDictionary(Dictionary<int, BaseMonoEntity> value)
|
|
{
|
|
SharedEntityDictionary sharedEntityDictionary = new SharedEntityDictionary();
|
|
sharedEntityDictionary.mValue = value;
|
|
return sharedEntityDictionary;
|
|
}
|
|
}
|
|
}
|