Example #1
0
 public void AddKnownTechType(TechTypeModel techType)
 {
     lock (knownTechTypes)
     {
         knownTechTypes.Add(techType);
     }
 }
Example #2
0
 public CyclopsModel(NitroxModel.DataStructures.TechType techType, string guid, Vector3 position, Quaternion rotation, Optional <List <InteractiveChildObjectIdentifier> > interactiveChildIdentifiers, Optional <string> dockingBayGuid, string name, Vector3[] hsb, Vector3[] colours) : base(techType, guid, position, rotation, interactiveChildIdentifiers, dockingBayGuid, name, hsb, colours)
 {
     FloodLightsOn    = true;
     InternalLightsOn = true;
     SilentRunningOn  = false;
     ShieldOn         = false;
     SonarOn          = false;
     EngineState      = false;
     EngineMode       = CyclopsMotorMode.CyclopsMotorModes.Standard;
 }
Example #3
0
 public void UnlockedTechType(TechTypeModel techType)
 {
     lock (unlockedTechTypes)
     {
         lock (partiallyUnlockedByTechType)
         {
             partiallyUnlockedByTechType.Remove(techType);
             unlockedTechTypes.Add(techType);
         }
     }
 }
Example #4
0
        public void EntryProgressChanged(TechTypeModel techType, float progress, int unlocked)
        {
            lock (partiallyUnlockedByTechType)
            {
                PDAEntry pdaEntry = null;

                if (!partiallyUnlockedByTechType.TryGetValue(techType, out pdaEntry))
                {
                    partiallyUnlockedByTechType[techType] = pdaEntry = new PDAEntry(techType, progress, unlocked);
                }

                pdaEntry.Progress = progress;
                pdaEntry.Unlocked = unlocked;
            }
        }
Example #5
0
 public static TechType Enum(this TechTypeModel obj)
 {
     return((TechType)System.Enum.Parse(typeof(TechType), obj.Name));
 }
Example #6
0
 public SeamothModel(NitroxModel.DataStructures.TechType techType, string guid, Vector3 position, Quaternion rotation, Optional <List <InteractiveChildObjectIdentifier> > interactiveChildIdentifiers, Optional <string> dockingBayGuid, string name, Vector3[] hsb, Vector3[] colours) : base(techType, guid, position, rotation, interactiveChildIdentifiers, dockingBayGuid, name, hsb, colours)
 {
     LightOn = true;
 }
Example #7
0
 public ExosuitModel(NitroxModel.DataStructures.TechType techType, string guid, Vector3 position, Quaternion rotation, Optional <List <InteractiveChildObjectIdentifier> > interactiveChildIdentifiers, Optional <string> dockingBayGuid, string name, Vector3[] hsb, Vector3[] colours) : base(techType, guid, position, rotation, interactiveChildIdentifiers, dockingBayGuid, name, hsb, colours)
 {
     LeftArmGuid  = System.Guid.NewGuid().ToString();
     RightArmGuid = System.Guid.NewGuid().ToString();
 }
Example #8
0
 public ExosuitMovementData(NitroxModel.DataStructures.TechType techType, string guid, Vector3 position, Quaternion rotation, Vector3 velocity, Vector3 angularVelocity, float steeringWheelYaw, float steeringWheelPitch, bool appliedThrottle,
                            Vector3 leftAimTarget, Vector3 rightAimTarget) : base(techType, guid, position, rotation, velocity, angularVelocity, steeringWheelYaw, steeringWheelPitch, appliedThrottle)
 {
     LeftAimTarget  = leftAimTarget;
     RightAimTarget = rightAimTarget;
 }