Пример #1
0
 public override void Unity_Deserialize(int depth)
 {
     this.restriction = (UIDragDropItem.Restriction)SerializedStateReader.Instance.ReadInt32();
     this.cloneOnDrag = SerializedStateReader.Instance.ReadBoolean();
     SerializedStateReader.Instance.Align();
     this.pressAndHoldDelay = SerializedStateReader.Instance.ReadSingle();
     this.interactable      = SerializedStateReader.Instance.ReadBoolean();
     SerializedStateReader.Instance.Align();
 }
Пример #2
0
    public unsafe override void Unity_NamedDeserialize(int depth)
    {
        ISerializedNamedStateReader arg_1A_0 = SerializedNamedStateReader.Instance;

        byte[] var_0_cp_0 = $FieldNamesStorage.$RuntimeNames;
        int    var_0_cp_1 = 0;

        this.restriction = (UIDragDropItem.Restriction)arg_1A_0.ReadInt32(&var_0_cp_0[var_0_cp_1] + 503);
        this.cloneOnDrag = SerializedNamedStateReader.Instance.ReadBoolean(&var_0_cp_0[var_0_cp_1] + 515);
        SerializedNamedStateReader.Instance.Align();
        this.pressAndHoldDelay = SerializedNamedStateReader.Instance.ReadSingle(&var_0_cp_0[var_0_cp_1] + 527);
        this.interactable      = SerializedNamedStateReader.Instance.ReadBoolean(&var_0_cp_0[var_0_cp_1] + 545);
        SerializedNamedStateReader.Instance.Align();
    }
Пример #3
0
    static int get_restriction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIDragDropItem             obj = (UIDragDropItem)o;
            UIDragDropItem.Restriction ret = obj.restriction;
            ToLua.Push(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index restriction on a nil value"));
        }
    }
Пример #4
0
    static int set_restriction(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            UIDragDropItem             obj  = (UIDragDropItem)o;
            UIDragDropItem.Restriction arg0 = (UIDragDropItem.Restriction)ToLua.CheckObject(L, 2, typeof(UIDragDropItem.Restriction));
            obj.restriction = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index restriction on a nil value"));
        }
    }