Esempio n. 1
0
		/// <summary>
		/// Broadcasts new prop extension.
		/// </summary>
		/// <param name="prop"></param>
		/// <param name="ext"></param>
		public static void AddPropExtension(Prop prop, PropExtension ext)
		{
			var packet = new Packet(Op.AddPropExtension, prop.EntityId);
			packet.PutInt((int)ext.SignalType);
			packet.PutInt((int)ext.EventType);
			packet.PutString(ext.Name);
			packet.PutByte(ext.Mode);
			packet.PutString(ext.Value.ToString());

			prop.Region.Broadcast(packet);
		}
Esempio n. 2
0
 /// <summary>
 ///	Adds new extention and broadcast update.
 /// </summary>
 /// <param name="ext"></param>
 public void AddExtension(PropExtension ext)
 {
     this.Extensions.Add(ext);
     Send.AddPropExtension(this, ext);
 }
Esempio n. 3
0
		/// <summary>
		/// Broadcasts prop extension remove.
		/// </summary>
		/// <param name="prop"></param>
		/// <param name="ext"></param>
		public static void RemovePropExtension(Prop prop, PropExtension ext)
		{
			var packet = new Packet(Op.RemovePropExtension, prop.EntityId);
			packet.PutString(ext.Name);

			prop.Region.Broadcast(packet);
		}
Esempio n. 4
0
File: Prop.cs Progetto: xKamuna/aura
		/// <summary>
		///	Adds new extention and broadcast update.
		/// </summary>
		/// <param name="ext"></param>
		public void AddExtension(PropExtension ext)
		{
			this.Extensions.Add(ext);
			Send.AddPropExtension(this, ext);
		}