示例#1
0
 public GameEntityGenericAttribute(GameEntityGenericAttributeType <TValue> attributeType, TValue baseValue) : base(attributeType)
 {
     this.baseValue = baseValue;
 }
示例#2
0
        public IGameEntityGenericAttribute <T> GetAttribute <T>(GameEntityGenericAttributeType <T> attributeType) where T : struct, IEquatable <T>, IComparable <T>
        {
            attributes.TryGetValue(attributeType, out var attribute);

            return(attribute as IGameEntityGenericAttribute <T>);
        }
 public bool Equals(GameEntityGenericAttributeType <TValue> other)
 {
     return(base.Equals(other));
 }
示例#4
0
 public IGameEntityGenericAttribute <T> GetAttribute <T>(GameEntityGenericAttributeType <T> attributeType) where T : struct, IComparable <T>, IEquatable <T>
 {
     return(Statistics.GetAttribute(attributeType));
 }