コード例 #1
0
 public void Spawn(Vector position, Vector rotation, int color, bool subscribe)
 {
     this.SetPositions(position, position, rotation, rotation);
     base.SetInterestAreaViewDistance(Vector.Zero, Vector.Zero);
     base.SetColor(color);
     Operations.SpawnItem(this.Game, this.Id, this.Type, position, rotation, this.BuildProperties(), subscribe);
 }
コード例 #2
0
        /// <summary>
        /// The spawn.
        /// </summary>
        /// <param name="position">
        /// The item position.
        /// </param>
        /// <param name="rotation">
        /// The rotation.
        /// </param>
        /// <param name="color">
        /// The item color.
        /// </param>
        /// <param name="subscribe">
        /// The subscribe.
        /// </param>
        public void Spawn(float[] position, float[] rotation, int color, bool subscribe)
        {
            this.SetPositions(position, position, rotation, rotation);
            base.SetInterestAreaViewDistance(new[] { 0f, 0f }, new[] { 0f, 0f });
            base.SetColor(color);
            var properties = new Hashtable
            {
                { PropertyKeyInterestAreaAttached, false },
                { PropertyKeyViewDistanceEnter, this.ViewDistanceEnter },
                { PropertyKeyViewDistanceExit, this.ViewDistanceExit },
                { PropertyKeyColor, this.Color },
                { PropertyKeyText, this.Text }
            };

            Operations.SpawnItem(this.Game, this.Id, this.Type, position, rotation, properties, subscribe);
        }