This commit is contained in:
Dev 2024-07-19 15:56:09 +01:00
parent 5e32ead325
commit 9e02730e03
53 changed files with 261 additions and 313 deletions

View File

@ -1,4 +1,4 @@
# Mod examples for v3.9.2
# Mod examples for v3.9.3
A collection of example mods that perform typical actions in SPT

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;

View File

@ -70,10 +70,10 @@ export declare class RagfairOfferGenerator {
* @param items Items in the offer
* @param barterScheme Cost of item (currency or barter)
* @param loyalLevel Loyalty level needed to buy item
* @param sellInOnePiece Set StackObjectsCount to 1
* @param isPackOffer Is offer being created flaged as a pack
* @returns IRagfairOffer
*/
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, sellInOnePiece?: boolean): IRagfairOffer;
protected createOffer(userID: string, time: number, items: Item[], barterScheme: IBarterScheme[], loyalLevel: number, isPackOffer?: boolean): IRagfairOffer;
/**
* Create the user object stored inside each flea offer object
* @param userID user creating the offer

View File

@ -9,23 +9,20 @@ export interface IRagfairOffer {
intId: number;
/** Handbook price */
itemsCost: number;
/** Rouble price */
/** Rouble price per item */
requirementsCost: number;
startTime: number;
endTime: number;
sellInOnePiece: boolean;
/** Rouble price - same as requirementsCost */
summaryCost: number;
user: IRagfairOfferUser;
/** Trader only */
unlimitedCount?: boolean;
loyaltyLevel: number;
buyRestrictionMax?: number;
buyRestrictionCurrent?: number;
locked: boolean;
unlimitedCount: boolean;
/** Rouble price */
summaryCost: number;
user: IRagfairOfferUser;
notAvailable: boolean;
/** TODO - implement this value - not currently used */
CurrentItemCount: number;
priority: boolean;
locked?: boolean;
}
export interface OfferRequirement {
_tpl: string;
@ -37,6 +34,7 @@ export interface IRagfairOfferUser {
nickname?: string;
rating?: number;
memberType: MemberCategory;
selectedMemberCategory?: MemberCategory;
avatar?: string;
isRatingGrowing?: boolean;
aid?: number;