function PromiseRemoteFunctionMixin.Add(A,p,R)assert(type(p)=="\116\097\098\108\101","\066\097\100 \099\108\097\115\115")assert(type(R)=="\115\116\114\105\110\103","\066\097\100 \114\101\109\111\116\101\070\117\110\099\116\105\111\110\078\097\109\101")assert(not p.PromiseRemoteFunctionMixin,"\067\108\097\115\115 \097\108\114\101\097\100\121 \104\097\115 \080\114\111\109\105\115\101\082\101\109\111\116\101\070\117\110\099\116\105\111\110\077\105\120\105\110 \100\101\102\105\110\101\100")assert(not p._remoteFunctionName,"\067\108\097\115\115 \097\108\114\101\097\100\121 \104\097\115 \095\114\101\109\111\116\101\070\117\110\099\116\105\111\110\078\097\109\101 \100\101\102\105\110\101\100")p.PromiseRemoteFunction=A.PromiseRemoteFunction p._remoteFunctionName=R end

function PromiseRemoteFunctionMixin:Add(class, remoteFunctionName)
	assert(type(class) == "table", "Bad class")
	assert(type(remoteFunctionName) == "string", "Bad remoteFunctionName")
	assert(not class.PromiseRemoteFunctionMixin, "Class already has PromiseRemoteFunctionMixin defined")
	assert(not class._remoteFunctionName, "Class already has _remoteFunctionName defined")

	class.PromiseRemoteFunction = self.PromiseRemoteFunction
	class._remoteFunctionName = remoteFunctionName
end
