Aded focus

This commit is contained in:
Pascal Serrarens 2025-02-14 10:56:44 +01:00
parent 78aed40a9b
commit a017c4de18
2 changed files with 3 additions and 2 deletions

View File

@ -137,7 +137,7 @@ namespace Passer.Control.Core {
int n = this.things.Count;
for (int ix = 0; ix < n; ix++) {
Thing thing = this.things[ix];
if (thing != null && thing.parent == null) // update only root things
if (thing != null) // && thing.parent == null) // update only root things
thing.Update(currentTimeMS);
}
}

View File

@ -27,7 +27,7 @@ namespace Passer.Control.Core {
}
public void Add(Thing thing, bool invokeEvent = true) {
//Console.WriteLine($"added thing [{thing.networkId}/{thing.id}]");
Console.WriteLine($"added thing [{thing.networkId}/{thing.id}]");
Thing foundThing = Get(thing.networkId, thing.id);
if (foundThing == null) {
@ -41,6 +41,7 @@ namespace Passer.Control.Core {
// should be: find first non-existing id...
thing.id = (byte)this.things.Count;
things.Add(thing);
Console.Write($"Add thing, updated thing id to [{thing.networkId}/{thing.id}]");
}
}
}