예제 #1
0
        public override bool Equals(object obj)
        {
            NitroxTechType type = obj as NitroxTechType;

            return(!ReferenceEquals(type, null) &&
                   Name == type.Name);
        }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }
예제 #4
0
 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;
 }
예제 #5
0
 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;
 }
예제 #6
0
 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;
 }
예제 #7
0
 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;
 }
예제 #8
0
        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);
            }
        }
예제 #9
0
 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();
 }
예제 #10
0
 public EquippedItemData(NitroxId containerId, NitroxId itemId, byte[] serializedData, string slot, NitroxTechType techType) : base(containerId, itemId, serializedData)
 {
     Slot     = slot;
     TechType = techType;
 }
예제 #11
0
 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;
 }
예제 #12
0
 public static TechType ToUnity(this NitroxModel.DataStructures.GameLogic.NitroxTechType v)
 {
     return((TechType)Enum.Parse(typeof(TechType), v.Name));
 }
예제 #13
0
 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;
 }
예제 #14
0
 public PDAEntry(NitroxTechType techType, float progress, int unlocked)
 {
     TechType = techType;
     Progress = progress;
     Unlocked = unlocked;
 }
예제 #15
0
 public PDAProgressEntry(NitroxTechType techType, Dictionary <NitroxId, float> entries)
 {
     TechType = techType;
     Entries  = entries;
 }