示例#1
0
		public GiveUnitCrateAction(Actor self, GiveUnitCrateActionInfo info)
			: base(self, info)
		{
			this.self = self;
			this.info = info;
			if (!info.Units.Any())
				throw new YamlException("A GiveUnitCrateAction does not specify any units to give. This might be because the yaml is referring to 'Unit' rather than 'Units'.");
		}
 public GiveUnitCrateAction(Actor self, GiveUnitCrateActionInfo info)
     : base(self, info)
 {
     this.self = self;
     this.info = info;
     if (!info.Units.Any())
     {
         throw new YamlException("A GiveUnitCrateAction does not specify any units to give. This might be because the yaml is referring to 'Unit' rather than 'Units'.");
     }
 }