This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using Sandbox; | |
namespace Utility | |
{ | |
public class NetworkedList<T> : NetworkClass, IList<T>, IReadOnlyList<T> | |
{ | |
private List<T> _internalList; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Room.cpp | |
void ARoom::SetupDefaultObject(UBlueprintGeneratedClass* BlueprintClass) | |
{ | |
checkf(HasAnyFlags(RF_ClassDefaultObject), TEXT("ARoom::SetupDefaultObject() can only be called on ARoom default objects.")); | |
checkf(BlueprintClass, TEXT("Cannot setup default room object with null blueprint class.")); | |
if (bIsDefaultSetup) return; | |
TArray<const UBlueprintGeneratedClass*> BlueprintClasses; | |
UBlueprintGeneratedClass::GetGeneratedClassesHierarchy(BlueprintClass, BlueprintClasses); | |
for (const UBlueprintGeneratedClass* Class : BlueprintClasses) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BeardedManStudios.Forge.Networking; | |
using BeardedManStudios.Forge.Networking.Generated; | |
using Scavengers.Implementations.Entities; | |
using Scavengers.Implementations.Models; | |
using Scavengers.Utils; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
[RequireComponent(typeof(CharacterController))] |