0.4.0: Mitspieler in der Welt, BSO-Konto (Spiel-Ticket)
- Mitspieler als Bus/Spielfigur mit Namensschild, weich bewegt (RemotePlayers, Models) - Ohne gueltiges Spiel-Ticket vom Launcher kein Multiplayer; Name kommt aus dem Konto - Protokoll 2 (Hello mit Ticket), IPv6-Adressen - Nach Szenenwechsel erst nach 3 s neu anlegen (Absturz im Test 0.3.0) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,6 +31,14 @@ namespace BSO
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>Platz einer Entity in der Tabelle, -1 = nicht (mehr) da.</summary>
|
||||
public static int SlotOf(nint ptr)
|
||||
{
|
||||
if (ptr == 0 || !Vision.TryGetEntities(out nint* data, out int count)) return -1;
|
||||
for (int i = 0; i < count; i++) if (data[i] == ptr) return i;
|
||||
return -1;
|
||||
}
|
||||
|
||||
/// <summary>Steht in Platz slot noch dasselbe Objekt? Dann lebt es noch und darf gelesen werden.</summary>
|
||||
public static bool StillThere(int slot, nint ptr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user