Ejemplo n.º 1
0
 public void SetConTime(int conturn, int conphase)
 {
     contime = new ConTime
     {
         turn  = conturn,
         phase = conphase,
     };
 }
Ejemplo n.º 2
0
    static int get_contime(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            CardEffect obj = (CardEffect)o;
            ConTime    ret = obj.contime;
            ToLua.PushObject(L, ret);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index contime on a nil value"));
        }
    }
Ejemplo n.º 3
0
    static int set_contime(IntPtr L)
    {
        object o = null;

        try
        {
            o = ToLua.ToObject(L, 1);
            CardEffect obj  = (CardEffect)o;
            ConTime    arg0 = (ConTime)ToLua.CheckObject <ConTime>(L, 2);
            obj.contime = arg0;
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e, o, "attempt to index contime on a nil value"));
        }
    }
Ejemplo n.º 4
0
 public async Task CfgUpdateTime([FromBody] ConTime cfg)
 {
     await Task.Run(() => manager.CfgUpdateTime(cfg));
 }