Browse Source

fix message text

tags/2.7
sebas77 5 years ago
parent
commit
54a8a250fb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Svelto.ECS/EntityBuilder.CheckFields.cs

+ 2
- 2
Svelto.ECS/EntityBuilder.CheckFields.cs View File

@@ -62,14 +62,14 @@ namespace Svelto.ECS
var fields = type.GetFields(BindingFlags.Public | BindingFlags.Instance);

if (fields.Length < 1)
ProcessError("Entity View Structs must hold entity components interfaces", type);
ProcessError("Entity View Structs must hold only entity components interfaces", type);
for (int i = fields.Length - 1; i >= 0; --i)
{
var field = fields[i];
if (field.FieldType.IsInterfaceEx() == false)
ProcessError("Entity View Structs must hold entity components interfaces", type);
ProcessError("Entity View Structs must hold only entity components interfaces", type);
var properties = field.FieldType.GetProperties(BindingFlags.Public |
BindingFlags.Instance | BindingFlags.DeclaredOnly);


Loading…
Cancel
Save