public override void CreateProperties(Entity.ConstructionContext context)
        {
            _team = context.CreateProperty(PropertyNames.TeamOwner);
            _type = context.CreateProperty(PropertyNames.EntityType);

            base.CreateProperties(context);
        }
Exemple #2
0
        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _property = context.CreateProperty(PropertyName);
            _curve    = new BoundedFloat16PropertyCurve(_property);

            base.CreateProperties(context);
        }
#pragma warning restore 8618

        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _velocity        = context.CreateProperty(PropertyNames.Velocity);
            _angularVelocity = context.CreateProperty(PropertyNames.AngularVelocity);

            base.CreateProperties(context);
        }
Exemple #4
0
        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _context          = context.CreateProperty(PropertyNames.YololContext);
            _fuelLitersInTank = context.CreateProperty(PropertyNames.FuelLitersInTank);

            base.CreateProperties(context);
        }
        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _context         = context.CreateProperty(PropertyNames.YololContext);
            _orientation     = context.CreateProperty(PropertyNames.Orientation);
            _angularVelocity = context.CreateProperty(PropertyNames.AngularVelocity);

            base.CreateProperties(context);
        }
#pragma warning restore 8618

        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _position = context.CreateProperty(PropertyNames.Position);

            _positionCurve = new Vector3PositionPropertyCompoundCurve(_position);

            base.CreateProperties(context);
        }
        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _context         = context.CreateProperty(PropertyNames.YololContext);
            _position        = context.CreateProperty(PropertyNames.Position);
            _cosmicRadiation = context.CreateProperty(PropertyNames.CosmicRadiation);

            base.CreateProperties(context);
        }
#pragma warning restore 8618

        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _damage   = context.CreateProperty(PropertyNames.DamageSphereAmount);
            _range    = context.CreateProperty(PropertyNames.DamageSphereRange);
            _position = context.CreateProperty(PropertyNames.Position);

            base.CreateProperties(context);
        }
#pragma warning restore 8618

        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _orientation = context.CreateProperty(PropertyNames.Orientation);

            _orientationCurve = new QuaternionPropertyCurve(_orientation);

            base.CreateProperties(context);
        }
Exemple #10
0
#pragma warning restore 8618

        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _context = context.CreateProperty(PropertyNames.YololContext);

            _lightState = context.CreateProperty(PropertyNames.RunningLightState);
            _lightCurve = new BoolPropertyCurve(_lightState);

            base.CreateProperties(context);
        }
        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _position = context.CreateProperty(PropertyNames.Position);
            _uniqueId = context.CreateProperty(PropertyNames.UniqueName);
            _type     = context.CreateProperty(PropertyNames.EntityType);
            _radius   = context.CreateProperty(PropertyNames.SphereRadius);

            base.CreateProperties(context);
        }
Exemple #12
0
#pragma warning restore 8618

        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _name            = context.CreateProperty(PropertyNames.UniqueName);
            _position        = context.CreateProperty(PropertyNames.Position);
            _velocity        = context.CreateProperty(PropertyNames.Velocity);
            _orientation     = context.CreateProperty(PropertyNames.Orientation);
            _angularVelocity = context.CreateProperty(PropertyNames.AngularVelocity);

            base.CreateProperties(context);
        }
        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _context = context.CreateProperty(PropertyNames.YololContext);

            _maxWheelTorque = context.CreateProperty(PropertyNames.MaxWheelTorque);

            _torque = context.CreateProperty(PropertyNames.Torque);

            base.CreateProperties(context);
        }
#pragma warning restore 8618

        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _mass     = context.CreateProperty(PropertyNames.Mass);
            _force    = context.CreateProperty(PropertyNames.Force);
            _torque   = context.CreateProperty(PropertyNames.Torque);
            _position = context.CreateProperty(PropertyNames.Position);
            _velocity = context.CreateProperty(PropertyNames.Velocity);

            _orientation     = context.CreateProperty(PropertyNames.Orientation);
            _angularVelocity = context.CreateProperty(PropertyNames.AngularVelocity);

            base.CreateProperties(context);
        }
        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _context = context.CreateProperty(PropertyNames.YololContext);

            _spherePos   = context.CreateProperty(PropertyNames.DebugSpherePosition);
            _sphereRad   = context.CreateProperty(PropertyNames.DebugSphereRadius);
            _sphereColor = context.CreateProperty(PropertyNames.DebugSphereColor);

            _spherePositionCurve = new Vector3PositionPropertyCompoundCurve(_spherePos);
            _sphereRadCurve      = new FloatPropertyCurve(_sphereRad);
            _sphereColorCurve    = new Vector3PositionPropertyCompoundCurve(_sphereColor);

            base.CreateProperties(context);
        }
Exemple #16
0
        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _context = context.CreateProperty(PropertyNames.YololContext);

            _fuelLitersInTank    = context.CreateProperty(PropertyNames.FuelLitersInTank);
            _fuelConsumptionRate = context.CreateProperty(PropertyNames.FuelConsumptionRate);
            _maxEngineForce      = context.CreateProperty(PropertyNames.MaxEngineForce);

            _actualEngineThrottle = context.CreateProperty(PropertyNames.ActualThrottle);

            _force       = context.CreateProperty(PropertyNames.Force);
            _orientation = context.CreateProperty(PropertyNames.Orientation);

            base.CreateProperties(context);
        }
        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _team = context.CreateProperty(PropertyNames.TeamOwner);

            _context = context.CreateProperty(PropertyNames.YololContext);

            _position        = context.CreateProperty(PropertyNames.Position);
            _velocity        = context.CreateProperty(PropertyNames.Velocity);
            _orientation     = context.CreateProperty(PropertyNames.Orientation);
            _angularVelocity = context.CreateProperty(PropertyNames.AngularVelocity);

            _ammo = context.CreateProperty(PropertyNames.MissileLauncherAmmo);

            base.CreateProperties(context);
        }
Exemple #18
0
            public void CreateProperties(Entity.ConstructionContext context)
            {
                _team = context.CreateProperty(PropertyNames.TeamOwner);

                _position    = context.CreateProperty(PropertyNames.Position);
                _velocity    = context.CreateProperty(PropertyNames.Velocity);
                _orientation = context.CreateProperty(PropertyNames.Orientation);

                // ReSharper disable HeapView.BoxingAllocation
                _bearing   = context.CreateProperty(new Myre.TypedName <float>($"gun_turret_bearing_{_index}"));
                _elevation = context.CreateProperty(new Myre.TypedName <float>($"gun_turret_elevation_{_index}"));
                // ReSharper restore HeapView.BoxingAllocation

                _bearingCurve   = new BoundedFloat16PropertyCurve(_bearing);
                _elevationCurve = new BoundedFloat16PropertyCurve(_elevation);
            }
#pragma warning restore 8618

        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _life = context.CreateProperty(PropertyNames.Lifetime);
        }
Exemple #20
0
#pragma warning restore 8618

        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _mass = context.CreateProperty(PropertyNames.ExtraMass);

            base.CreateProperties(context);
        }
#pragma warning restore 8618

        public override void CreateProperties(Entity.ConstructionContext context)
        {
            _position   = context.CreateProperty(PropertyNames.Position);
            _safetyTime = context.CreateProperty(PropertyNames.SafetyTime, Constants.TurretMinFuse);
        }
 public override void CreateProperties(Entity.ConstructionContext context)
 {
     _context = context.CreateProperty(PropertyNames.YololContext);
     _team    = context.CreateProperty(PropertyNames.TeamOwner);
     _id      = context.CreateProperty(PropertyNames.UniqueName);
 }