GameAttribute.List.cs name fix and made dependent on GameAttribute.cs
This commit is contained in:
parent
ab7f61ea14
commit
b8c68c3db8
@ -120,4 +120,10 @@
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Update="D3-GameServer\MessageSystem\GameAttribute.List.cs">
|
||||
<DependentUpon>GameAttribute.cs</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@ -15,9 +15,7 @@ namespace DiIiS_NA.GameServer.MessageSystem
|
||||
Attributes = typeof(GameAttribute).GetFields()
|
||||
.Where(a =>
|
||||
a.IsStatic &&
|
||||
(a.FieldType.Name == "GameAttributeI" ||
|
||||
a.FieldType.Name == "GameAttributeF" ||
|
||||
a.FieldType.Name == "GameAttributeB"))
|
||||
a.FieldType.Name is nameof(GameAttributeI) or nameof(GameAttributeF) or nameof(GameAttributeB))
|
||||
.Select(a => a.GetValue(null) as GameAttribute)
|
||||
.OrderBy(a => a.Id)
|
||||
.ToArray();
|
||||
Loading…
Reference in New Issue
user.block.title