示例#1
0
 //Properties are name a colour
 public override HackableProperty[] getPropeties()
 {
     HackableProperty[] hackableProperties = new HackableProperty[1];
     hackableProperties [0] = keyIDProperty;
     hackableProperties [1] = colourProperty;
     return(hackableProperties);
 }
示例#2
0
 //gets the hackable properties for the hack menu
 public override HackableProperty[] getPropeties()
 {
     //Only colour can be changed
     HackableProperty[] properties = new HackableProperty[1];
     properties [0] = colourProperty;
     return(properties);
 }
示例#3
0
 //Gets the the hack properties for the hack menu
 public override HackableProperty[] getPropeties()
 {
     HackableProperty[] properties = new HackableProperty[3];
     properties [0] = colourProperty;
     properties [1] = isLocked;
     properties [2] = keyCode;
     return(properties);
 }
示例#4
0
 //Checks to see if a given object has the same value as this one
 public override bool isDifferent(HackableProperty property)
 {
     return(((HackableNumber)property).value != this.value);
 }
示例#5
0
 //The only property is the colour property
 public override HackableProperty[] getPropeties()
 {
     HackableProperty[] properties = new HackableProperty[1];
     properties [0] = colourProperty;
     return(properties);
 }
示例#6
0
 //Checks to see if this property has different contents to that of a given object of the same class
 public override bool isDifferent(HackableProperty property)
 {
     return(((HackableEnum)property).valueIndex != this.valueIndex);
 }
示例#7
0
 //Checks to see if the properties are different
 public override bool isDifferent(HackableProperty property)
 {
     return(!((HackableString)property).value.Equals(this.value));
 }
示例#8
0
    public string name;     //The name of the property

    //Coppies data from a property into this object
    protected void superCopy(HackableProperty property)
    {
        this.name = property.name;
    }
示例#9
0
 //Checks if the hackable property is different to this one
 public abstract bool isDifferent(HackableProperty property);