BaseClass

Developer
Size
2,816 Kb
Views
16,192

How do I make an baseclass?

What is a baseclass? How do you make a baseclass? This script and codes were developed by Kevin Giguere on 30 November 2022, Wednesday.

BaseClass Previews

BaseClass - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>BaseClass</title>
</head>
<body> <script src="js/index.js"></script>
</body>
</html>

BaseClass - Script Codes JS Codes

(function() { var moduleKeywords, indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; this.kevthunder = {}; moduleKeywords = ['extended', 'included']; this.kevthunder.Module = (function() { function Module() {} Module.prototype.tap = function(name) { var args; args = Array.prototype.slice.call(arguments); if (typeof name === 'function') { name.apply(this, args.slice(1)); } else { this[name].apply(this, args.slice(1)); } return this; }; Module.extend = function(obj) { var key, ref, value; for (key in obj) { value = obj[key]; if (indexOf.call(moduleKeywords, key) < 0) { this[key] = value; } } if ((ref = obj.extended) != null) { ref.apply(this); } return this; }; Module.include = function(obj) { var key, ref, value; for (key in obj) { value = obj[key]; if (indexOf.call(moduleKeywords, key) < 0) { this.prototype[key] = value; } } if ((ref = obj.included) != null) { ref.apply(this); } return this; }; Module.property = function(prop, desc) { var maj; maj = prop.charAt(0).toUpperCase() + prop.slice(1); if (desc["default"] != null) { this.prototype['_' + prop] = desc["default"]; } else { this.prototype['_' + prop] = null; } if (!((desc.get != null) && desc.get === false)) { if (desc.get != null) { this.prototype['get' + maj] = desc.get; } else if (desc.init != null) { this.prototype['init' + maj] = desc.init; this.prototype['get' + maj] = function() { if (this['_' + prop] == null) { this['_' + prop] = this['init' + maj](); } return this['_' + prop]; }; } else { this.prototype['get' + maj] = function() { return this['_' + prop]; }; } desc.get = function() { return this['get' + maj](); }; } if (!((desc.set != null) && desc.set === false)) { if (desc.set != null) { this.prototype['set' + maj] = desc.set; } else if (desc.change != null) { this.prototype['change' + maj] = desc.change; this.prototype['set' + maj] = function(val) { var old; if (this['_' + prop] !== val) { old = this['_' + prop]; this['_' + prop] = val; return this['change' + maj](old); } }; } else { this.prototype['set' + maj] = function(val) { return this['_' + prop] = val; }; } desc.set = function(val) { return this['set' + maj](val); }; } return Object.defineProperty(this.prototype, prop, desc); }; Module.properties = function(properties) { var desc, prop, results; results = []; for (prop in properties) { desc = properties[prop]; results.push(this.property(prop, desc)); } return results; }; return Module; })();
}).call(this);
BaseClass - Script Codes
BaseClass - Script Codes
Home Page Home
Developer Kevin Giguere
Username kevthunder
Uploaded November 30, 2022
Rating 3
Size 2,816 Kb
Views 16,192
Do you need developer help for BaseClass?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Kevin Giguere (kevthunder) Script Codes
Name
Acronym Generator
Brawl
DamagePropagation
Story
Giving orders
Targeting
Fog of war
Interactivity
Pen-Navigation
Tile Rendering
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!