Exemple #1
0
 public GameEntityGenericAttribute(GameEntityGenericAttributeType <TValue> attributeType, TValue baseValue) : base(attributeType)
 {
     this.baseValue = baseValue;
 }
Exemple #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));
 }
Exemple #4
0
 public IGameEntityGenericAttribute <T> GetAttribute <T>(GameEntityGenericAttributeType <T> attributeType) where T : struct, IComparable <T>, IEquatable <T>
 {
     return(Statistics.GetAttribute(attributeType));
 }