public BitVectorUnsigned(int bits, uint defaultvalue, SignalDirectionType st) : base(st, defaultvalue)
        {
            if (bits > 64)
            {
                throw new ArgumentException("BitVectorUnsigned has a maximum size of 64");
            }

            this.bits = bits;
            maxvalue  = (ulong)(Math.Pow(2, bits) - 1);

            AllowedTypes.Add(typeof(SignalCollection <bool>));
        }
Exemple #2
0
 public static void CheckAllowedType(QuestType questType)
 {
     if (!AllowedTypes.Contains(questType))
     {
         AllowedTypes.Add(questType);
         // if (AllowedTypes.Count == 1) {
         //     foreach (NetworkUser networkUser in NetworkUser.readOnlyInstancesList) {
         //         Questing.Announcement announcement = new Questing.Announcement("");
         //         Networking.SendAnnouncement(announcement, networkUser.connectionToClient.connectionId);
         //     }
         // }
         timeoutStart = Run.instance.GetRunStopwatch();
     }
 }