public void AddKnownTechType(TechTypeModel techType) { lock (knownTechTypes) { knownTechTypes.Add(techType); } }
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; }
public void UnlockedTechType(TechTypeModel techType) { lock (unlockedTechTypes) { lock (partiallyUnlockedByTechType) { partiallyUnlockedByTechType.Remove(techType); unlockedTechTypes.Add(techType); } } }
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; } }
public static TechType Enum(this TechTypeModel obj) { return((TechType)System.Enum.Parse(typeof(TechType), obj.Name)); }
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; }
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(); }
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; }