///<summary> ///Add SetAction Here ///called by client when action Id changed. ///</summary> public void SetActionId(int id) { //if (id != this.actionID) Operations.SetProperties(this.Game, this.Id, this.Type, new Hashtable { { Item.PropertyKey_ActionID, id } }, null, true); //we need other peer got this change also. change action!! e.g: i jump . you see i jump. }
/// <summary> /// The set text. /// </summary> /// <param name="text"> /// The new text. /// </param> public override void SetText(string text) { if (text != this.Text) { base.SetText(text); Operations.SetProperties(this.Game, this.Id, this.Type, new Hashtable { { PropertyKeyText, text } }, null, true); } }
/// <summary> /// The set color. /// </summary> /// <param name="color"> /// The color. /// </param> public override void SetColor(int color) { if (color != this.Color) { base.SetColor(color); Operations.SetProperties(this.Game, this.Id, this.Type, new Hashtable { { PropertyKeyColor, color } }, null, true); } }
/// <summary> /// The set interest area attached item. /// </summary> /// <param name="attached"> /// The attached. /// </param> public override void SetInterestAreaAttached(bool attached) { if (attached != this.InterestAreaAttached) { base.SetInterestAreaAttached(attached); Operations.SetProperties(this.Game, this.Id, this.Type, new Hashtable { { PropertyKeyInterestAreaAttached, attached } }, null, true); } }
public override void SetInterestAreaViewDistance(Vector viewDistanceEnter, Vector viewDistanceExit) { base.SetInterestAreaViewDistance(viewDistanceEnter, viewDistanceExit); Operations.SetProperties( this.Game, this.Id, new Hashtable { { PropertyKeyViewDistanceEnter, viewDistanceEnter }, { PropertyKeyViewDistanceExit, viewDistanceExit } }, null, true); }