ZNetScene - MarvelProgramming/Valheim-Networking-Wiki GitHub Wiki

void Awake()

void OnDestroy()

void Shutdown()

void AddInstance(ZDO zdo, ZNetView nview)

bool IsPrefabZDOValid(ZDO zdo)

GameObject CreateObject(ZDO zdo)

void Destroy(GameObject go)

GameObject GetPrefab(int hash)

GameObject GetPrefab(string name)

int GetPrefabHash(GameObject go)

bool IsAreaReady(Vector3 point)

bool InLoadingScreen()

void CreateObjects(List<ZDO> currentNearObjects, List<ZDO> currentDistantObjects)

void CreateObjectsSorted(List<ZDO> currentNearObjects, int maxCreatedPerFrame, int created)

int ZDOCompare(ZDO x, ZDO y)

void CreateDistantObjects(List<ZDO> objects, int maxCreatedPerFrame, int created)

void OnZDODestroyed(ZDO zdo)

void RemoveObjects(List<ZDO> currentNearObjects, List<ZDO> currentDistantObjects)

ZNetView FindInstance(ZDO zdo)

bool HaveInstance(ZDO zdo)

GameObject FindInstance(ZDOID id)

void Update()

void CreateDestroyObjects()

bool InActiveArea(Vector2i zone, Vector3 refPoint)

bool InActiveArea(Vector2i zone, Vector2i refCenterZone)

bool OutsideActiveArea(Vector3 point)

bool OutsideActiveArea(Vector3 point, Vector3 refPoint)

bool HaveInstanceInSector(Vector2i sector)

int NrOfInstances()

void SpawnObject(Vector3 pos, Quaternion rot, GameObject prefab)

List<String> GetPrefabNames()

void RPC_SpawnObject(long spawner, Vector3 pos, Quaternion rot, int prefabHash)

⚠️ **GitHub.com Fallback** ⚠️