コード例 #1
0
 public void SetConTime(int conturn, int conphase)
 {
     contime = new ConTime
     {
         turn  = conturn,
         phase = conphase,
     };
 }
コード例 #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"));
        }
    }
コード例 #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"));
        }
    }
コード例 #4
0
ファイル: Time.cs プロジェクト: razims/Rox.MT
 public async Task CfgUpdateTime([FromBody] ConTime cfg)
 {
     await Task.Run(() => manager.CfgUpdateTime(cfg));
 }