Class ProvinceCommandFactory
Command factory for creating common province commands Provides convenient methods for typical operations
public static class ProvinceCommandFactory
- Inheritance
-
objectProvinceCommandFactory
Methods
ConquerProvince(ushort, byte)
Create command to conquer a province
public static ChangeProvinceOwnerCommand ConquerProvince(ushort provinceId, byte conqueror)
Parameters
provinceIdushortconquerorbyte
Returns
TransferProvince(ushort, ushort)
Create command to transfer province peacefully
public static ChangeProvinceOwnerCommand TransferProvince(ushort provinceId, ushort newOwner)
Parameters
provinceIdushortnewOwnerushort
Returns
TransferProvinces(ushort[], ushort)
Create command to transfer multiple provinces (peace deal, vassal integration)
public static TransferProvincesCommand TransferProvinces(ushort[] provinceIds, ushort newOwner)
Parameters
provinceIdsushort[]newOwnerushort