ippclub / dora-ssr Goto Github PK
View Code? Open in Web Editor NEWDora Project, Special Super Rare Edition.
Home Page: https://dora-ssr.net/
License: Other
Dora Project, Special Super Rare Edition.
Home Page: https://dora-ssr.net/
License: Other
Hi there,
I'm interested in this project but I found no instruction for Mac installation in your doc https://dorothy-ssr.net/docs/tutorial/intro. My CPU is Apple M1 Pro.
作者你好
在学习你的代码过程中,有个代码问题有点疑问,OwnVector这个模板类的remove方法的不太清楚要怎么调用.
/** @brief vector of pointers, but accessed as values
pointers pushed into OwnVector are owned by the vector,
pointers will be auto deleted when it`s erased/removed from the vector
or the vector is destroyed.
Used with Composition Relationship.
*/
template<class T>
class OwnVector : public vector<Own<T>>
{
typedef vector<Own<T>> OwnV;
public:
using OwnV::OwnV;
using OwnV::insert;
bool remove(T* item)
{
auto it = std::remove(OwnV::begin(), OwnV::end(), item);
if (it == OwnV::end()) return false;
OwnV::erase(it);
return true;
}
typename OwnV::iterator index(T* item)
{
return std::find(OwnV::begin(), OwnV::end(), item);
}
bool fast_remove(T* item)
{
size_t index = std::distance(OwnV::begin(), OwnVector::index(item));
if (index < OwnV::size())
{
OwnV::at(index) = OwnV::back();
OwnV::pop_back();
return true;
}
return false;
}
};
例子:
class demo{
public:
demo(int i):num(i){
cout<<"construct! " << i <<endl;
}
~demo(){
cout<<"class destruct! " << num <<endl;
}
private:
int num;
};
int main() {
OwnVector<demo> ov;
ov.push_back(New<demo>(1));
ov.push_back(New<demo>(2));
//ov.erase(ov.begin());
//ov.remove();
return 0;
}
比如这个例子中我想remove掉第一个item,应该怎么写呢?我在这个项目好像没有用到这个remove方法
像libbx.a libsoloud.a很多第三方库 请问一下 这些源码在哪里可以下载 自己编译
The background shared by @pigpigyyy:
Teal was introduced a long while ago in this project when Typescript was not yet mature. However, when it comes to a statically typed scripting language, Typescript has grown to be the most popular option today. We can explore the possiblity of transpiling TS to Lua https://github.com/TypeScriptToLua/TypeScriptToLua and provide the type definitions for Dorothy like https://github.com/hazzard993/love-typescript-definitions
Eventually, we may also need to provide a template project for scaffolding.
https://github.com/hazzard993/love-typescript-template
Very nice project.
1 - Can you add support for CMake?
2- There is any real game with it? Do you have more samples?
Thanks.
As of today, I believe there is no reason to use compiler <= C++17. We can use C++20 features if necessary.
Once we determined the minimum required C++ version, we need to document it in somewhere, e.g, #26.
Hard core development
For the installation and configuration of Dorothy SSR project development, see Official Documents for details.
The link Official Documents is broken.
We lack a code formatter for c++.
I hope to have the support of appimage, as many old Linux systems may not be able to install software using packages very well
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.