mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
32 lines
770 B
JavaScript
32 lines
770 B
JavaScript
Type.registerNamespace("Demo");
|
|
|
|
Demo.Person = function(firstName, lastName, emailAddress) {
|
|
this._firstName = firstName;
|
|
this._lastName = lastName;
|
|
this._emailAddress = emailAddress;
|
|
}
|
|
|
|
Demo.Person.prototype = {
|
|
|
|
getFirstName: function() {
|
|
return this._firstName;
|
|
},
|
|
|
|
getLastName: function() {
|
|
return this._lastName;
|
|
},
|
|
|
|
getName: function() {
|
|
return this._firstName + ' ' + this._lastName;
|
|
},
|
|
|
|
dispose: function() {
|
|
alert('bye ' + this.getName());
|
|
}
|
|
}
|
|
Demo.Person.registerClass('Demo.Person', null, Sys.IDisposable);
|
|
|
|
// Notify ScriptManager that this is the end of the script.
|
|
if (typeof(Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
|
|
|