示例#1
0
 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;
 }
示例#2
0
        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;
        }
示例#3
0
        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}");
            }
        }
示例#4
0
 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;
 }
示例#5
0
 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;
 }
示例#6
0
 public void AddKnownTechType(TechTypeModel techType)
 {
     KnownTechTypes.Add(techType);
 }
示例#7
0
 public void UnlockedTechType(TechTypeModel techType)
 {
     PartiallyUnlockedByTechType.Remove(techType);
     UnlockedTechTypes.Add(techType);
 }
示例#8
0
 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();
 }