Castle barn Class

Inherits: Building

createWindow
function createWindow

createWithChance
function createWithChance(b_percent, UIDname, mat, prefabPath)

generateResourceArea
function generateResourceArea

init
function init

onBuildProgress
function onBuildProgress

onStateChange
function onStateChange

refreshModules
function refreshModules

updatePlayer
function updatePlayer(w, checkAction)