public CyclopsModel(NitroxModel.DataStructures.TechType techType, NitroxId id, Vector3 position, Quaternion rotation, List <InteractiveChildObjectIdentifier> interactiveChildIdentifiers, Optional <NitroxId> dockingBayId, string name, Vector3[] hsb, Vector3[] colours) : base(techType, id, position, rotation, interactiveChildIdentifiers, dockingBayId, name, hsb, colours) { FloodLightsOn = true; InternalLightsOn = true; SilentRunningOn = false; ShieldOn = false; SonarOn = false; EngineState = false; EngineMode = CyclopsMotorMode.CyclopsMotorModes.Standard; }
public void EntryProgressChanged(TechTypeModel techType, float progress, int unlocked) { PDAEntry pdaEntry; if (!PartiallyUnlockedByTechType.TryGetValue(techType, out pdaEntry)) { PartiallyUnlockedByTechType[techType] = pdaEntry = new PDAEntry(techType, progress, unlocked); } pdaEntry.Progress = progress; pdaEntry.Unlocked = unlocked; }
public static VehicleModel BuildFrom(NitroxTechType techType, NitroxId ConstructedItemId, Vector3 position, Quaternion rotation, List <InteractiveChildObjectIdentifier> interactiveChildIdentifiers, Optional <NitroxId> dockingBayId, string name, Vector3[] hsb, Vector3[] colours, float health) { switch (techType.Enum()) { case TechType.Seamoth: return(new SeamothModel(techType, ConstructedItemId, position, rotation, interactiveChildIdentifiers, Optional.Empty, name, hsb, colours, health)); case TechType.Exosuit: return(new ExosuitModel(techType, ConstructedItemId, position, rotation, interactiveChildIdentifiers, Optional.Empty, name, hsb, colours, health)); case TechType.Cyclops: return(new CyclopsModel(techType, ConstructedItemId, position, rotation, interactiveChildIdentifiers, Optional.Empty, name, hsb, colours, health)); case TechType.RocketBase: return(null); default: throw new Exception($"Could not build from: {techType}"); } }
public ExosuitMovementData(NitroxModel.DataStructures.TechType techType, NitroxId id, Vector3 position, Quaternion rotation, Vector3 velocity, Vector3 angularVelocity, float steeringWheelYaw, float steeringWheelPitch, bool appliedThrottle, Vector3 leftAimTarget, Vector3 rightAimTarget, float health) : base(techType, id, position, rotation, velocity, angularVelocity, steeringWheelYaw, steeringWheelPitch, appliedThrottle, health) { LeftAimTarget = leftAimTarget; RightAimTarget = rightAimTarget; }
public SeamothModel(NitroxModel.DataStructures.TechType techType, NitroxId id, Vector3 position, Quaternion rotation, List <InteractiveChildObjectIdentifier> interactiveChildIdentifiers, Optional <NitroxId> dockingBayId, string name, Vector3[] hsb, float health) : base(techType, id, position, rotation, interactiveChildIdentifiers, dockingBayId, name, hsb, health) { LightOn = true; }
public void AddKnownTechType(TechTypeModel techType) { KnownTechTypes.Add(techType); }
public void UnlockedTechType(TechTypeModel techType) { PartiallyUnlockedByTechType.Remove(techType); UnlockedTechTypes.Add(techType); }
public ExosuitModel(NitroxModel.DataStructures.TechType techType, NitroxId id, Vector3 position, Quaternion rotation, List <InteractiveChildObjectIdentifier> interactiveChildIdentifiers, Optional <NitroxId> dockingBayId, string name, Vector3[] hsb, Vector3[] colours) : base(techType, id, position, rotation, interactiveChildIdentifiers, dockingBayId, name, hsb, colours) { LeftArmId = new NitroxId(); RightArmId = new NitroxId(); }