Skip to content

Commit

Permalink
🐛 scene collector, updated dlls
Browse files Browse the repository at this point in the history
  • Loading branch information
edmand46 committed Jul 30, 2023
1 parent 6cce285 commit d68fe79
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
Binary file modified Plugins/netstandard2.0/Ragon.Client.dll
Binary file not shown.
Binary file modified Plugins/netstandard2.0/Ragon.Protocol.dll
Binary file not shown.
8 changes: 6 additions & 2 deletions Sources/RagonNetwork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ public static void Destroy(GameObject go, RagonPayload? payload = null)

public static void AddListener(IRagonLeftListener listener) => _instance._networkClient.AddListener(listener);

public static void AddListener(IRagonLevelListener listener) => _instance._networkClient.AddListener(listener);
public static void AddListener(IRagonSceneListener listener) => _instance._networkClient.AddListener(listener);

public static void AddListener(IRagonSceneRequestListener listener) => _instance._networkClient.AddListener(listener);

public static void AddListener(IRagonOwnershipChangedListener listener) => _instance._networkClient.AddListener(listener);

Expand All @@ -243,7 +245,9 @@ public static void Destroy(GameObject go, RagonPayload? payload = null)

public static void RemoveListener(IRagonLeftListener listener) => _instance._networkClient.RemoveListener(listener);

public static void RemoveListener(IRagonLevelListener listener) => _instance._networkClient.RemoveListener(listener);
public static void RemoveListener(IRagonSceneListener listener) => _instance._networkClient.RemoveListener(listener);

public static void RemoveListener(IRagonSceneRequestListener listener) => _instance._networkClient.RemoveListener(listener);

public static void RemoveListener(IRagonOwnershipChangedListener listener) => _instance._networkClient.RemoveListener(listener);

Expand Down
2 changes: 2 additions & 0 deletions Sources/RagonSceneCollector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public RagonEntity[] Collect()
var links = go.GetComponentsInChildren<RagonLink>();
foreach (var link in links)
{
if (link.StaticID == 0) continue;

var properties = link.Discovery();
var entity = new RagonEntity(link.Type, link.StaticID);
foreach (var property in properties)
Expand Down

0 comments on commit d68fe79

Please sign in to comment.