Exemplo n.º 1
0
 public TdlField(string identifier, TdlObject owner, ToffeeModifiers modifiers = ToffeeModifiers.None)
 {
     Identifier = identifier;
     Owner      = owner;
     FieldId    = CRC.CalculateCRC32(Identifier);
     Modifiers  = modifiers;
     Owner.File.AddStringToHash(Identifier);
 }
Exemplo n.º 2
0
 public TdlProperty(string identifier, TdlObject owner, TdlType type,
                    ToffeeModifiers modifiers = ToffeeModifiers.None) : base(identifier, owner, modifiers)
 {
     if (owner.GetType() == typeof(TdlService))
     {
         throw new Exception("TdlProperty cannot be owned by TdlService.");
     }
     Type = type;
 }
Exemplo n.º 3
0
 public TdlMethod(string identifier, TdlObject owner) : base(identifier, owner)
 {
     if (owner.GetType() == typeof(TdlStruct))
     {
         throw new Exception("TdlMethod cannot be owned by TdlStruct.");
     }
     _Parameters     = new List <TdlParameter>();
     ParameterLookup = new Dictionary <string, TdlParameter>();
     MinimumSize     = 0;
 }