Beispiel #1
0
    //----------------------------------------------------------------------------------------------

    // The special constructor is used to deserialize values.
    public KDBinaryTile(SerializationInfo a_info, StreamingContext a_context)
    {
        // Reset the property value using the GetValue method.
        Occupied     = (bool)a_info.GetValue("Occupied", typeof(bool));
        TilePosition = (KDVector2)a_info.GetValue("TilePosition", typeof(KDVector2));
    }
Beispiel #2
0
    //----------------------------------------------------------------------------------------------

    // The special constructor is used to deserialize values. 
    public KDBinaryTile(SerializationInfo a_info, StreamingContext a_context)
    {
        // Reset the property value using the GetValue method.
        Occupied = (bool)a_info.GetValue("Occupied", typeof(bool));
        TilePosition = (KDVector2)a_info.GetValue("TilePosition", typeof(KDVector2));
    }