예제 #1
0
    public void Compose(ComposeType type, uint ID)
    {
        Msg_Client2Logic_Compose_Req c = new Msg_Client2Logic_Compose_Req();

        c.type = (uint)type;
        c.id   = ID;
#if UNITY_EDITOR
        Debug.Log(StringBuilderTool.ToString("发送合成:", type, " ", ID));
#endif
        Send <Msg_Client2Logic_Compose_Req>(c, GameApp.SocketClient_Game, (int)MsgType.enum_Msg_Client2Logic_Compose_Req);
    }
예제 #2
0
        internal static string Print(this ComposeType composeType)
        {
            switch (composeType)
            {
            case ComposeType.Add:
                return("+");

            case ComposeType.Divide:
                return("/");

            case ComposeType.Multiply:
                return("*");

            case ComposeType.Subtract:
                return("-");

            default:
                throw new NotImplementedException();
            }
        }
 public ComposeFloat(Value <T> a, Value <float> b, ComposeType composeType)
 {
     this.a           = a;
     this.b           = b;
     this.composeType = composeType;
 }
예제 #4
0
 public Compose(Value <T> a, Value <T> b, ComposeType composeType)
 {
     this.a           = a;
     this.b           = b;
     this.composeType = composeType;
 }
 public ComposeConvention(IConvention <TEntity> left, IConvention <TEntity> right, ComposeType composeType)
 {
     _left        = left;
     _right       = right;
     _composeType = composeType;
 }