public override bool Equals(object obj) { NitroxTechType type = obj as NitroxTechType; return(!ReferenceEquals(type, null) && Name == type.Name); }
public CyclopsModel(NitroxModel.DataStructures.GameLogic.NitroxTechType techType, NitroxId id, NitroxVector3 position, NitroxQuaternion rotation, List <InteractiveChildObjectIdentifier> interactiveChildIdentifiers, Optional <NitroxId> dockingBayId, string name, NitroxVector3[] hsb, float health) : base(techType, id, position, rotation, interactiveChildIdentifiers, dockingBayId, name, hsb, health) { FloodLightsOn = true; InternalLightsOn = true; SilentRunningOn = false; ShieldOn = false; SonarOn = false; EngineState = false; EngineMode = CyclopsMotorMode.CyclopsMotorModes.Standard; }
public VehicleModel(NitroxTechType techType, NitroxId id, NitroxVector3 position, NitroxQuaternion rotation, IEnumerable <InteractiveChildObjectIdentifier> interactiveChildIdentifiers, Optional <NitroxId> dockingBayId, string name, NitroxVector3[] hsb, float health) { TechType = techType; Id = id; Position = position; Rotation = rotation; InteractiveChildIdentifiers = new ThreadSafeCollection <InteractiveChildObjectIdentifier>(interactiveChildIdentifiers); DockingBayId = dockingBayId; Name = name; HSB = hsb; Health = health; }
public VehicleMovementData(NitroxTechType techType, NitroxId id, NitroxVector3 position, NitroxQuaternion rotation) { TechType = techType; Id = id; Position = position; Rotation = rotation; Velocity = NitroxVector3.Zero; AngularVelocity = NitroxVector3.Zero; SteeringWheelYaw = 0f; SteeringWheelPitch = 0f; AppliedThrottle = false; }
public VehicleMovementData(NitroxTechType techType, NitroxId id, NitroxVector3 position, NitroxQuaternion rotation, NitroxVector3 velocity, NitroxVector3 angularVelocity, float steeringWheelYaw, float steeringWheelPitch, bool appliedThrottle) { TechType = techType; Id = id; Position = position; Rotation = rotation; Velocity = velocity; AngularVelocity = angularVelocity; SteeringWheelYaw = steeringWheelYaw; SteeringWheelPitch = steeringWheelPitch; AppliedThrottle = appliedThrottle; }
public Entity(NitroxVector3 position, NitroxQuaternion rotation, NitroxVector3 scale, NitroxTechType techType, int level, string classId, bool spawnedByServer, NitroxId waterParkId, byte[] serializedGameObject, bool existsInGlobalRoot, NitroxId id) { Transform = new NitroxTransform(position, rotation, scale, this); TechType = techType; Id = id; Level = level; ClassId = classId; SpawnedByServer = spawnedByServer; WaterParkId = waterParkId; SerializedGameObject = serializedGameObject; ExistsInGlobalRoot = existsInGlobalRoot; ExistingGameObjectChildIndex = null; }
public BasePiece(NitroxId id, NitroxVector3 itemPosition, NitroxQuaternion rotation, NitroxVector3 cameraPosition, NitroxQuaternion cameraRotation, NitroxTechType techType, Optional <NitroxId> parentId, bool isFurniture, Optional <RotationMetadata> rotationMetadata) { Id = id; ItemPosition = itemPosition; Rotation = rotation; TechType = techType; CameraPosition = cameraPosition; CameraRotation = cameraRotation; ParentId = parentId; IsFurniture = isFurniture; ConstructionAmount = 0.0f; ConstructionCompleted = false; RotationMetadata = rotationMetadata; Metadata = Optional.Empty; }
public Entity(NitroxVector3 localPosition, NitroxQuaternion localRotation, NitroxVector3 scale, NitroxTechType techType, int level, string classId, bool spawnedByServer, NitroxId id, int?existingGameObjectChildIndex, Entity parentEntity = null) { Transform = new NitroxTransform(localPosition, localRotation, scale, this); TechType = techType; Id = id; Level = level; ClassId = classId; SpawnedByServer = spawnedByServer; WaterParkId = null; SerializedGameObject = null; Metadata = null; ExistsInGlobalRoot = false; ExistingGameObjectChildIndex = existingGameObjectChildIndex; if (parentEntity != null) { ParentId = parentEntity.Id; Transform.SetParent(parentEntity.Transform); } }
public ExosuitModel(NitroxModel.DataStructures.GameLogic.NitroxTechType techType, NitroxId id, NitroxVector3 position, NitroxQuaternion rotation, List <InteractiveChildObjectIdentifier> interactiveChildIdentifiers, Optional <NitroxId> dockingBayId, string name, NitroxVector3[] hsb, float health) : base(techType, id, position, rotation, interactiveChildIdentifiers, dockingBayId, name, hsb, health) { LeftArmId = new NitroxId(); RightArmId = new NitroxId(); }
public EquippedItemData(NitroxId containerId, NitroxId itemId, byte[] serializedData, string slot, NitroxTechType techType) : base(containerId, itemId, serializedData) { Slot = slot; TechType = techType; }
public ExosuitMovementData(NitroxModel.DataStructures.GameLogic.NitroxTechType techType, NitroxId id, NitroxVector3 position, NitroxQuaternion rotation, NitroxVector3 velocity, NitroxVector3 angularVelocity, float steeringWheelYaw, float steeringWheelPitch, bool appliedThrottle, NitroxVector3 leftAimTarget, NitroxVector3 rightAimTarget, float health) : base(techType, id, position, rotation, velocity, angularVelocity, steeringWheelYaw, steeringWheelPitch, appliedThrottle, health) { LeftAimTarget = leftAimTarget; RightAimTarget = rightAimTarget; }
public static TechType ToUnity(this NitroxModel.DataStructures.GameLogic.NitroxTechType v) { return((TechType)Enum.Parse(typeof(TechType), v.Name)); }
public BasePiece(NitroxId id, NitroxVector3 itemPosition, NitroxQuaternion rotation, NitroxVector3 cameraPosition, NitroxQuaternion cameraRotation, NitroxTechType techType, Optional <NitroxId> parentId, bool isFurniture, Optional <RotationMetadata> rotationMetadata, Optional <BasePieceMetadata> metadata) : this(id, itemPosition, rotation, cameraPosition, cameraRotation, techType, parentId, isFurniture, rotationMetadata) { Metadata = metadata; }
public PDAEntry(NitroxTechType techType, float progress, int unlocked) { TechType = techType; Progress = progress; Unlocked = unlocked; }
public PDAProgressEntry(NitroxTechType techType, Dictionary <NitroxId, float> entries) { TechType = techType; Entries = entries; }