Exemple #1
0
        public static VariantFunction Call(string name, params object[] prms)
        {
            var varFunc = new VariantFunction(name);

            foreach (var prm in prms)
            {
                var var = new Variant();
                var.Set(prm);

                varFunc.Variants.Add(var);
            }

            return(varFunc);
        }
Exemple #2
0
 public SVariantPacket(VariantFunction function, TankPacketHeader header) : base(header)
 {
     _function             = function;
     Header.CharacterState = 8;
 }