public void SetConTime(int conturn, int conphase) { contime = new ConTime { turn = conturn, phase = conphase, }; }
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")); } }
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")); } }
public async Task CfgUpdateTime([FromBody] ConTime cfg) { await Task.Run(() => manager.CfgUpdateTime(cfg)); }